Inworld AI TTS-1.5 Mini — Text to audio API
Inworld AI, text-to-audio. Credits per character of text (counted as #speech.text): 0.0031.
Endpoint: POST https://queue.auray.run/auray-serverless/inworld/tts-1-5-mini
Endpoint ID: auray-serverless/inworld/tts-1-5-mini
Usage notes
One of Auray's catalogue models: the same key, the same credits, the same job lifecycle as every other address.
Its request shape is published below. Whether it runs right now is GET /v1/catalogue's word, with no key needed: its addresses say connected for an address that runs, and a submit to any other is refused before anything is charged — described answers 501 model_not_connected, paused 503 model_disabled.
Category text-to-audio · Scope audio:write (or external:write on an older key) · Price Credits per character of text (counted as #speech.text): 0.0031. From 29 to 2000 characters a request. Quoted when you submit, at the most the request can cost; the charge settles to what the job cost and never above the quote. The submit's answer carries the quote as credits_quoted, and credits_charged says what has been taken.
speech— Text → Speech- Prompt: up to 2,000 characters
- Voices: 73 to choose from
- Sound: makes its own sound
- Priced by:
char_in(the whole rule is under Price)
Find the addresses that do any of these with GET /v1/models?operation=<id>; the openapi.json carries them as data under x-auray-capability.
Quick start
curl -X POST https://queue.auray.run/auray-serverless/inworld/tts-1-5-mini \
-H "Authorization: Bearer $AURAY_API_KEY" \
-H "content-type: application/json" \
-d '{
"speech": {
"text": "a brass orrery on a walnut desk, morning light from a window to the left",
"voice": "Loretta"
}
}'import { createClient } from "@auray/client";
const auray = createClient(); // reads AURAY_API_KEY
const result = await auray.subscribe("auray-serverless/inworld/tts-1-5-mini", {
input: {
"speech": {
"text": "a brass orrery on a walnut desk, morning light from a window to the left",
"voice": "Loretta"
}
},
onQueueUpdate: (update) => console.log(update.status),
});
console.dir(result, { depth: null });from auray_client import Client
auray = Client() # reads AURAY_API_KEY
result = auray.subscribe(
"auray-serverless/inworld/tts-1-5-mini",
input={
"speech": {
"text": "a brass orrery on a walnut desk, morning light from a window to the left",
"voice": "Loretta"
}
},
on_queue_update=lambda update: print(update["status"]),
)
print(result){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "run_model",
"arguments": {
"address": "auray-serverless/inworld/tts-1-5-mini",
"input": {
"speech": {
"text": "a brass orrery on a walnut desk, morning light from a window to the left",
"voice": "Loretta"
}
}
}
}
}const res = await fetch("https://queue.auray.run/auray-serverless/inworld/tts-1-5-mini", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AURAY_API_KEY}`,
"content-type": "application/json",
},
body: JSON.stringify({
"speech": {
"text": "a brass orrery on a walnut desk, morning light from a window to the left",
"voice": "Loretta"
}
}),
});
console.log(await res.json());import os, requests
r = requests.post(
"https://queue.auray.run/auray-serverless/inworld/tts-1-5-mini",
headers={"Authorization": f"Bearer {os.environ['AURAY_API_KEY']}"},
json={
"speech": {
"text": "a brass orrery on a walnut desk, morning light from a window to the left",
"voice": "Loretta"
}
},
)
r.raise_for_status()
print(r.json())The same body on https://auray.run runs synchronously and answers the result — unless it usually takes longer than a run may hold its connection, which is refused 400 model_not_synchronous before anything is charged. Options — ?webhook=, ?wait=, priority and timeout headers — are on Submit a request.
Input schema
Show child attributes
1, 2.Show child attributes
"Loretta", "Darlene", "Marlene", "Hank", "Evelyn", "Celeste", "Pippa", "Tessa" and 65 more
"Liam", "Callum", "Hamish", "Abby", "Graham", "Rupert", "Mortimer", "Snik", "Anjali", "Saanvi", "Arjun", "Claire", "Oliver", "Simon", "Elliot", "James", "Serena", "Gareth", "Vinny", "Lauren", "Jessica", "Ethan", "Tyler", "Jason", "Chloe", "Veronica", "Victoria", "Miranda", "Sebastian", "Victor", "Malcolm", "Kayla", "Nate", "Jake", "Brian", "Amina", "Kelsey", "Derek", "Grant", "Evan", "Alex", "Ashley", "Craig", "Deborah", "Dennis", "Edward", "Elizabeth", "Hades", "Julia", "Pixie", "Mark", "Olivia", "Priya", "Ronald", "Sarah", "Shaun", "Theodore", "Timothy", "Wendy", "Dominus", "Hana", "Clive", "Carter", "Blake", "Luna"Show child attributes
"URL"."MP3", "WAV", "FLAC", "OGG".Idempotency-Key: as a header is accepted as an alias — that is the spelling a retrying proxy replays, and the one to use when running a model on auray.run, where a request that outlives its connection is answered 504 and recovered by replay. Omit it and the platform mints one. 1 to 64 characters.Rules
Across fields, as the model's documentation states them. Each is judged before anything is charged — warned with a Deprecation header until enforcement starts — and listed as JSON Schema under x-auray-rules in the openapi.json.
- When
outputFormatis one of "WAV", "FLAC", do not sendaudioSettings. - When
outputFormatis "MP3",audioSettings.sampleRatemust be one of 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000. WhenoutputFormatis "MP3", whenaudioSettings.sampleRateis one of 16000, 22050, 24000,audioSettings.bitratemust be between 8 and 160. WhenoutputFormatis "MP3", whenaudioSettings.sampleRateis one of 32000, 44100, 48000,audioSettings.bitratemust be between 32 and 320. WhenoutputFormatis "MP3", whenaudioSettings.sampleRateis one of 8000, 11025, 12000,audioSettings.bitratemust be between 8 and 64. - When
outputFormatis "OGG",audioSettings.sampleRatemust be one of 8000, 12000, 16000, 24000, 48000. WhenoutputFormatis "OGG", whenaudioSettings.sampleRateis 8000 andaudioSettings.channelsis 2,audioSettings.bitratemust be between 16 and 80. WhenoutputFormatis "OGG", whenaudioSettings.sampleRateis 12000 andaudioSettings.channelsis 1,audioSettings.bitratemust be between 16 and 48. WhenoutputFormatis "OGG", whenaudioSettings.sampleRateis 12000 andaudioSettings.channelsis 2,audioSettings.bitratemust be between 16 and 96. WhenoutputFormatis "OGG", whenaudioSettings.sampleRateis 16000 andaudioSettings.channelsis 1,audioSettings.bitratemust be between 16 and 96. WhenoutputFormatis "OGG", whenaudioSettings.sampleRateis 16000 andaudioSettings.channelsis 2,audioSettings.bitratemust be between 24 and 192. WhenoutputFormatis "OGG", whenaudioSettings.sampleRateis 24000 andaudioSettings.channelsis 1,audioSettings.bitratemust be between 16 and 80. WhenoutputFormatis "OGG", whenaudioSettings.sampleRateis 24000 andaudioSettings.channelsis 2,audioSettings.bitratemust be between 32 and 160. WhenoutputFormatis "OGG", whenaudioSettings.sampleRateis 48000 andaudioSettings.channelsis 1,audioSettings.bitratemust be between 32 and 224. WhenoutputFormatis "OGG", whenaudioSettings.sampleRateis 48000 andaudioSettings.channelsis 2,audioSettings.bitratemust be between 48 and 256. WhenoutputFormatis "OGG", whenaudioSettings.sampleRateis 8000 andaudioSettings.channelsis 1,audioSettings.bitratemust be between 8 and 40.
Machine contracts
- openapi.json — this page as an OpenAPI 3.1 document, public.
- llms.txt — the same, written for an agent.
Was this page helpful?