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 참조

엔드포인트

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 상태가 완료(completed)될 때까지 폴링하세요.

매개변수

이름타입필수 여부설명
speakersarray예. ID .
dialogue_turnsarray예. 스피커_ID . [소리친다] [속삭인다] .
scenestring아니오Optional scene description that sets the acoustic setting, e.g. "A quiet, warm room with a fireplace crackling softly."기본값: ""
sample_contextstring아니오Optional overall tone/style, e.g. "Audiobook style narration. Tone is gentle and inviting."기본값: ""
temperaturenumber아니오(0-2) . , .기본값: 1

cURL 예제

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 예제

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)

전체 문서 및 에이전트/MCP 연동: llms.txt. API 키 발급: muapi.ai/access-keys.