The New Black AI

AI Fashion CLI for Claude Code, Codex and Cursor

AI coding agents cannot make images. The New Black AI gives them a command: tnb, published on npm as @thenewblack/cli, runs every workflow of the studio from a terminal, uploads your local product photos and writes the renders beside them, under readable names.

Updated 2 October 2026

  1. 1Install and sign in
  2. 2One line per render
  3. 3Let the agent loop
AI Fashion CLI for Claude Code, Codex and Cursor

How it works

1

Install and sign in

npx @thenewblack/cli --help runs it without installing; tnb login asks once for your API key, or TNB_API_KEY on a server.

Editorial fashion photograph generated with The New Black AI
2

One line per render

tnb generate product_to_model --product_images ./green-dress.jpg --prompt "AI model wearing the product" --ratio 4:5 --wait --out ./renders/

3

Let the agent loop

Open Claude Code, Codex or Cursor on a folder of photos and say what you want: one command per photo, a report beside the renders.

Why it matters

A folder of product photos and an agent that never opens a website: that is the scenario the CLI exists for. The upload, the wait and the download are handled; what is left is the instruction.

Read more in AI fashion images from the command line. Reference on the CLI page.

Frequently asked questions

Which agents?+

Claude Code, Codex, Cursor, and anything that can run a command.

Where do the renders go?+

Next to the originals, in the folder you name, with a readable file name per workflow.

Does it need Node?+

Node 18 or later.

Does it use my studio credits?+

Yes. The CLI runs under your API key: the same account, the same credits and the same creations as the studio.

Can it run on a server or in CI?+

Yes. Set TNB_API_KEY in the environment instead of running tnb login.

Which workflows can it run?+

Every workflow of the studio, with the same options as the panel: product to model, virtual try-on, videos, sketches, 3D.

Try it yourself

Everything on this page runs through the API, with your own key.

Read the API docs