> ## 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.

# 独立版与应用同源版

> 两套开放 API 的区别，以及如何选择

export const productUrls = JSON.parse('{"home":"https://www.vmeg.ai/home","apiConfiguration":"https://www.vmeg.ai/open-api-setting","signIn":"https://www.vmeg.ai/signIn?redirect=%2Fhome","signInToApiSettings":"https://www.vmeg.ai/signIn?redirect=%2Fopen-api-setting","signUp":"https://www.vmeg.ai/signup","account":"https://www.vmeg.ai/account","helpCenter":"https://www.vmeg.ai/help-center/","pricing":"https://www.vmeg.ai/pricing","myTasks":"https://www.vmeg.ai/my-tasks","myAssets":"https://www.vmeg.ai/my-assets","videoTranslation":"https://www.vmeg.ai/translation","audioTranslation":"https://www.vmeg.ai/audio-translation","cloneVoice":"https://www.vmeg.ai/clone-voice","bookDemo":"https://www.vmeg.ai/book-a-demo/","contactUs":"https://www.vmeg.ai/contact-us/","apiDocs":"https://docs.vmeg.ai"}');

VMEG 提供两套**相互独立**的开放 API。它们共用鉴权、幂等和响应结构，区别在于任务和数据放在哪里。

| | 独立版 | 应用同源版 |
| - | - | - |
| 路径前缀 | `/openapi/v1/...` | `/openapi/v1/app/...` |
| 产品 | 音视频翻译、TTS、声音克隆、文本翻译 | 音视频翻译与声音克隆 |
| 任务在哪 | 仅 API 内，网站不可见 | 你的网站账号：**我的任务**、编辑器、重新导出 |
| 素材与克隆音色 | API 独立库 | 与网站同一份（**我的资产**、**我的音色**） |
| 获取结果 | [Webhook](/zh/guides/webhooks) 或轮询 | 轮询 |
| 成片存储 | 可写入你的存储桶 | 由 VMEG 托管，可随时在网站重新导出 |
| 积分 | [开放 API 计价](/zh/guides/pricing) | <a href={productUrls.pricing}>网站计价</a> |

## 如何选择

<CardGroup cols={2}>
  <Card title="独立版" icon="terminal" href="/zh/api-reference/introduction">
    纯后端自动化：需要 Webhook、TTS 或文本翻译，不需要打开网站。
  </Card>

  <Card title="应用同源版" icon="window" href="/zh/guides/app-synced/overview">
    用 API 批量提交，但还想在 VMEG 编辑器里调整字幕、音色、时间轴，并在网站导出。
  </Card>
</CardGroup>

<Warning>
  两套 API 的数据不互通：一个任务请从头到尾用同一套（上传 → 创建 → 查询）。素材 ID、克隆音色 ID（`cv_*`）和任务 ID 在另一套返回 `404`；系统音色 ID（`sv_*`）两边通用。
</Warning>
