XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateDigital HumansCreative AgentModel catalogueMarketTopicsPriceDocs
XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateDigital HumansCreative AgentModel catalogueMarketTopicsPriceDocs
Model catalogueSpeech Synthesis
O

Speech Synthesis

NEW

Model ID

Put this value in the request body's `model` field — not the display name above.

AudioClosed source

by other · Speech synthesis: read text aloud with the platform's public voices or a voice you cloned, producing downloadable audio (MP3) that is saved to My Voice-overs.

Try it now

Quick start

EndpointPOST /v1/audio/speech
AuthenticationAuthorization: Bearer sk-gpushare-…Get API key
Call styleAsynchronous: submit for an ID, then poll until it settles
Base URLhttps://api.dflop.top/v1
① Submit (long text must use async) · cURL
curl https://api.dflop.top/v1/audio/speech \
  -H "Authorization: Bearer sk-gpushare-xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "voice-tts-pro",
    "input": "你好,欢迎使用语音合成。",
    "async": true
  }'
# ⚠️ 同步模式受 CDN 约 100 秒非流式上限约束,长文案会被掐断
#    —— 音频照样生成、费用照样产生,但你拿不到。长文案一律 async: true
# voice 可传克隆音色 id 或 GET /v1/audio/voices 里的预设 id
② Poll for the result · cURL
curl https://api.dflop.top/v1/audio/speech/$TASK_ID \
  -H "Authorization: Bearer sk-gpushare-xxxxxxxx"

# status 三态:pending / succeeded / failed(失败自动全额退款)
# audio_url 是本平台对象存储的永久公网链接

This is an async task: submit for a task ID, then poll until it settles. Polling itself is free.

Pricing

Billed per input character — counted from the `input` you send, not the length of the generated audio.

Rates
132.07Credits/1K chars
  • Failed synthesis is refunded in full automatically — you are only billed on success.
  • Pass `async: true` for long text. Synchronous calls are bound by the CDN's ~100-second non-streaming limit; if one is cut off the audio is still generated and still billed, but you never receive it.
  • All your API keys share one balance; when it runs out the API returns HTTP 402 `quota_exceeded`.

Sign in and any personal discount on your account will show up here. Sign in

Capabilities & specs

Category
Audio
Endpoint family
Text to speech (Audio Speech)
Released
2026-07-24
License
Closed source

Try it

Models like this bill for real per image / per second / per call and are mostly async tasks, so there is no one-click test here. Use the sample code above, or generate in the matching workbench (which has a parameter panel and a cost estimate).

Open the workbench

Common errors

404 model_not_found

You passed the display name instead of the model ID.✗ Speech Synthesis→✓ voice-tts-pro

→ Copy the Model ID at the top of this page

402 quota_exceeded

Insufficient account balance. All your API keys share one balance.

→ Add funds in your account

401 / 403

The API key is invalid, or it has a model allowlist that doesn't include this ID.

→ Check the key's status and allowed models

400 invalid_request

`input` exceeds the 5,000-character limit.

→ Check your request body against the sample code above

More models from this vendor

O
Smart editclip-compose
O
Digital human videodh-avatar
O
Create digital humandh-avatar-create
O
Voice cloning · create a voicevoice-clone-pro
O
xiaozhanAIxiaozhanAI
O
xiaozhanimagexiaozhanimage
Try it

Speech Synthesis FAQ

How do I call Speech Synthesis?
Set the model field of the request body to voice-tts-pro, send it to https://api.dflop.top/v1/audio/speech, and put your key (it starts with sk-gpushare-) in the Authorization: Bearer header. This is not a chat SKU; submit tasks to the dedicated endpoint above.
How much does the Speech Synthesis API cost?
  • ·Per synthesized character: 0.132 credits (≈ ¥0.0022 / ≈ $0.0003)
  • ·Prices are in credits: 60 credits = ¥1. Each call first holds the most it could cost, then settles on actual usage and refunds the difference.

Markdown version of this page (Chinese): /models/voice-tts-pro.md