Python SDK — Quickstart
Python SDK — Quickstart
Clone a gallery template into a workflow, give it a script and a voice, run it, and download the audio, all in code. No existing workflow needed.
Prefer the CLI? See the Quickstart for the same flow in the terminal.
1. Install & authenticate
The key needs the workflows:write scope (it clones and edits a workflow), plus templates:read, workflows:read, and workflows:run.
2. Pick a template
This Quickstart uses the starter template, the simplest graph: one script, one voice, one export. List the gallery to see what’s available:
The script in step 3 selects the is_starter template automatically, so there’s nothing to copy here.
3. Configure it, run it, download it
Gallery templates ship with an empty script and no voice, so you fill those two nodes in the workflow’s definition before running (otherwise runs.start() returns a 422). The script below does the whole flow (clone, configure, run, download) for a starter-shaped template. Just run it:
Expected output:
The saved file lands in your working directory: a .zip of the generated MP3s plus a manifest.csv listing them.
This config assumes a starter-shaped graph: one generator, one locale. Templates that translate or use multiple voices have more generator nodes, and each needs its own voice_map. See Usage to configure them individually.
Next steps
- Usage: every resource, pagination, async, and the export layout
- Upload a script: use a
.txt/.docxfile instead of inline text - Errors: exception handling and retries
- Authentication: scopes, credentials, key rotation

