Skip to content

Fix Shoulder API ​

Repair an incomplete shoulder or clothing silhouette in a portrait. It is intended for cases where a shoulder ends at an unnatural internal edge, often after an earlier crop or background-removal step.

Use this endpoint only for a focused shoulder repair. For broader corrections to pose, expression, lighting, glasses, and image quality, see the AI Photo Editing API.

API endpoint ​

  • https://api-us.idphotoapp.com — US region
  • https://api-eu.idphotoapp.com — EU region
http
POST /v2/fixShoulder

Request ​

FieldTypeRequiredDefaultDescription
apiKeystringYes—Your API key.
apiSecretstringYes—Your API secret.
imageBase64stringYes—Base64 image data, with or without a data URI prefix.
outputFormatstringNoJPEGJPEG or PNG.
outputTypestringNoIMAGE_BASE64Output representation.
json
{
  "apiKey": "your-api-key",
  "apiSecret": "your-api-secret",
  "imageBase64": "data:image/jpeg;base64,...",
  "outputFormat": "JPEG",
  "outputType": "IMAGE_BASE64"
}

Response ​

json
{
  "output": "/9j/4AAQSkZJRgABAQ..."
}

The response contains the repaired image as Base64 without a data URI prefix.

When to use it ​

Use the API when:

  • one shoulder or garment edge stops unnaturally inside the image;
  • the missing area is limited and the surrounding clothing provides enough context; and
  • the image contains one clearly visible person.

Do not use it to invent a large missing body region, repair a heavily obstructed subject, or alter a shoulder that already ends naturally at the image boundary. Review generated repairs before using them in an identity-sensitive workflow.