访问地址:国内 https://4sapi.org、https://4stoken.com;海外https://4sapi.top、https://4sapi.com、https://us.4sapi.com;纯 API 专线https://4sapi.ai;北美低延迟https://4sapi.net。详见《国内外直连域名》。
gemini-3.8-flash-ttsgemini-3.8-flash-tts、gemini-3.1-flash-tts-preview、gemini-3.8-flash-lite-ttscurl --location 'https://4sapi.org/v1/audio/speech' \
--header 'Authorization: sk-' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "gemini-3.8-flash-tts",
"input": "The quick brown fox jumped over the lazy dog.",
"voice": "alloy",
"response_format": "wav"
}'{}