跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.vmeg.ai/llms.txt

Use this file to discover all available pages before exploring further.

前置条件

同步 TTS 示例

提交一行文本,在 HTTP 响应中直接获得合成音频 URL。
curl -X POST "https://api.vmeg.ai/openapi/v1/task/tts/create" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "V1",
    "language": { "target": "en-US" },
    "outputFormat": "mp3",
    "data": [
      {
        "text": "Hello from VMEG Open API.",
        "voiceId": "YOUR_VOICE_ID"
      }
    ]
  }'
成功时 code200data.results 含 CDN 音频地址。字段细节见 API 参考中 Create TTS (sync)

异步任务

异步任务:
  1. 每个 POST 都须携带 X-Idempotency-Key(必填,最长 64 字符)。
  2. API 配置 设置 Webhook
  3. HTTP 响应仅确认受理(taskId 等)— 成品在 Webhook 请求体 中送达。
各产品同步/异步对照见 产品概览

下一步

API 密钥

API Key 与 Bearer 头

文本转语音

TTS 流程与选音色