Look Switch Walk API
The trending crosswalk reel: your model walks toward the camera and every beat switches the look. From a photo of your model and two of your garments.
From $0.12 per second of video · 2.2 credits on the standard tier
How it works
1. Create an API key
Sign up and create a key in your profile, under API. It starts with
tnb_live_and goes in theAuthorizationheader. Creating a key needs no plan.2. Send the request
One
POST /v1/generatewith the workflowcrosswalk_look_switch-v1and your pictures as public HTTPS URLs. Every value below is one this endpoint accepts.curl -X POST https://thenewblack.ai/api/v1/generate \ -H "Authorization: Bearer tnb_live_XXXXXXXXXXXX" \ -H "Content-Type: application/json" \ --data-binary @- <<'JSON' { "workflow": "crosswalk_look_switch-v1", "model_image": "https://example.com/model.jpg", "garment_image_1": "https://example.com/image.jpg", "garment_image_2": "https://example.com/image.jpg", "fields": { "decor": "a sunny Paris crosswalk lined with cream Haussmann buildings", "audio": "No music, natural environment sounds.", "speed": "Real speed" }, "duration": "10", "tier": "standard" } JSONconst res = await fetch("https://thenewblack.ai/api/v1/generate", { method: "POST", headers: { Authorization: `Bearer ${process.env.TNB_API_KEY}`, "Content-Type": "application/json" }, body: JSON.stringify({ "workflow": "crosswalk_look_switch-v1", "model_image": "https://example.com/model.jpg", "garment_image_1": "https://example.com/image.jpg", "garment_image_2": "https://example.com/image.jpg", "fields": { "decor": "a sunny Paris crosswalk lined with cream Haussmann buildings", "audio": "No music, natural environment sounds.", "speed": "Real speed" }, "duration": "10", "tier": "standard" }), }); const { generation_id, poll } = await res.json();import os, requests res = requests.post( "https://thenewblack.ai/api/v1/generate", headers={"Authorization": f"Bearer {os.environ['TNB_API_KEY']}"}, json={ "workflow": "crosswalk_look_switch-v1", "model_image": "https://example.com/model.jpg", "garment_image_1": "https://example.com/image.jpg", "garment_image_2": "https://example.com/image.jpg", "fields": { "decor": "a sunny Paris crosswalk lined with cream Haussmann buildings", "audio": "No music, natural environment sounds.", "speed": "Real speed", }, "duration": "10", "tier": "standard", }, ) generation_id = res.json()["generation_id"]npx @thenewblack/cli generate crosswalk_look_switch \ --model_image ./model.jpg \ --garment_image_1 ./image.jpg \ --garment_image_2 ./image.jpg \ --decor 'a sunny Paris crosswalk lined with cream Haussmann buildings' \ --audio 'No music, natural environment sounds.' \ --speed 'Real speed' \ --duration 10 \ --tier standard \ --wait --out results/
3. Get the result
The call answers at once with a
generation_id. PollGET /v1/generations/{id}until the status settles, or send awebhook_urland we POST the outcome to it.// 202 Accepted { "generation_id": "3f1c9a6e-...", "status": "running", "poll": "/api/v1/generations/3f1c9a6e-..." } // GET /v1/generations/3f1c9a6e-... → 200 OK { "generation_id": "3f1c9a6e-...", "workflow": "crosswalk_look_switch", "status": "succeeded", "result": { "type": "video", "url": "https://.../result.mp4", "thumbnail": "https://.../thumb.webp" } }Results stay 48 hours on our URL: copy them to your own storage. Authentication, errors and webhooks are documented in the full API reference.
Parameters
/v1/generateworkflow: crosswalk_look_switch-v1One endpoint serves every workflow; this page documents crosswalk_look_switch-v1, the current version. Earlier versions, if any, keep being served under their own names.
| Parameter | Value for this workflow |
|---|---|
| workflow | "crosswalk_look_switch-v1" required |
| model_image | Model — one public HTTPS URL.required |
| garment_image_1 | Garment 1 — one public HTTPS URL.required |
| garment_image_2 | Garment 2 — one public HTTPS URL.required |
| fields.decor | Setting. Where the reel is shot — a crosswalk, a runway, a street.Defaults to “a sunny Paris crosswalk lined with cream Haussmann buildings”. |
| fields.details | Add details. Anything to add or change, in a sentence — it is added at the very end of the prompt. |
| fields.audio | Audio. The sound of the clip — music, voices, ambience. Leave the default for the natural sounds of the scene.Defaults to “No music, natural environment sounds.”. |
| fields.speed | Speed. The pace of the clip: "Real speed" (the default) for natural, normal-speed movement; "Slow motion" for slowed-down movement.Real speed · Slow motionDefaults to “Real speed”. |
| duration | 10 (seconds) |
| sound | Optional — "on" (default) keeps the clip's own sound, "off" makes it silent. |
| tier | "standard" (2.2 cr/s), "pro" (4.4 cr/s) or "ultra" (23 cr/s) — 1080p on our top video model |
| 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. |
Pricing
| Tier | Credits | What it makes | From |
|---|---|---|---|
| standard | 2.2 cr/s | 720p resolution video + fast generation | $0.12 |
| pro | 4.4 cr/s | 1080p resolution video + thinking process before generating | $0.24 |
| ultra | 23 cr/s | 1080p resolution video + deep thinking process before generating | $1.25 |
Credits are debited when the request is accepted, the seconds asked × the rate, rounded up to a whole credit; at most 1000; a failed generation is refunded automatically. Dollar prices are at the best credit price, $0.054 a credit (Enterprise, billed yearly). Credits come with plans and packs; new accounts start with free credits.
From Claude and from the terminal
The same workflow is the crosswalk_look_switch tool of our MCP server for Claude, and tnb generate crosswalk_look_switch in our command line (the CLI tab above), with the same parameters and the same prices.
Frequently asked questions
What does the Look Switch Walk endpoint need?
model_image (Model), garment_image_1 (Garment 1), garment_image_2 (Garment 2), fields.decor (Setting, optional), fields.details (Add details, optional), fields.audio (Audio, optional), fields.speed (Speed, 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 — the seconds asked × the rate, rounded up to a whole credit; at most 1000. A failed generation is refunded.
How much does it cost?
2.2 credits per second of output on the standard tier, 4.4 on pro, 23 on ultra: the seconds asked × the rate, rounded up to a whole credit; at most 1000. At $0.054 a credit (Enterprise, billed yearly), that is $0.12 per second of video on standard. 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