enqueue_generate_images
Start character portrait, voice, location image AND key prop image generation server-side as a background job. Without characterIds or locationIds it also makes one image for every location without one and every key prop a scene uses without one (a prop image is made on the location model, at its price). Use this when the user wants to (a) fill in missing character images, (b) regenerate one or more characters, or (c) give a character a voice or a different voice. Cast must have characters with physical descriptions. Pass characterIds to scope the run; omit to cover every character missing an image. Through the API, replace: true regenerates the existing image on the targeted characters. By default (replace omitted) characters that already have an image are skipped. In the studio chat, replace, replaceLocations or replaceProps on a character, place or key prop that has an image starts nothing: the server shows the user a card with exactly what is redrawn, its price and a Start button, and only their tap on Start redraws it. Characters, places and props with no image yet start as usual. A portrait is drawn from the description as it is saved: while a description rewrite of that character is still running, the job waits for it. VOICES: the same job also creates a short voice sample for every targeted character that has a voice description and no sample yet (narrators included). Voice samples are free; every scene render attaches them so a character sounds the same in every scene. An existing voice is kept unless you pass newVoice: true together with characterIds, which replaces it (use only when the user asks for a different voice, and say that scenes already rendered keep the old voice until they are rendered again).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"movieId": "<movieId>"
},
"name": "enqueue_generate_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| movieId | Yes | The movie id (uuid) this call operates on. Get it from create_movie or list_movies. | |
| propIds | No | Key prop ids (from list_props) to make reference images for (a place image's price each). Alone, the job makes only those prop images (no portraits, no places). Without propIds, the job makes the images of the key props a scene uses that have none whenever it makes the image of every location without one (no characterIds and no locationIds given). | |
| replace | No | Through the API: when true, the targeted characters get a new image even if they have one ("regenerate" / "redo"). In the studio chat, for a character that already has a portrait, it starts nothing: the server shows the user a card with the price and a Start button, and only their tap on Start redraws it. Defaults to false. | |
| retryOf | No | Only when this RE-RUNS a job that failed or was cancelled (the user asks to try again or retry it): that job's id, from list_running_jobs (recentlyEnded). Only what that run did not finish is made and charged. Leave it out for anything the user asks for anew, even the same thing again: then every target gets a new picture. | |
| newVoice | No | When true, replace the voice sample of the targeted characters with a new voice. Portraits are untouched unless `replace` is also true. Defaults to false. | |
| newRequest | No | Only after this tool answered needsChoice (the same request failed within the hour) and the user wants NEW pictures for all of them anyway (not a retry): set true. Never together with retryOf. | |
| skipPlaces | No | Series episodes: pass it when get_pipeline_state's nextStepInput has it (the episode's locations were already tried, so only its key props are made). | |
| locationIds | No | Optional list of location ids to generate images for. Omit to cover every location without an image (locations are skipped when characterIds is given and this is not). | |
| characterIds | No | Optional list of character ids to generate images for. Omit to cover all characters without images. | |
| replaceProps | No | Through the API, with propIds: make a new image for those props even if they have one. In the studio chat a key prop that has an image starts nothing: the server shows the user a card with its price and a Start button. | |
| locationsOnly | No | Series episodes: pass it when get_pipeline_state's nextStepInput has it. The job then makes no portrait but those of characterIds, and the images of every location and key prop without one. | |
| replaceLocations | No | Through the API, with locationIds: make new images for those locations even if they have one. In the studio chat a location that has an image starts nothing: the server shows the user a card with its price and a Start button. |