Gemini 3.8 Flash TTS API: AI ऑडियो जेनरेशन

Muapi REST API के माध्यम से Gemini 3.8 Flash TTS का उपयोग करके ऑडियो उत्पन्न करें। प्रति-उपयोग भुगतान — कोई सदस्यता आवश्यक नहीं।

इंटरैक्टिव मॉडल नियंत्रण

Gemini 3.8 Flash TTS turns written dialogue into expressive, natural multi-speaker speech with studio-grade voice fidelity, expressive acting, and long-form stability. Control voice, accent, emotional style, and pace per speaker for fast, affordable voiceovers, character dialogue, and narration.

Gemini 3.8 Flash TTS API संदर्भ

Endpoint

POST https://api.muapi.ai/api/v1/gemini-3-8-flash-tts

x-api-key हेडर में अपनी Muapi API कुंजी के साथ एक कार्य सबमिट करें, फिर मतदान करें https://api.muapi.ai/api/v1/predictions/{request_id}/result until status is completed.

Parameters

Nameप्रकारRequiredविवरण
speakersarrayYes। पहचान ।
dialogue_turnsarrayYes. स्पीकर_आईडी। [चिल्लाते हुए] [फुसफुसाते हुए]।
scenestringNoOptional scene description that sets the acoustic setting, e.g. "A quiet, warm room with a fireplace crackling softly."डिफ़ॉल्ट: ""
sample_contextstringNoOptional overall tone/style, e.g. "Audiobook style narration. Tone is gentle and inviting."डिफ़ॉल्ट: ""
temperaturenumberNo(0-2) . , .डिफ़ॉल्ट: 1

cURL example

REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/gemini-3-8-flash-tts \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"speakers":[],"dialogue_turns":[]}' | jq -r .request_id)

curl -s https://api.muapi.ai/api/v1/predictions/$REQUEST_ID/result -H "x-api-key: $MUAPI_API_KEY"

Python example

import os, time, requests

API = "https://api.muapi.ai/api/v1"
headers = {"x-api-key": os.environ["MUAPI_API_KEY"]}

r = requests.post(f"{API}/gemini-3-8-flash-tts", headers=headers, json={"speakers":[],"dialogue_turns":[]})
request_id = r.json()["request_id"]

while True:
    res = requests.get(f"{API}/predictions/{request_id}/result", headers=headers).json()
    if res["status"] == "completed":
        print(res["outputs"]); break
    if res["status"] == "failed":
        raise RuntimeError(res.get("error"))
    time.sleep(3)

Full docs and agent/MCP integration: llms.txt. Get an API key at muapi.ai/access-keys.