generate_audio
Generate music or spoken voice narration from text prompts. Specify a description for music or exact text for TTS, and choose a model or voice.
Instructions
Generate music OR spoken voice / narration (fal:* models only). ASYNC — returns a job_id; the caller MUST poll check_job until status="completed" (usually 10-120s). Returns hosted MP3/WAV URLs on completion. Cost typically 50-800 tokens depending on model+duration. MUSIC models: fal:fal-ai/elevenlabs/music (default, vocal+instrumental), fal:fal-ai/musicgen, fal:fal-ai/stable-audio-25/text-to-audio, fal:fal-ai/ace-step. SPOKEN VOICE / TTS / narration: use model "fal:fal-ai/elevenlabs/tts/turbo-v2.5" and put the EXACT words to speak in prompt (read verbatim — do NOT add stage directions like "read warmly", just the text); pass voice to pick a preset (Aria, Sarah, Charlotte, Matilda, Roger, George, Charlie, Brian) or the user's OWN cloned voice by name — default Aria; auto-detects language (incl. Russian). NOTE: OpenAI/Google audio models (openai/gpt-audio*, google/lyria*) are NOT usable here — fal:* only. Avoid brand/copyright terms (e.g. "Pixar", "Disney") in music prompts — ElevenLabs Music rejects them with 422.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model id from list_models (audio category). Default: fal:fal-ai/elevenlabs/music. | |
| voice | No | TTS only (model fal:fal-ai/elevenlabs/tts/turbo-v2.5). A preset: Aria, Sarah, Charlotte, Matilda (female) or Roger, George, Charlie, Brian (male) — default Aria. OR the user's OWN cloned voice by name (clones are made in the avots app / Telegram; a clone routes to MiniMax). Ignored by music models. | |
| lyrics | No | Optional lyrics for vocal generation (ElevenLabs Music supports this). | |
| prompt | Yes | Music description: genre, mood, instruments, tempo, era, reference artists. | |
| duration | No | Length in seconds (default 30). |