Product 360 Video API
Your product turns on a white background, catalogue style, from its front and back photos.
/v1/generateworkflow: product_360-v1One endpoint serves every workflow — this page documents product_360-v1, the current version. Credits are debited at submission (2.2 cr/s standard, 4.4 cr/s pro); a failed generation is refunded automatically. Earlier versions of this endpoint, if any, keep being served under their own names. This workflow needs an active plan.
| Parameter | Value for this workflow |
|---|---|
| workflow | "product_360-v1" required |
| front_image | Front — one public HTTPS URL.required |
| back_image | Back — one public HTTPS URL.required |
| fields.rotation | Rotation. How the product turns — a full slow clockwise turn, a half turn… |
| duration | 5 · 10 (seconds) |
| tier | "standard" (2.2 cr/s) or "pro" (4.4 cr/s) |
| webhook_url | Optional — we POST the outcome here when the generation settles. Without it, poll the URL returned in the response until the status settles. |
Example request
curl -X POST https://thenewblack.ai/api/v1/generate \
-H "Authorization: Bearer tnb_live_XXXXXXXXXXXX" \
-H "Content-Type: application/json" \
-d '{
"workflow": "product_360-v1",
"front_image": "https://example.com/image.jpg",
"back_image": "https://example.com/image.jpg",
"fields": {
"rotation": "a slow full turn to the right"
},
"duration": "5",
"tier": "standard"
}'// 202 Accepted
{
"generation_id": "3f1c9a6e-...",
"status": "running",
"poll": "/api/v1/generations/3f1c9a6e-..."
}Example response
Poll /v1/generations/{id} (or receive the webhook) until the generation settles:
// 200 OK
{
"generation_id": "3f1c9a6e-...",
"workflow": "product_360",
"status": "succeeded",
"result": {
"type": "video",
"url": "https://.../result.mp4",
"thumbnail": "https://.../thumb.webp"
}
}Results are stored for 48 hours — copy them to your own storage. Authentication, errors and webhooks are documented in the full API reference.
Frequently asked questions
What images does the 360 endpoint need?
Two: the front view and the back view of the product, ideally on a plain background. The clip rotates between them.
What is it for?
Product pages and marketplaces that show a spinning view — one clip per SKU, no turntable shoot.
How much does it cost?
2.2 credits per second on the standard tier, 4.4 per second on pro. Credits come with plans and packs; a failed generation is always refunded.
Other endpoints: Virtual Try-On API · AI Fashion Models API · Fashion Design API · Reimagine Model API · Swap Model API · AI Stylist API · all endpoints