Agent recipes
Common API workflows for coding agents.
For voiceovers, use the official skill. For an agent building an API integration, these checklists link to the relevant reference pages.
See Integration options for video, automation and voice-agent examples, including their availability and validation limits.
Generate speech
Start with the Python SDK quickstart for an executable example that saves a finalized WAV and checks operation completion.
- Configure an API key.
- Find a ready voice using catalog filters.
- Send a speech request, saving
X-Request-Idand audio as they arrive. - Verify the stream completed and finalize saved WAV headers. File checks do not verify spoken content; listen when reviewing pronunciation.
Create a video with narration
For a new project, point the agent to SawtakArabi/arabic-video-starter with the brief and requested dialect. Read the repository's AGENTS.md, README.md and matching dialect guide. Use the official skill for scene WAVs, or retrieve available completed recordings through an already connected MCP. The starter imports those files, measures scene timing and renders the MP4 with Remotion. Keep accepted takes when revising other scenes. If the user supplies an existing video project, retain its tooling.
Clone a voice
- Submit the multipart clone request with an idempotency key.
- Save the voice ID from the
201response. It is ready to use. - If the request times out, inspect its operation before uploading again.
Recover from a failure
- Read the HTTP status and
error.code; follow Errors. - On
429, wait forRetry-Afterand retry with bounded backoff. - Preserve partial audio and request identifiers. Check operation status when available.
- For uncertain paid work, ask before starting another generation. Reuse completed files.