跳至內容

Mirage Avatar X

整合

模型 id mirage-api/avatar-x/reference-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/mirage-api/avatar-x/reference-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

像範例一樣的檔案: $3.00 3,000 API 點數 · ≈ ₽322.74 您的檔案會在執行前計量 在此頁面執行

取得 API 金鑰
Mirage 唇形同步與虛擬角色 參考輸入唇形同步 #avatar#lipsync#talking-head

由音訊和圖像、影片或素材虛擬化身參考驅動的 虛擬化身 X 頭像說話影片

Mirage · 影片

您的第一個結果會顯示在這裡

在下方建立請求,並使用您的 API 金鑰執行。輸出會複製到我們的儲存空間,可永久保留或免費保留 7 天。

建立請求

控制項是根據模型結構描述生成的。變更設定時,程式碼和價格會同步更新。

•必填 audio_url
拖放檔案,或

驅動生成影片的音訊公開 HTTPS 位址,無需授權標頭或 Cookie 即可存取。接受的音訊格式包括 FLAC、Opus 或 Vorbis、AAC 或 ALAC、PCM WAV 或 AIFF,以及 MP3。檔案必須包含單一單聲道或立體聲串流,長度為 3–180 秒,大小不超過 64 MiB,取樣率為 8–48 kHz。

進階 video_reference_url · avatar · image_reference_url

參考影片 HTTPS URL,必須公開存取且無需授權標頭或 Cookie;檔案必須包含恰好一個影片串流,以及至少一段適合作為參考的 1 秒片段;音訊會被忽略。接受的檔案組合包括搭配 H.264、H.265/HEVC 或 ProRes 的 .mp4、.mov 或 .m4v,或搭配 VP8 或 VP9 的 .webm;長度必須為 1 到 120 秒,大小不得超過 1 GiB,顯示長寬比必須在 9:16 或 16:9 的 5% 範圍內。若同時提供 image_reference_url,則優先使用影片。

僅在未提供圖像或影片參考時使用的素材視覺選項;None 和預設值都會維持未設定。此視覺永遠不會提供音訊,音訊一律來自 audio_url。若要選擇視覺,請在 [avatar catalog](https://captions.ai/help/docs/api/actor-catalog) 中預覽選項,並複製其完全相同的 Avatar 值。

參考圖像 HTTPS URL,必須公開存取且無需 Cookie 或授權標頭;提供 video_reference_url 時會忽略此 URL。接受單一靜態圖像,格式為 .jpg、.jpeg、.png 或 .webp,大小上限為 25 MiB、25 百萬像素。較短邊至少須為 512 px,任一邊不得超過 8192 px;長寬比必須在 9:16 或 16:9 的 5% 範圍內。

POST /run/mirage-api/avatar-x/reference-to-video?wait=20 報價 → $3.00
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/mirage-api/avatar-x/reference-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

執行此請求

您的金鑰會保留在此瀏覽器中:只會傳送至 Doitong API,且只有在勾選「記住」時才會儲存至 localStorage。 取得 API 金鑰

關於 Mirage Avatar X

從 `audio_url`(3 到 180 秒)製作口型同步的頭像影片。視覺內容來自 `video_reference_url`、`image_reference_url` 或素材 `avatar`;兩者同時提供時,影片參考優先於影像。`avatar` 選項只提供視覺內容,不提供音訊。參考 URL 必須可透過 HTTPS 公開存取。

參數

請傳送標準名稱或原生名稱其中之一,不要同時傳送兩者。 標準名稱

名稱類型 預設值允許值 說明
audio_url必填 audio
類型url · audio
驅動生成影片的音訊公開 HTTPS 位址,無需授權標頭或 Cookie 即可存取。接受的音訊格式包括 FLAC、Opus 或 Vorbis、AAC 或 ALAC、PCM WAV 或 AIFF,以及 MP3。檔案必須包含單一單聲道或立體聲串流,長度為 3–180 秒,大小不超過 64 MiB,取樣率為 8–48 kHz。
video_reference_url選填
類型string | null
參考影片 HTTPS URL,必須公開存取且無需授權標頭或 Cookie;檔案必須包含恰好一個影片串流,以及至少一段適合作為參考的 1 秒片段;音訊會被忽略。接受的檔案組合包括搭配 H.264、H.265/HEVC 或 ProRes 的 .mp4、.mov 或 .m4v,或搭配 VP8 或 VP9 的 .webm;長度必須為 1 到 120 秒,大小不得超過 1 GiB,顯示長寬比必須在 9:16 或 16:9 的 5% 範圍內。若同時提供 image_reference_url,則優先使用影片。
avatar選填
類型enum
NoneAyeshaAyesha (16:9)FarhanFarhan (16:9)GiuliaGiulia (16:9)JasmineJasmine (16:9)LukeLuke (16:9)MayaMaya (16:9)MichaelMichael (16:9)Neha
另有 5 個Neha (16:9)TariqTariq (16:9)ValerieValerie (16:9)
僅在未提供圖像或影片參考時使用的素材視覺選項;None 和預設值都會維持未設定。此視覺永遠不會提供音訊,音訊一律來自 audio_url。若要選擇視覺,請在 [avatar catalog](https://captions.ai/help/docs/api/actor-catalog) 中預覽選項,並複製其完全相同的 Avatar 值。
image_reference_url選填
類型string | null
參考圖像 HTTPS URL,必須公開存取且無需 Cookie 或授權標頭;提供 video_reference_url 時會忽略此 URL。接受單一靜態圖像,格式為 .jpg、.jpeg、.png 或 .webp,大小上限為 25 MiB、25 百萬像素。較短邊至少須為 512 px,任一邊不得超過 8192 px;長寬比必須在 9:16 或 16:9 的 5% 範圍內。
必填 標準名稱,也可使用

檔案參數接受公開的 https:// URL、最大 10 MB 的 data: URI,或上傳檔案的 file_url。 檔案

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "mirage-api/avatar-x/reference-to-video",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 3000,
    "usd": "3.00",
    "charged": 3000,
    "refunded": 0
  },
  "input": {
    "audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
您的檔案,由您選擇每個 outputs[].url 都是儲存空間中的副本:可永久保留(按 GB-月計費),或免費保留 7 天;可透過帳戶設定或 ?storage= 設定。
所有模型使用相同結構圖片、影片和音訊皆包含 type、url、content_type、width、height 和 duration。output 是模型自己的結果物件。
輸出欄位
video
object {url, content_type, file_name, file_size}

更多模型:唇形同步與虛擬角色

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/mirage-api/avatar-x/reference-to-video.md. 所有模型與指南: https://doitong.com/developers/llms.txt