Capability · Detail photos

Product detail photo API for close-ups

In one sentence

Photta’s detail photo API renders a close-up of one named area of a product. A free analyze call suggests details worth shooting; the generate call costs 3 credits flat, with no resolution tiers.

  • Typical time: 20–60 sec
  • Credits: 3 credits
  • 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/detail-photos
RESPONSE=$(curl -s -X POST https://api.photta.app/api/v1/detail-photos \
  -H "Authorization: Bearer $PHOTTA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "product_image": "https://cdn.yourstore.com/products/linen-shirt-hero.jpg",
  "detail_label": "collar stitching",
  "detail_description": "Focus on the reinforced double-stitch seam along the collar edge.",
  "framing": "extreme-closeup",
  "source_type": "apparel"
}')
ID=$(echo "$RESPONSE" | jq -r '.data.id')

At a glance

At a glance

Endpoint
POST /api/v1/detail-photos
Authentication
Bearer API key
Processing
Asynchronous — poll the status endpoint
Typical time
20–60 sec
Credits
3 credits
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/detail-photos \
  -H "Authorization: Bearer $PHOTTA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "product_image": "https://cdn.yourstore.com/products/linen-shirt-hero.jpg",
  "detail_label": "collar stitching",
  "detail_description": "Focus on the reinforced double-stitch seam along the collar edge.",
  "framing": "extreme-closeup",
  "source_type": "apparel"
}')
ID=$(echo "$RESPONSE" | jq -r '.data.id')

202 Accepted / Completed

{
  "data": {
    "id": "dtl_9f2c4a71b8e3d605a1f7c2948d3b6e10",
    "status": "processing",
    "detail_label": "collar stitching",
    "framing": "extreme-closeup",
    "credits_used": 3,
    "created_at": "2026-07-30T14:20:00Z"
  },
  "request_id": "req_dtl001"
}

Request parameters

product_image

Type: stringRequired

The source image — a completed generation's output_url or any product photo. https URL or base64 data URI. JPEG, PNG, WebP; max 10 MB.

detail_label

Type: stringRequired

The area to zoom into, e.g. "collar stitching", "cuff detail", "fabric weave on the chest", "pendant clasp". Max 100 characters.

detail_description

Type: string

Extra guidance for the close-up. Max 400 characters.

framing

Type: string

How tight the crop is: "extreme-closeup" — the detail fills ~90% of the frame (near-macro); "closeup" — ~70% with some surrounding context; "medium-closeup" — ~50% with body/outfit visible.

= medium-closeup

Values: extreme-closeupcloseupmedium-closeup
source_type

Type: string

Tunes what is preserved in the close-up.

= apparel

Values: appareljewelry

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.

Ask what is worth shooting, then shoot it

Analyze for free, pick a detail, submit, poll, download.

  1. Step 1

    Generate an API key

    Detail photos use the same credentials and the same credit balance as every other Photta capability.

  2. Step 2

    Ask which details to shoot

    POST `/api/v1/detail-photos/analyze` with `product_image`. It returns suggested `detail_label`, `detail_description` and `framing` values for that product, synchronously, and charges nothing.

  3. Step 3

    POST the close-up

    POST to `/api/v1/detail-photos` with `product_image` and `detail_label`. Set `framing` to `extreme-closeup`, `closeup` or `medium-closeup`, `source_type` to `apparel` or `jewelry`, and add up to 400 characters of `detail_description`.

  4. Step 4

    Poll until the job completes

    GET `/api/v1/detail-photos/:id` every 3 seconds until `data.status` is `completed` or `failed`; typical completion is 20 to 60 seconds.

  5. Step 5

    Download and persist

    The completed body carries `output_url`. Detail photos slot straight into a PDP gallery beside the main shot.

Questions developers ask before shipping detail photos

What is a detail photo API?

An endpoint that renders a close-up of one named area of a product — the collar stitching, a clasp, the weave on the chest — from a single wider photograph, instead of a second studio session with a macro lens.

How much does a detail photo cost?

3 credits flat. There are no resolution tiers on this endpoint, and the analyze call that suggests details is free.

What does the analyze endpoint return?

A list of suggestions, each with a `detail_label`, a `detail_description` explaining why that area is worth showing, and a recommended `framing`. Feed any suggestion straight into the generate call.

How tight is each framing option?

`extreme-closeup` fills nearly the whole frame with the detail, `closeup` keeps a little context around it, and `medium-closeup` shows the detail in the surrounding garment or piece. Pick per detail, not per product.

Can the source be a generated image?

Yes. `product_image` accepts the `output_url` of a completed generation as well as any product photo of your own, as an https URL or a base64 data URI.

How do I poll for the result?

GET `/api/v1/detail-photos/:id` every 3 seconds until `data.status` is `completed` or `failed`. The analyze call is synchronous and needs no polling.

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.

  • 20–60 sec
  • 3 credits
  • async, polling
  • 600 requests/min
  • Bearer key