The New Black AI

Video Outfit Edit API

Edit Outfit in Video — workflow

Change the clothing in a video with a sentence — a colour, a print, another garment — while the person, the movement and the setting stay as filmed.

POST/v1/generateworkflow: change_video_outfit-v1

One endpoint serves every workflow — this page documents change_video_outfit-v1, the current version. Credits are debited at submission (2.8 cr/s standard, 3.7 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.

ParameterValue for this workflow
workflow"change_video_outfit-v1" required
source_videoYour video — one public HTTPS URL.required
fields.changeThe change. What to change on the clothing — e.g. "make the jacket red", "replace the top with a black leather biker jacket".required
durationper engine (seconds)
tier"standard" (2.8 cr/s) or "pro" (3.7 cr/s)
webhook_urlOptional — 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": "change_video_outfit-v1",
    "source_video": "https://example.com/clip.mp4",
    "fields": {
      "change": "make the jacket red"
    },
    "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": "change_video_outfit",
  "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 kind of change can I ask for?

A colour, a print, a length, another garment in place of one — one change per call gives the cleanest result. The new garment fits the body and moves with it.

How is it billed?

By the second of the video you send, standard or pro. The length is read from the file before the job starts.

How much does it cost?

2.8 credits per second on the standard tier, 3.7 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