All models
Google
Music
Available
Gemini 3.8 Flash Lite Text to Speech
Text-to-speech with Gemini 3.8 Flash Lite.
Text to Speech
From 150 credits (≈ ₹150.00) per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
temperature |
number | Sampling temperature, e.g., 1 min 0 · max 2 · default 1 |
speakersRequired |
array<object> | List of speaker configurations. Each speaker uses either `voice_name` (preset voice) or `replica` (voice clone); the two are mutually exclusive. If neither is sent, the speaker defaults to `Fola`. |
filler_words |
boolean | Whether to insert filler words in two-speaker dialogue. Off by default (omit this field); when enabled, the request includes `"filler_words": true`. Only takes effect when `speakers` has two speakers (e.g. Speaker 1 and Speaker 2). When two people are speaking, you can turn on this switch. default false |
dialogue_turnsRequired |
array<object> | List of dialogue turns, output in sequential order |
What you get back
Files arrive in output.files[] as private links that expire, with their type and size.
Use it from your code
# 1. Create the task
curl https://nexus.promptscenes.in/api/v1/tasks \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "gemini-3.8-flash-lite-text-to-speech",
"input": {
"temperature": 1,
"speakers": null,
"filler_words": false,
"dialogue_turns": null
},
"callback_url": "https://your-app.com/webhooks/nexus"
}'
# 2. Poll for the result
curl https://nexus.promptscenes.in/api/v1/tasks/TASK_ID \
-H "Authorization: Bearer $NEXUS_API_KEY"
import os, time, uuid, requests
API = "https://nexus.promptscenes.in/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['NEXUS_API_KEY']}"}
task = requests.post(
f"{API}/tasks",
headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
json={
"model": "gemini-3.8-flash-lite-text-to-speech",
"input": {
"temperature": 1,
"speakers": None,
"filler_words": False,
"dialogue_turns": None,
},
"callback_url": "https://your-app.com/webhooks/nexus",
},
).json()
while task["status"] not in ("succeeded", "failed", "cancelled"):
time.sleep(3)
task = requests.get(f"{API}/tasks/{task['id']}", headers=HEADERS).json()
print(task["status"], task.get("output"))
const API = "https://nexus.promptscenes.in/api/v1";
const headers = {
Authorization: `Bearer ${process.env.NEXUS_API_KEY}`,
"Content-Type": "application/json",
};
let task = await fetch(`${API}/tasks`, {
method: "POST",
headers: { ...headers, "Idempotency-Key": crypto.randomUUID() },
body: JSON.stringify({
"model": "gemini-3.8-flash-lite-text-to-speech",
"input": {
"temperature": 1,
"speakers": null,
"filler_words": false,
"dialogue_turns": null
},
"callback_url": "https://your-app.com/webhooks/nexus"
}),
}).then((r) => r.json());
while (!["succeeded", "failed", "cancelled"].includes(task.status)) {
await new Promise((r) => setTimeout(r, 3000));
task = await fetch(`${API}/tasks/${task.id}`, { headers }).then((r) => r.json());
}
console.log(task.status, task.output);
Request
{
"model": "gemini-3.8-flash-lite-text-to-speech",
"input": {
"temperature": 1,
"speakers": null,
"filler_words": false,
"dialogue_turns": null
}
}
Response
{
"id": "6f1c…",
"object": "task",
"model": "gemini-3.8-flash-lite-text-to-speech",
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…signed…",
"mime": "…",
"size": 0
}
]
},
"estimated_cost": "…",
"charged": "…"
}