Brand kits

A brand kit keeps the same face, product, look or voice across models. It holds:

  • Pictures: up to 8 reference pictures, such as your character's face or your product.
  • Style notes: a few words added to the end of every prompt, such as warm film look, soft light.
  • A voice: the voice name speech models use, such as alloy.

Make kits on Brand kits in the dashboard, or from code with /v1/kits. Then add "kit" with the kit's id or its name to any picture, video, music or speech request. MartLLM fills in that model's own fields, so you can switch from one model to another without rewriting the request.

Use a kit

curl https://api.martllm.com/v1/video/generations \
  -H "Authorization: Bearer $MARTLLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "bytedance/seedance-2-5-reference-to-video-basic",
       "prompt": "she unboxes the serum on a sunny kitchen table",
       "kit": "Mia"}'

"kit" works on POST /v1/images/generations, /v1/images/edits, /v1/video/generations, /v1/music/generations, /v1/audio/speech and /v1/quote. The price in a quote is the price of the request with the kit filled in. The Playground has a Brand kit picker, and the MCP tools generate_image, edit_image, start_video and start_music take kit too (list_kits lists your kits).

What a kit fills in

The model you call What the kit adds
Reference-to-video (e.g. Seedance 2.5 reference-to-video) the pictures, in input_images
Image-to-video (a start frame) the first picture, as image_url
Picture edits and picture-from-pictures models the pictures, in input_images
Speech the voice, unless you set voice yourself
Music the style notes, and the voice when the model lists it
Every picture, video and music model the style notes, at the end of prompt

Details:

  • Your own pictures come first. Kit pictures go after the pictures you send, until the model's limit. A model that takes 3 pictures gets your pictures, then the kit's first ones. Put the most important picture first in the kit.
  • A start-frame model takes one picture. If you already sent image_url, the kit's pictures can't be added, and the error names reference-to-video models that take both.
  • Your settings win. A voice in the request is kept. A speech request's text is never changed, so style notes are not added to it.
  • Nothing changes in your kit when you use it. Change it on the dashboard or with PATCH /v1/kits/{kit}.

When a model can't use the kit

A model that takes no pictures (a text-to-image or text-to-video model), with a kit that has pictures, is refused with 400 kit_not_usable before anything is charged. The message names models that take pictures, most used first:

{"error": {"code": "kit_not_usable",
  "message": "bytedance/seedance-2-5-text-to-video-basic makes videos from words alone and can't use the pictures in the brand kit \"Mia\". Models that can: bytedance/seedance-2-5-reference-to-video-basic, … All of them are at martllm.com/models?type=video. Nothing was charged."}}

A kit with only style notes works on every picture, video and music model.

Real people

Some model makers refuse pictures of real people. ByteDance's Seedance, for example, refuses a reference picture it reads as a real person. When that happens the job fails with the maker's own reason in error.message (we don't hide or reword it), and nothing is charged. Pictures of a made-up character or a product are not affected.

Pictures

Each picture must be:

  • PNG, JPEG or WebP, up to 10 MB;
  • 300 to 6000 px on each side. This is the strictest rule of the models we sell (Seedance), so a kit picture works on every model that takes pictures. A picture outside it is refused at upload with the size to resize it to.

A kit holds up to 8 pictures and an account up to 50 kits.

The API

All routes use your API key. Kit ids look like kit_…; the routes take the id. In a request's "kit" field, the name works too, in any case (Mia, mia).

# Make a kit
curl https://api.martllm.com/v1/kits -H "Authorization: Bearer $MARTLLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Mia", "style": "warm film look, soft light", "voice": "alloy"}'

# Add a picture (multipart, field "file"; "label" is optional), with the id from above
curl https://api.martllm.com/v1/kits/kit_3f2a…/images -H "Authorization: Bearer $MARTLLM_API_KEY" \
  -F [email protected] -F label=face
Route What it does
GET /v1/kits your kits, with limits (kits per account, pictures per kit)
POST /v1/kits make a kit: name (1-60 characters, unique), style (up to 1000), voice (up to 100)
GET /v1/kits/{kit} one kit
PATCH /v1/kits/{kit} change name, style or voice
DELETE /v1/kits/{kit} delete the kit and its pictures
POST /v1/kits/{kit}/images add a picture
DELETE /v1/kits/{kit}/images/{image} remove a picture (and delete its file)
GET /v1/kits/{kit}/images/{image}/content the picture itself
GET /v1/kits/{kit}/export a ZIP of the kit: kit.json and its pictures
GET /v1/kits/export a ZIP of every kit

A kit looks like this:

{"id": "kit_3f2a…", "object": "kit", "name": "Mia",
 "style": "warm film look, soft light", "voice": "alloy",
 "images": [{"id": "file_9c1d…", "position": 1, "width": 1024, "height": 1024,
             "content_type": "image/png", "bytes": 482113, "label": "face",
             "url": "https://api.martllm.com/v1/kits/kit_3f2a…/images/file_9c1d…/content"}],
 "created_at": 1795686400, "updated_at": 1795686400}

Errors: 404 kit_not_found (no kit with that id or name in your account), 409 kit_name_taken, 400 kit_full (8 pictures), 400 too_many_kits, 400 kit_not_usable (see above), 404 kit_image_not_found.

Your data

  • A kit is kept only because you made it. Nothing is added to a kit by itself.
  • Kit pictures stay until you remove them or delete the kit. They are not uploads, so they don't count against your files and DELETE /v1/files/{id} doesn't remove them.
  • Deleting a kit or a picture deletes the files from our storage. Requests that name a deleted kit get 404 kit_not_found.
  • Download any kit, or all of them, as a ZIP from the dashboard or the export routes.
  • When a request uses a kit, the model's seller gets a short-lived link to each picture, the same way as for files you upload. Only your account can use your kits. See Privacy.