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
- 1Install and sign in
- 2One line per render
- 3Let the agent loop

How it works
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.

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/
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.
Related features
- AI Fashion Reels: Trending Outfit Transition VideosMake trending AI fashion reels from one photo: outfit transitions as people pass, as your model walks, at a finger snap, after a jump, and more. 10-second 9:16 videos for Reels, TikTok and Shorts.
- AI Fashion Video from Reference ImagesPut your model, your garment and a place into one video: add up to three reference pictures, describe the scene, and get a 5 to 15 second fashion clip in 9:16, 1:1 or 16:9.
- Publish Fashion Posts to Threads from the StudioConnect Threads in Connectors, then post or schedule your fashion images and videos to Threads from the Brand Manager's social agenda, next to Instagram and TikTok.
- AI Voice Over for Fashion VideosAI voice-over for fashion videos: write a text, choose one of 14 voices and get an MP3 to put under a product video or an ad. About half a credit for a 30-second script.
- Remove or Extract the Sound of a VideoRemove the sound of a video, extract it as an MP3 or replace it with your own music, in one Audio button. Remove and extract are instant and free with a plan or a credit pack.
- Fashion Reel Templates & AI Motion DesignEighteen Motion Design templates for fashion reels: drop your photos or clips, edit the words, render a 10-second video in 9:16, 4:5, 1:1 or 16:9. One credit, every plan.
- Google Shopping Free Listings: Impressions, Clicks, Approved ProductsThe Store's Google Shopping view reads a Shopify brand's free listings from Merchant Center: impressions, clicks, click-through rate, approved listings and a product-by-product table.
- Google Shopping: Fix Missing Color, Age Group, Gender on ShopifyA Fix button on the Store's Google Shopping view: a missing color, age group, gender or other Google attribute is proposed, confirmed, and written on the Shopify product for Google to re-read.