Swap the model

POST/edit/model-swap

Replaces the person in an on-model photo with another model, keeping the outfit, pose, framing and light.

Cost: 1 credit per model. Images: Send exactly one photo: image_url, image_base64 or upload_id (or a multipart file named image). It makes one image per model, at most 12 per request.

Overview and examples: Model swap API.

Parameters

ParameterDescription
modelsrequiredarrayModel ids from GET /catalog/models: Garmo models by name ("klara") or your own models in Garmo Studio ("custom_<id>").
image_urlstringPublic https URL of the photo to edit. JPEG, PNG or WebP, up to 12 MB. Private and local addresses are refused.
image_base64stringThe photo itself, base64-encoded (a data: URI is fine). For large files use upload_id instead.
upload_idstringAn id from POST /uploads.
webhook_urlstringhttps address Garmo POSTs the finished job to (signed, see Webhooks).
metadataobjectYour own JSON object (up to 1,000 characters), returned with the job and in the webhook.

Header Idempotency-Key (optional): see Retries and idempotency.

Example

curl https://api.garmo.studio/v1/edit/model-swap \
  -H "Authorization: Bearer $GARMO_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "image_url": "https://shop.example/products/blazer-dress-9.jpg",
    "models": [
      "amara",
      "emma"
    ]
  }'

Response: 202 Accepted

202 Accepted
{
  "id": "job_8Kq2xV7mPz4LtR9wNc3B",
  "object": "job",
  "tool": "model-swap",
  "status": "processing",
  "livemode": true,
  "outputs": [
    {
      "id": "out_1",
      "status": "processing",
      "label": "Amara"
    },
    {
      "id": "out_2",
      "status": "processing",
      "label": "Emma"
    }
  ],
  "credits_charged": 2,
  "credits_refunded": 0,
  "metadata": {
    "sku": "DR-123"
  },
  "created_at": "2026-11-19T14:02:11Z",
  "completed_at": null
}

The finished job

GET /jobs/{id}
{
  "id": "job_8Kq2xV7mPz4LtR9wNc3B",
  "object": "job",
  "tool": "model-swap",
  "status": "completed",
  "livemode": true,
  "outputs": [
    {
      "id": "out_1",
      "status": "succeeded",
      "label": "Amara",
      "url": "https://….r2.cloudflarestorage.com/renders/2026/11/8f3c…0.webp?X-Amz-Signature=…",
      "url_expires_at": "2026-11-20T14:00:00Z"
    },
    {
      "id": "out_2",
      "status": "succeeded",
      "label": "Emma",
      "url": "https://….r2.cloudflarestorage.com/renders/2026/11/8f3c…1.webp?X-Amz-Signature=…",
      "url_expires_at": "2026-11-20T14:00:00Z"
    }
  ],
  "credits_charged": 2,
  "credits_refunded": 0,
  "metadata": {
    "sku": "DR-123"
  },
  "created_at": "2026-11-19T14:02:11Z",
  "completed_at": "2026-11-19T14:02:58Z"
}

Errors

400 invalid_request names the parameter that is missing or wrong. Image problems are invalid_image, image_too_large or image_unreachable. 402 insufficient_credits says how many credits the request needs. All codes: Errors.