Style Post API

One photo or clip framed like a camera, a speech bubble, then a card whose headline rises word by word and highlights its last word. For tips and new-in posts.
/v1/generateworkflow: motion_style_post-v1One endpoint serves every workflow — this page documents motion_style_post-v1, the current version. Credits are debited at submission (1 cr/s standard, 1 cr/s pro); a failed generation is refunded automatically. Earlier versions of this endpoint, if any, keep being served under their own names.
| Parameter | Value for this workflow |
|---|---|
| workflow | "motion_style_post-v1" required |
| picture_1 | Photo — one public HTTPS URL.required |
| fields.bubble | Bubble. Defaults to “Fresh threads”. |
| fields.headline | Headline. Defaults to “SIMPLE WAYS TO”. |
| fields.highlight | Highlight. Defaults to “STYLE”. |
| fields.highlight_color | Highlight colour. Defaults to “#2F7BFF”. |
| fields.subline | Line. Defaults to “Build better outfits with simple choices.”. |
| fields.frame_color | Frame. Defaults to “#FFD60A”. |
| duration | 10 (seconds) |
| tier | "standard" (1 cr/s), "pro" (1 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": "motion_style_post-v1",
"picture_1": "https://example.com/image.jpg",
"fields": {
"bubble": "Fresh threads",
"headline": "SIMPLE WAYS TO",
"highlight": "STYLE",
"highlight_color": "#2F7BFF",
"subline": "Build better outfits with simple choices.",
"frame_color": "#FFD60A"
},
"duration": "10",
"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": "motion_style_post",
"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 does the Style Post endpoint need?
picture_1 (Photo), fields.bubble (Bubble, optional), fields.headline (Headline, optional), fields.highlight (Highlight, optional), fields.highlight_color (Highlight colour, optional), fields.subline (Line, optional), fields.frame_color (Frame, optional) — all as listed in the parameter table above, and in GET /v1/catalog.
How is it billed?
Per second of output, at the standard, pro or ultra rate shown above; a failed generation is refunded.
How much does it cost?
1 credit per second on the standard tier, 1 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