Mage API · Audio model
Seed Audio API
Voices, music, and sound effects from one prompt
POST https://api.mage.space/v1/seed_audio/generateAt a glance
The Seed Audio API runs Seed Audio through Mage at POST https://api.mage.space/v1/seed_audio/generate. A request at the default settings costs 19 Gems (about $0.019), with no subscription. Seed Audio takes saved audio references by @handle in the prompt.
- AudioOutput
- 1Variant
- 19Gems per clip, default
- $0.019About, in USD
Overview
What the Seed Audio API does
Speech, dialogue, music, and sound effects from a single prompt, as an MP3 of exactly the length you ask, 5 seconds to 2 minutes. Match a voice from up to 3 audio clips.
Voices, dialogue, music, and sound effects from one prompt, as an MP3 of exactly the requested duration.
It accepts image as inputs.
Quick start
Call the Seed Audio API
Set MAGE_API_KEY, submit to /seed_audio/generate, and poll status_url until the request completes.
cURL
STATUS_URL=$(curl --request POST 'https://api.mage.space/v1/seed_audio/generate' \
--header "Authorization: Bearer $MAGE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"prompt": "A calm narrator reading a short weather report",
"duration": "5",
"model_id": "seed-audio-1.0"
}' | jq -r '.status_url')
# Repeat until status is "completed"; result.url is the file
curl "$STATUS_URL" --header "Authorization: Bearer $MAGE_API_KEY"TypeScript
// npm install @mage-space/sdk
import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('seed_audio', {
prompt: 'A calm narrator reading a short weather report',
duration: '5',
model_id: 'seed-audio-1.0',
});
console.log(request.result.url);Python
# pip install mage-space
from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("seed_audio", {
"prompt": "A calm narrator reading a short weather report",
"duration": "5",
"model_id": "seed-audio-1.0",
})
print(request["result"]["url"])Models
Seed Audio model_id values
Send model_id to pick a variant. A request without one runs the default.
| model_id | Name | Default |
|---|---|---|
| seed-audio-1.0 | Seed Audio | Yes |
Options
Seed Audio parameters
Allowed values across all variants; a variant may offer fewer. The docs list the options per variant.
| Field | Values |
|---|---|
| duration | 5, 10, 30, 60, 120 |
Inputs
Media inputs Seed Audio accepts
Send each as an https URL, a data URL, or an upload of up to 100 MB.
| Field | Role |
|---|---|
| image | The reference image. |
Rules
What the Seed Audio API enforces
- An image reference cannot be combined with audio references: send one kind or the other.
- The prompt is at most 2986 characters.
- `sample_rate` is one of 8000, 16000, 24000, 32000, 44100, 48000.
- `speech_rate` is a whole number from -50 to 100.
- `loudness_rate` is a whole number from -50 to 100.
- `pitch_rate` is a whole number from -12 to 12.
More audio models
Other audio generation APIs on Mage
Eleven Music API
ElevenLabs songs, with vocals or without
Eleven Speech API
ElevenLabs v4: lifelike speech you can direct
FAQ
Frequently asked questions
How much does the Seed Audio API cost?
What is the Seed Audio API endpoint?
Which Seed Audio models can I call?
Does Seed Audio support reference images or characters?
Can I use Seed Audio from Claude or ChatGPT?
How long are Seed Audio results kept?
Start building with Mage
One account, one Gems balance, every model. Pay only for what you generate.