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
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')const res = await fetch("https://api.photta.app/api/v1/detail-photos", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PHOTTA_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"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"
}),
});
const { data } = await res.json(); // data.id, data.statusimport os, requests
res = requests.post(
"https://api.photta.app/api/v1/detail-photos",
headers={"Authorization": f"Bearer {os.environ['PHOTTA_API_KEY']}"},
json={
"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"
},
)
data = res.json()["data"] # data["id"], data["status"]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')const res = await fetch("https://api.photta.app/api/v1/detail-photos", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PHOTTA_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"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"
}),
});
const { data } = await res.json(); // data.id, data.statusimport os, requests
res = requests.post(
"https://api.photta.app/api/v1/detail-photos",
headers={"Authorization": f"Bearer {os.environ['PHOTTA_API_KEY']}"},
json={
"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"
},
)
data = res.json()["data"] # data["id"], data["status"]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"
}{
"data": {
"id": "dtl_9f2c4a71b8e3d605a1f7c2948d3b6e10",
"status": "completed",
"detail_label": "collar stitching",
"framing": "extreme-closeup",
"output_url": "https://cdn.photta.app/generated/dtl_9f2c4a71b8e3d605a1f7c2948d3b6e10.jpg",
"thumbnail_url": "https://cdn.photta.app/generated/dtl_9f2c4a71b8e3d605a1f7c2948d3b6e10-thumb.jpg",
"credits_used": 3,
"created_at": "2026-07-30T14:20:00Z",
"completed_at": "2026-07-30T14:20:42Z",
"duration_ms": 42000
},
"request_id": "req_dtl003"
}Request parameters
product_imageType: 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_labelType: stringRequired
The area to zoom into, e.g. "collar stitching", "cuff detail", "fabric weave on the chest", "pendant clasp". Max 100 characters.
detail_descriptionType: string
Extra guidance for the close-up. Max 400 characters.
framingType: 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-closeupsource_typeType: string
Tunes what is preserved in the close-up.
= apparel
Values:appareljewelry
Errors
- 400
invalid_request_error - The request is malformed or contains invalid parameters.
- 401
authentication_error - The API key is missing, invalid, or expired.
- 402
insufficient_credits_error - Your account does not have enough credits.
- 404
not_found_error - The requested resource does not exist.
- 409
conflict_error - The request conflicts with current state — e.g. your concurrent-batch cap is reached.
- 429
rate_limit_error - Too many requests. Slow down and retry.Retry-After: 30
- 500
api_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.
Step 1
Generate an API key
Detail photos use the same credentials and the same credit balance as every other Photta capability.
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.
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`.
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.
Step 5
Download and persist
The completed body carries `output_url`. Detail photos slot straight into a PDP gallery beside the main shot.
The same endpoint in Node.js, Python and cURL
Node.js
Product detail photo API in Node.js
Call Photta's product detail photo API from a Node.js backend with native fetch. No SDK required: store your key, submit the job, poll for the result.
ReadPython
Product detail photo API in Python
Call Photta's product detail photo API in Python with the requests library. Thirty-line wrapper, async-friendly via httpx, works in Django, FastAPI and Celery.
ReadcURL
Product detail photo API with cURL
Call Photta's product detail photo API directly from the shell with cURL. Submit, poll, download — every snippet pairs with jq for scripted pipelines.
Read
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
Capabilities
Virtual try-on API for apparel
REST API that places apparel on AI mannequins. Asynchronous, 1.5–4 minute generation, 5 credits at 2K, 6 at 4K. cURL, Node.js and Python examples.
See the endpointCapabilities
Jewelry try-on API for necklaces, rings, bracelets and earrings
Place necklaces, rings, bracelets and earrings on AI models via REST. 5 credits at 2K, close-up mannequins built-in, reflection-aware rendering from the Photta docs.
See the endpointBuild
Build an AI product photography service
A founder's playbook for reselling Photta's virtual try-on API as a white-label SaaS: tenant keys, batch fanout, per-credit billing, SLA reality.
See the endpointCompare
Photta vs FASHN — AI fashion API, side by side
Photta and FASHN compared: endpoints, credit pricing, plan tiers, concurrency limits. Sourced from each company's own pricing page on 2026-04-19. No invented numbers.
See the endpointQuickstart
First Photta image in under five minutes.
Sign up, generate an API key, run your first cURL call, poll until it completes, persist the result. Five steps, documented end-to-end.
See the endpointReference
Photta API errors
The full list of Photta API error types with their status codes, the shape of an error body, and which failures are worth retrying.
See the endpointReference
Photta API rate limits
The Photta API rate limit, its window, the Retry-After header, the polling interval and the per-plan concurrency caps, all read from the API documentation.
See the endpoint
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