Capability · Batch ghost mannequin

Batch ghost mannequin API for whole catalogues

In one sentence

Photta’s batch ghost mannequin endpoint takes an array of garment photos and returns a batch id plus one item id per image. Credits for the whole batch are reserved upfront; poll the batch for an aggregate status.

  • Typical time: 1.5–4 min per image
  • Credits: 4 credits at 2K · 5 credits at 4K
  • Processing: async, polling
  • Limits: 600 requests/min
  • Authentication: Bearer key

Every figure on this page comes from the Photta API docs · checked

POST/api/v1/ghost-mannequin/batch
RESPONSE=$(curl -s -X POST https://api.photta.app/api/v1/ghost-mannequin/batch \
  -H "Authorization: Bearer $PHOTTA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "product_images": [
    {
      "image": "https://cdn.yourstore.com/products/jacket-front.jpg",
      "back_image": "https://cdn.yourstore.com/products/jacket-back.jpg",
      "detail_images": [
        "https://cdn.yourstore.com/products/jacket-zipper.jpg"
      ],
      "image_side": "front"
    },
    {
      "image": "https://cdn.yourstore.com/products/shirt-front.jpg",
      "image_side": "front"
    },
    {
      "image": "https://cdn.yourstore.com/products/trousers-front.jpg",
      "image_side": "front"
    }
  ],
  "style": "3d",
  "background_color": "white",
  "resolution": "2K",
  "aspect_ratio": "3:4",
  "user_instruction": "closed front, buttoned up",
  "brand_label_id": "7cc9f988-068b-44cd-8004-22f486b10e67"
}')
ID=$(echo "$RESPONSE" | jq -r '.data.id')
A garment shown without its mannequin by the ghost mannequin API
Example output

At a glance

At a glance

Endpoint
POST /api/v1/ghost-mannequin/batch
Authentication
Bearer API key
Processing
Asynchronous — poll the status endpoint
Typical time
1.5–4 min per image
Credits
4 credits at 2K · 5 credits at 4K
Aspect ratios
3:4 · 1:1 · 4:3 · 2:3 · 3:2 · 4:5 · 5:4 · 9:16 · 16:9 · 21:9
Input limits
Up to 10 MB per image; JPEG, PNG, WebP
Idempotent
No

Request and response

Request

RESPONSE=$(curl -s -X POST https://api.photta.app/api/v1/ghost-mannequin/batch \
  -H "Authorization: Bearer $PHOTTA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "product_images": [
    {
      "image": "https://cdn.yourstore.com/products/jacket-front.jpg",
      "back_image": "https://cdn.yourstore.com/products/jacket-back.jpg",
      "detail_images": [
        "https://cdn.yourstore.com/products/jacket-zipper.jpg"
      ],
      "image_side": "front"
    },
    {
      "image": "https://cdn.yourstore.com/products/shirt-front.jpg",
      "image_side": "front"
    },
    {
      "image": "https://cdn.yourstore.com/products/trousers-front.jpg",
      "image_side": "front"
    }
  ],
  "style": "3d",
  "background_color": "white",
  "resolution": "2K",
  "aspect_ratio": "3:4",
  "user_instruction": "closed front, buttoned up",
  "brand_label_id": "7cc9f988-068b-44cd-8004-22f486b10e67"
}')
ID=$(echo "$RESPONSE" | jq -r '.data.id')

202 Accepted / Completed

{
  "data": {
    "batch_id": "gmb_x7y8z9",
    "status": "processing",
    "total": 3,
    "completed": 0,
    "failed": 0,
    "items": [
      {
        "id": "gm_p1q2r3",
        "status": "processing"
      },
      {
        "id": "gm_s4t5u6",
        "status": "processing"
      },
      {
        "id": "gm_v7w8x9",
        "status": "processing"
      }
    ],
    "style": "3d",
    "background_color": "white",
    "resolution": "2K",
    "aspect_ratio": "3:4",
    "credits_reserved": 12,
    "created_at": "2026-04-10T16:05:00Z"
  },
  "request_id": "req_gmb001"
}

Request parameters

product_images

Type: array[object]Required

Array of image objects. Each object contains "image" (URL or base64), optional "back_image", optional "detail_images" (up to 3 close-up photos of small details on that garment, no extra credits), and optional "image_side". API batch caps (5× the dashboard limit): Free/Hobby/Hobby v2 5, Seller/Starter 10, Brand/Pro 25, Studio/Premium 50.

angle

Type: string

Applied to all images. "side" reconstructs the side view from each front photo (plus back_image when provided) — see the single-generate endpoint for details.

= straight

Values: straightbackside
style

Type: string

Applied to all images.

= 3d

