curl --request POST \
--url https://api.mage.space/v1/seed_tts/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "[thoughtful] Every lighthouse keeps one promise: to stay lit until morning. [sighs] It kept it."
}
'import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('seed_tts', {
prompt: '[thoughtful] Every lighthouse keeps one promise: to stay lit until morning. [sighs] It kept it.',
});
console.log(request.result.url);from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("seed_tts", {
"prompt": "[thoughtful] Every lighthouse keeps one promise: to stay lit until morning. [sighs] It kept it.",
})
print(request["result"]["url"])const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: '[thoughtful] Every lighthouse keeps one promise: to stay lit until morning. [sighs] It kept it.'
})
};
fetch('https://api.mage.space/v1/seed_tts/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff",
"status": "in_progress",
"architecture": "seed_tts",
"model_id": "seed-tts-3.0",
"created_at": "2026-09-17T14:52:48.000Z",
"updated_at": "2026-09-17T14:52:49.000Z",
"billing": {
"mode": "gems",
"gems_charged": 1
},
"result": null,
"error": null,
"status_url": "https://api.mage.space/v1/requests/d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff/status",
"cancel_url": "https://api.mage.space/v1/requests/d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff/cancel"
}{
"error": {
"code": "invalid_config",
"message": "`resolution` must be one of: 768P, 2K."
}
}{
"error": {
"code": "unauthorized",
"message": "The API key is invalid or has been revoked."
}
}{
"error": {
"code": "insufficient_gems",
"message": "This generation costs 40 gems and the account balance is too low.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff",
"gems_required": 40
}
}{
"error": {
"code": "content_blocked",
"message": "The request was blocked by Mage's content policy.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff"
}
}{
"error": {
"code": "architecture_retired",
"message": "This architecture has been retired.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff"
}
}{
"error": {
"code": "too_many_requests",
"message": "At most 20 generations may be in flight at once for this account; 20 are running now."
}
}{
"error": {
"code": "content_blocked",
"message": "The request was blocked by an external content restriction.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff"
}
}{
"error": {
"code": "internal_error",
"message": "Something went wrong on our side. Retry, and contact support if it persists."
}
}Seed TTS
Generate audio with Seed TTS through the Mage API: the fields of POST /v1/seed_tts/generate, its options by model, the rules it enforces, and its gem price.
curl --request POST \
--url https://api.mage.space/v1/seed_tts/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "[thoughtful] Every lighthouse keeps one promise: to stay lit until morning. [sighs] It kept it."
}
'import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('seed_tts', {
prompt: '[thoughtful] Every lighthouse keeps one promise: to stay lit until morning. [sighs] It kept it.',
});
console.log(request.result.url);from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("seed_tts", {
"prompt": "[thoughtful] Every lighthouse keeps one promise: to stay lit until morning. [sighs] It kept it.",
})
print(request["result"]["url"])const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: '[thoughtful] Every lighthouse keeps one promise: to stay lit until morning. [sighs] It kept it.'
})
};
fetch('https://api.mage.space/v1/seed_tts/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff",
"status": "in_progress",
"architecture": "seed_tts",
"model_id": "seed-tts-3.0",
"created_at": "2026-09-17T14:52:48.000Z",
"updated_at": "2026-09-17T14:52:49.000Z",
"billing": {
"mode": "gems",
"gems_charged": 1
},
"result": null,
"error": null,
"status_url": "https://api.mage.space/v1/requests/d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff/status",
"cancel_url": "https://api.mage.space/v1/requests/d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff/cancel"
}{
"error": {
"code": "invalid_config",
"message": "`resolution` must be one of: 768P, 2K."
}
}{
"error": {
"code": "unauthorized",
"message": "The API key is invalid or has been revoked."
}
}{
"error": {
"code": "insufficient_gems",
"message": "This generation costs 40 gems and the account balance is too low.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff",
"gems_required": 40
}
}{
"error": {
"code": "content_blocked",
"message": "The request was blocked by Mage's content policy.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff"
}
}{
"error": {
"code": "architecture_retired",
"message": "This architecture has been retired.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff"
}
}{
"error": {
"code": "too_many_requests",
"message": "At most 20 generations may be in flight at once for this account; 20 are running now."
}
}{
"error": {
"code": "content_blocked",
"message": "The request was blocked by an external content restriction.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff"
}
}{
"error": {
"code": "internal_error",
"message": "Something went wrong on our side. Retry, and contact support if it persists."
}
}| Detail | |
|---|---|
| Type | Audio |
| Models | seed-tts-3.0 (Seed TTS 3.0, default) |
| Image inputs | None |
| Video inputs | None |
| Gems | 0.03 per character of the prompt, audio tags included, rounded up per request (3 per 100 characters, 30 per 1,000); a Chinese or Japanese kanji character counts as two, and a request costs at least 1 |
| Model page | Seed TTS |
Mentions
This model takes no@handle mentions: saved characters, references, and audio references are not available on it. See Characters and references.
Rules
A request that breaks one of these is refused with400 invalid_config before any gems are charged.
- The prompt is the text to speak, at most 10000 characters, audio tags included. It needs at least one word: tags alone make no speech.
- Tags are English words in square brackets, spelled exactly as listed, placed where their effect starts, even in text in another language. An emotion or delivery tag shapes the words after it until the next tag; a vocal tag such as [laughs] is a sound made once, where it sits. Any other bracketed word is dropped silently.
- Emotion tags: [happy] [excited] [bored] [sad] [distressed] [angry] [nervous] [fearful] [panicked] [surprised] [disgusted] [curious] [puzzled] [confident] [serious] [commanding] [pleading] [reassuring] [sarcastic] [laughing] [crying] [disappointed] [hopeless] [desperate] [frustrated] [worried] [embarrassed] [guilty] [thoughtful] [sympathetic] [indifferent].
- Delivery tags: [very low pitch] [low pitch] [high pitch] [very high pitch] [very slow] [slow] [fast] [very fast] [very quiet] [quiet] [loud] [very loud] [hurried] [stammering] [whispering] [soft] [shouting] [muttering] [weak] [tired] [in pain] [panting] [trembling].
- Vocal tags: [laughs] [chuckles] [giggles] [whimpers] [cries] [sobs] [wails] [screams] [scoffs] [inhales] [inhales deeply] [gasps] [exhales] [exhales sharply] [sighs] [pants] [wheezing] [clears throat] [coughs] [grunts] [groans] [sniffs] [sneezes] [smacks lips] [clicks tongue] [yawns] [laughing hysterically] [swallows].
voiceis one of allison, margaret, megan, daphne, naomi, natasha, charlotte, harriet, dean, nigel, julian, orion, jasper, rory, harrison, barnaby, callum, lucia, renata, diego, elodie, antoine, stella, sven, matteo, camila, thiago, haruka, hiro, minji, jaeho, xiaohe, xiaotian, fatma, youssef, aditi, irina. Every voice speaks every language; its own language sets the accent.languageisauto(detects the language and handles mixed text) or a language code; a regional code such asen-GB,es-MX, orpt-BRalso sets the accent.speedruns from 0.5 to 2 (1 is natural), andpitchfrom -12 to 12 semitones.
billing.gems_charged, and the balance at GET /v1/account.Authorizations
Create a key in API → API Keys: select Create API key, name it in the popup, then select Create key. Copy the one-time key and send it as Authorization: Bearer mage_sk_…. Keys are for server-side code only.
Headers
A key of your choosing, 1 to 255 characters, scoped to your API key. A retried submit with the same key returns the original request with 200 instead of charging again. The key identifies the first submission made with it; later bodies are not compared. A refusal recorded under the key (its envelope carries request_id) replays the same way, so a new attempt needs a new key.
1 - 255Body
A partial config for Seed TTS.
The voice that speaks the prompt.
allison, margaret, megan, daphne, naomi, natasha, charlotte, harriet, dean, nigel, julian, orion, jasper, rory, harrison, barnaby, callum, lucia, renata, diego, elodie, antoine, stella, sven, matteo, camila, thiago, haruka, hiro, minji, jaeho, xiaohe, xiaotian, fatma, youssef, aditi, irina One of the listed tokens.
auto, af, am, ar, as, ast, az, be, bg, bn, bs, ca, ceb, ckb, cs, cy, da, de, el, en, en-GB, es, es-MX, et, fa, fi, fil, fr, fuv, gl, gu, ha, he, hi, hr, hu, hy, id, ig, is, it, ja, jv, ka, kam, kea, kk, km, kn, ko, ky, lb, lg, ln, lo, lt, luo, lv, mi, mk, ml, mn, mr, ms, mt, my, ne, nl, no, nso, ny, oc, ory, pa, pl, ps, pt, pt-BR, ro, ru, sd, sk, sl, sn, sq, sr, sv, sw, ta, te, tg, th, tr, uk, umb, ur, uz, vi, wo, xh, yo, yue, zh, zh-CN-x-beijing, zh-CN-x-changsha, zh-CN-x-dongbei, zh-CN-x-henan, zh-CN-x-hubei, zh-CN-x-kejia, zh-CN-x-minnan, zh-CN-x-nanchang, zh-CN-x-nanjing, zh-CN-x-shaanxi, zh-CN-x-shandong, zh-CN-x-shanghai, zh-CN-x-sichuan, zh-CN-x-taiwan, zh-CN-x-tangshan, zh-CN-x-tianjin, zu Response
The request was accepted; poll status_url for the result. A retried submit whose Idempotency-Key was used before answers 200 with the same shape, the original request, and charges nothing.

