Make an AI short
ai_short_createCosts the render price (quote.render_cents from ai_short_estimate): makes the project AND starts the render in one call. Pass that price as confirm_cents (the most you agree to; the actual charge is at most that). Pass an idempotency_key so a retry never buys twice.
Args:
plan: the plan from ai_short_draft / ai_short_revise.
confirm_cents: the price you showed the user, whole cents.
idempotency_key: any unique string (1-200 printable chars).
attachment_ids: the staged image ids the plan names (up to 8).
origin: create (optional; marks it as started from the Create page).
Returns: {ok, project_id, job_id, kind: "render", poll_after_s: 15, cents}. Poll with wait_for_job, or studio_get_project. If the render is refused after the project was made, the answer carries project_id and a hint: call studio_render(project_id, confirm_cents), do NOT call ai_short_create again (that makes a second project).
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": {
"plan": "<plan>",
"confirm_cents": "<confirm_cents>"
},
"name": "ai_short_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | The `plan` from ai_short_draft / ai_short_revise. | |
| origin | No | ||
| confirm_cents | Yes | ||
| attachment_ids | No | Staged image ids (up to 8) the short may show or use as references. | |
| idempotency_key | No |