Values: 3dflat_lay
background_color

Type: string

Applied to all images.

= white

Values: whitegraybeigeblack
resolution

Type: string

Applied to all images. "2K" = 4 credits each. "4K" = 5 credits each. 4K is produced natively in a single generation per item — pick it upfront; the resolution cannot be changed after creation. Note:

= 2K

Values: 2K4K
aspect_ratio

Type: string

Applied to all images.

= 3:4

Values: 3:41:14:32:33:24:55:49:1616:921:9
user_instruction

Type: string

Batch-level: one note applied to every item. Optional free-form string, max 400 characters (anything longer is silently truncated). A guarded steer for ambiguous rendering choices — e.g. "closed front", "cream interior lining", "buttoned up" — it never overrides the source garment, brand label, or structural reconstruction, and it is explicitly NOT a determinism/seed control.

brand_label_id

Type: string

Applied to all images. Brand label UUID returned by the Brand Labels API. API v1 request fields use snake_case; use brand_label_id.

Errors

400invalid_request_error
The request is malformed or contains invalid parameters.
401authentication_error
The API key is missing, invalid, or expired.
402insufficient_credits_error
Your account does not have enough credits.
404not_found_error
The requested resource does not exist.
409conflict_error
The request conflicts with current state — e.g. your concurrent-batch cap is reached.
429rate_limit_error
Too many requests. Slow down and retry.Retry-After: 30
500api_error
An internal server error occurred (500), or a check your request needs could not run right now (503, e.g. moderation_unavailable). Retry later with backoff.

Limits

  • 600 requests per minute per account (Fixed window; the limit is the same on every plan)
  • A 429 carries Retry-After: 30 seconds
  • Up to 10 MB per image
  • Formats: JPEG, PNG, WebP
  • Concurrent batches per plan: Free 1 · Hobby 2 · Seller 3 · Brand 4 · Studio 6
  • Polling only — the API sends no webhooks.

One request, a rack of garments

Assemble the array, submit once, poll the batch, download each item.

  1. Step 1

    Generate an API key

    Batch ghost mannequin uses the same credentials and the same credit balance as every other Photta capability.

  2. Step 2

    Assemble the image array

    `product_images` takes one object per garment: `image`, plus an optional `back_image`, up to 3 close-up photos in `detail_images`, and `image_side`. The API batch cap is 5 images on Free and Hobby, 10 on Seller, 25 on Brand and 50 on Studio.

  3. Step 3

    POST the batch

    POST `/api/v1/ghost-mannequin/batch`. `angle`, `style`, `background_color`, `resolution` and `aspect_ratio` apply to every item, and `user_instruction` adds one note of up to 400 characters to all of them. Credits for the whole batch are reserved before the first item renders.

  4. Step 4

    Poll the batch

    GET `/api/v1/ghost-mannequin/batch/:id` every 3 seconds. The body carries `total`, `completed`, `failed` and a per-item breakdown, so you can start downloading before the last garment lands.

  5. Step 5

    Download each result

    Every completed item carries its own `output_url`, `credits_used` and duration. Items that fail refund their reserved credits and are reported in `credits_refunded`.

Questions developers ask before running batches

What does the batch endpoint add?

It accepts an array of garment photos in one request and processes them in the background. You get a batch id for the aggregate view and an item id per photo, instead of tracking dozens of separate jobs.

How many images fit in one batch?

The API batch cap is 5 images on Free and Hobby, 10 on Seller, 25 on Brand and 50 on Studio — five times the dashboard limit. A batch larger than your plan allows returns 400.

How are credits charged for a batch?

The whole batch is reserved upfront: images multiplied by the per-image price, 4 credits at 2K or 5 at 4K. If the balance cannot cover the reservation the request returns 402 and nothing renders.

What happens when one item fails?

The rest of the batch continues. The batch body reports `failed` alongside `completed`, and the reserved credits for failed items come back in `credits_refunded`.

How many batches can run at once?

Concurrent in-flight batches are capped by plan: Free 1, Hobby 2, Seller 3, Brand 4 and Studio 6. Submitting past the cap returns 409 — poll the active batch until it resolves, then resubmit.

How do I poll a batch?

GET `/api/v1/ghost-mannequin/batch/:id` every 3 seconds for the aggregate status, or poll any single item on the standard ghost mannequin status path when you want per-garment detail.

Related capabilities

Every figure on this page comes from the Photta API docs · checked

Try the API in five minutes

Generate a Photta API key, paste the cURL snippet above, and you'll have your first on-model image before the coffee finishes brewing.

  • 1.5–4 min per image
  • 4 credits at 2K · 5 credits at 4K
  • async, polling
  • 600 requests/min
  • Bearer key