Gemini 3.8 Flash TTS API: KI-Audiogenerierung

Verwenden Sie Gemini 3.8 Flash TTS, um Audio generieren über die REST-API von Muapi. Pay-per-Use — kein Abonnement erforderlich.

Interaktive Steuerung laden

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-Referenz

Endpunkt

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

Submit a job with your Muapi API key in the x-api-key header, then poll https://api.muapi.ai/api/v1/predictions/{request_id}/result until status is completed.

Parameter

NameTypErforderlichBeschreibung
speakersarrayJa. AUSWEIS .
dialogue_turnsarrayJa. Sprecher_ID . [schreit] [flüstert] .
scenestringNeinOptional scene description that sets the acoustic setting, e.g. "A quiet, warm room with a fireplace crackling softly."Standard: ""
sample_contextstringNeinOptional overall tone/style, e.g. "Audiobook style narration. Tone is gentle and inviting."Standard: ""
temperaturenumberNein(0-2) . , .Standard: 1

cURL-Beispiel

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-Beispiel

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)

Vollständige Dokumentation und Agent/MCP-Integration: llms.txt. API-Schlüssel erhalten unter muapi.ai/access-keys.