Make a video from a niche
generate_from_nicheRuns ONE niche on the signed-in account: starts the video, puts the aicut card in front of the user and returns the new job's id immediately. It does NOT wait for the video. WHEN: the user wants one of the formats list_niches lists. Read that niche in full first: slug and revision come from it, values answer its text and select inputs by key, media fills its image inputs. A setting you leave out is the niche's default. THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), again at once while terminal: false, then one short line; no get_* polling, timers, background shells or narrating the wait. No card? Give the user the url. TIMING: a video takes 1-3 minutes, up to about 6: do not assume it failed before then. COST: this spends the user's tokens. A 409 revision_changed means the niche or its price moved: read it again and ask again at the new price. SPENDS TOKENS: price with estimate_only: true, ask in the SAME message as the price, and wait for a go that names THIS purchase (SPENDING RULES, this server's instructions). IDEMPOTENCY: a reused idempotency_key REPLAYS the first job whatever the settings: never reuse one for a new generation (this server's instructions). The flow: get_recipe niche-run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The niche's `slug`, from `list_niches`. | |
| audio | No | Sound on the video, where `settings.options.audio_selectable` is true. Only if the user asked; never to save tokens, never carried over. | |
| media | No | One entry per picked image. | |
| model | No | A `settings.options.models` value. Only if the user asked; never to save tokens, never carried over. | |
| values | No | Answers to the text and select inputs, by input `key`: the user's own words, or a select's `options` value (own words only where `allow_custom`). | |
| revision | Yes | The `revision` of the niche as you read it (`list_niches` with `slug`). | |
| resolution | No | One of the niche's `settings.options.resolutions`; higher costs more. Only if the user asked; never to save tokens, never carried over. | |
| aspect_ratio | No | A `settings.options.aspect_ratios` value. Only if the user asked; never to save tokens, never carried over. | |
| estimate_only | No | Price only; creates nothing. | |
| idempotency_key | No | Retry-safety key (IDEMPOTENCY). | |
| duration_seconds | No | One of the niche's `settings.options.durations_seconds`; longer costs more. Only if the user asked; never to save tokens, never carried over. |