Complete one task
After sign-in and skill discovery, follow: requirements → model parameters → references → free estimate → approval → one submission → original task query → original download. Commands below illustrate steps, not permission to generate.Step 1: choose a model and inspect inputs
Step 2: prepare and upload references
CLI reads files on its execution machine. Check path, permissions, format, size, and model requirements before uploading:Step 3: prepare input and estimate for free
This image example first checks z-image-turbo availability. It demonstrates the flow, not a default recommendation:Step 4: submit once after approval
After the user approves this plan, submit the image using its quote:price_changed), or the quote expires (quote_expired). Do not submit one quote as image, video, and audio.
Several images or tasks of one model
Write the inputs (1–50, each like a single input) to a JSON array or JSONL file, estimate them together, and wait for one approval of the batch total:generate submits every input at once and returns each input’s task ID or error without waiting. If some inputs were not submitted, finish with tasks resume --quote QUOTE_ID within 23 hours of the first submission: accepted inputs return their original tasks without a new charge. Within that window, never resubmit them with a new estimate or generate command. If the quote has expired or the price has risen, tasks resume sends nothing: check tasks batch or tasks list for the inputs that went through, then estimate only the rest as a new batch. Some models, such as GPT Image, often return fewer images than n, so use one input per image.
If the user explicitly says not to estimate or confirm, add --skip-estimate to generate with --model and --input-file or --inputs-file, and skip the quote; see the CLI reference.
Video tasks
Prepare video-input.json from the actual model schema. Check prompt, duration, ratio, quality, audio, and references. Image-to-video, reference video, editing, and extension may use different models and inputs.Music, songs, and speech
Choose music and speech models separately. Prepare audio-input.json according to schema, including supported lyrics/description, language, voice, instrumental mode, references, and exclusive options.Step 5: query, wait, and recover
tasks resume replays the original request ID within 23 hours of the first submission, while the quote is unexpired and the price has not risen. After 23 hours it refuses with recovery_window_passed; with an expired quote or a higher price it refuses with quote_expired or price_changed. In each case nothing is sent, and you check recent tasks before estimating again. A failed task is not charged and its reserved credits are returned automatically; without accounting evidence, do not say the refund has arrived.