Make a video from a niche
generate_from_nicheRuns ONE niche on the signed-in account and returns the new job's id at once; it does NOT wait for the video. WHEN: the user wants a format list_niches lists; read that niche in full first. A plan_required niche runs from a ready preview_niche_script: send its plan_id, no revision or values. THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), never timers or background shells. No card? Give the user the url. COST: this spends the user's tokens. SPENDS TOKENS: price with estimate_only: true, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules). idempotency_key: IDEMPOTENCY (this server's instructions). The flow: get_recipe niche-run.
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": {
"slug": "<slug>"
},
"name": "generate_from_niche"
}
}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 or music. | |
| model | No | A `settings.options.models` value. Only if the user asked; never to save tokens, never carried over. | |
| values | No | Answers by input `key`: the user's own words, or a select's `options` value (own words only where `allow_custom`). | |
| plan_id | No | A ready `preview_niche_script` `plan_id`. | |
| revision | No | The `revision` you read (`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 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. |