Make a project from your own audio
studio_create_from_audioCosts 2 cents: listens to a voice recording from your Library and makes a Studio project from it (scenes timed to your voice). confirm_cents is the most you agree to pay: the step charges what it costs, never more, and refuses with price_changed (charging nothing) when it costs more. Call it with confirm_cents: 0 to learn the price of a paid step (the answer is price_changed with price_cents; nothing is charged). A free step (a standard voice, a visual already bought) just runs. Idempotency is keyed on (this token, this tool, idempotency_key), not on the arguments.
Args: library_id: a voice/audio item from library_list. confirm_cents: the most the user agreed to pay, in cents. idempotency_key: unique per purchase (recommended).
Returns: {ok, project_id, job_id, kind:'render', poll_after_s, cents}: the job (au_) is the listening step; poll with wait_for_job, then studio_get_project and studio_render the result. Cancel with cancel_job.
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": {
"library_id": "<library_id>",
"confirm_cents": "<confirm_cents>"
},
"name": "studio_create_from_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library_id | Yes | ||
| confirm_cents | Yes | The most the user agreed to pay, in whole cents (0 learns the price). | |
| idempotency_key | No | Any unique string (1-200 printable chars) so a retry never buys twice. |