コンテンツへスキップ

Heygen v5 Digital Twin

統合

モデルID heygen/avatar5/digital-twin
# 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/heygen/avatar5/digital-twin?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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"

例と同様のファイル: $1.00 1,000 APIクレジット · ≈ ₽107.58 実行前にファイルを計測します このページで実行

APIキーを取得
HeyGen リップシンクとアバター 4K出力リップシンク4kまで #avatar#digital-twin#talking-avatar#text-to-video

4k出力、透明WebM、背景、透かし、SRT字幕に対応したAvatar Vデジタルツインです

HeyGen · 動画

最初の結果がここに表示されます

以下でリクエストを作成し、APIキーで実行してください。出力はストレージにコピーされ、永久保存または無料で7日保存されます。

リクエストを作成

コントロールはモデルスキーマから生成されます。値を変更するとコードと価格が更新されます。

アバターの音声テキスト。`audio_url` を省略した場合は必須です。

audio_url
ファイルをドロップ、または

HTTP(S)音声ファイルURLで指定するリップシンク用ソース。指定時はテキスト読み上げの代わりに使用されます。その場合、`prompt` と `voice` は使用されません。

resolution デフォルト 720p

生成される出力の解像度プリセット。

aspect_ratio デフォルト 16:9

動画のアスペクト比の選択。'auto'ではHeyGenが元の比率を読み取って維持し、読み取れない場合は'16:9'を使用します。明示的な選択肢は'16:9'、'9:16'、'4:5'、'5:4'、'1:1'です。

詳細設定 fit · output_format · avatar · voice · remove_background · caption · enable_safety_checker · background · watermark
fit デフォルト cover

アバターのフレーミングを選択します。'cover' は出力フレーム全体を埋めますが、アバターが切り取られる場合があります。'contain' はアバター全体を表示しますが、レターボックスが追加される場合があります。

output_format デフォルト mp4

動画コンテナの選択。`webm` では背景除去が自動的に行われ、透明性が有効になります。その場合、`background` は無効です。

デフォルト Abigail Sofa Front

Avatar Vで使用できるアバターを識別する名前。

デフォルト Warm Pro Narrator

テキスト読み上げ用のアバター音声を名前で選択します。`audio_url` がない場合にのみ適用されます。

アバターの背後に任意で配置する背景レイヤー。ただし `output_format='webm'` の場合を除きます。透明なwebm出力ではこの設定は無視されます。

生成された動画に透かしとして重ねる任意の画像。

POST /run/heygen/avatar5/digital-twin?wait=20 見積もり → $1.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/heygen/avatar5/digital-twin?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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キーを取得

Heygen v5 Digital Twinについて

テキスト(`prompt`と`voice`)またはリップシンク用の`audio_url`から発話アバター動画を作成します。名前付き`avatar`、containまたはcoverの`fit`モード、720p、1080p、4kの解像度を選択できます。`output_format`はmp4またはwebmで、webmは透明です。背景合成、透かしオーバーレイ、サイドカーSRT字幕ファイルに対応します。

パラメータ

正式名称またはネイティブ名のいずれか一方を送信してください。両方は送信しないでください。 正式名称

名前型 デフォルト許可される値 説明
avatar任意
型string | null
デフォルトAbigail Sofa Front
Avatar Vで使用できるアバターを識別する名前。
prompt任意
型string | null
アバターの音声テキスト。`audio_url` を省略した場合は必須です。
voice任意
型enum
デフォルトWarm Pro Narrator
Warm Pro NarratorChill BrianIvyJohn DoeMonika SogamHope Archer BrittneyPatrickDavid CastlemoreMichael CAdam Stone JuniperCassidy Jessica Anne BogartArabella
さらに86件AndrewSpuds Oxley Grace ElderHelenCanyon RiversDerya - Lifelike - Excited 🤩Mellow MarcusJack Sterling - Broadcaster 🎙️Brenda - UGC - 1.mp4ReidReaganTerryJennyRadio RickDeniseTim in car - Excited 🤩IskanderThompsonDelicate Daisy - Excited 🤩KingstonGeorge UGC 1Bold BlakeJaneExpressive EvanMarianne - IAAaronModern Recipe Host - Voice 1WillowCute Chloe - Friendly 😊RafaelJune - LifelikeCrisp ChloeSlick SimonNassim - InformativeBaritone BenMaxwellEllie Faye - Excited 🤩MilaniFeisty Fiona - Excited 🤩Professor DeanRose - UGC - 1.mp4ShonaHudson WilderAnn - IAAlastair KensingtonOxleyChristinaAndrew Rizz PeytonGerardo - OutdoorChloe - LifelikeStephanieAnthony - IASignal - Voice 1LucaLisa - Voice 1T.W.TuckerJack Sullivan - Serious 😐WinterMireia - LifelikeGeorgiaStellaMasha - LifelikeCharming Charles - Friendly 😊SerenityAnnie - ExcitedRalphBethanyDominicMason FinnLeenaVeteran VictorTamaraNik PublicCalm ChloeSevikReillyRaulImposing IanRelaxed RayDexter - ProfessionalRelaxed RickEdwinRupert BlackwoodGinnyHope
テキスト読み上げ用のアバター音声を名前で選択します。`audio_url` がない場合にのみ適用されます。
audio_url任意 audio
型url · audio
HTTP(S)音声ファイルURLで指定するリップシンク用ソース。指定時はテキスト読み上げの代わりに使用されます。その場合、`prompt` と `voice` は使用されません。
fit任意
型enum
デフォルトcover
containcover
アバターのフレーミングを選択します。'cover' は出力フレーム全体を埋めますが、アバターが切り取られる場合があります。'contain' はアバター全体を表示しますが、レターボックスが追加される場合があります。
remove_background任意
型boolean
デフォルトfalse
アバターの背景除去。マッティングに対応するアバターでのみ使用できます。
background任意
型object
アバターの背後に任意で配置する背景レイヤー。ただし `output_format='webm'` の場合を除きます。透明なwebm出力ではこの設定は無視されます。
background.type任意
型enum
デフォルトcolor
colorimage
背景の種類。`color` は単色の16進数カラー、`image` は画像URLを指定します。
background.value任意
型string
デフォルト#FFFFFF
背景の内容。タイプが `color` の場合は16進数カラー、`image` の場合はHTTP(S) URL。
watermark任意
型object
生成された動画に透かしとして重ねる任意の画像。
watermark.image_url必須
型url · image
動画に重ねる透かし画像のHTTP(S) URL。
watermark.scale任意
型number | null
≤ 2, > 0
動画に対する透かしの相対サイズ。0.0より大きく2.0以下。
watermark.opacity任意
型number | null
0 – 1
透かしの透明度。0.0は完全な透明、1.0は完全な不透明です。
watermark.placement任意
型enum
top-lefttop-rightbottom-leftbottom-right
動画内での透かしの位置。
caption任意
型boolean
デフォルトfalse
動画に付随するSRT字幕ファイルを別途生成するかどうかを制御します。
output_format任意
型enum
デフォルトmp4
mp4webm
動画コンテナの選択。`webm` では背景除去が自動的に行われ、透明性が有効になります。その場合、`background` は無効です。
resolution任意
型enum
デフォルト720p
720p1080p4k
生成される出力の解像度プリセット。
aspect_ratio任意
型enum
デフォルト16:9
16:99:164:55:41:1auto
動画のアスペクト比の選択。'auto'ではHeyGenが元の比率を読み取って維持し、読み取れない場合は'16:9'を使用します。明示的な選択肢は'16:9'、'9:16'、'4:5'、'5:4'、'1:1'です。
enable_safety_checker任意
型boolean
デフォルトtrue
呼び出し元に権限がある場合、false に設定するとスクリーニングを緩和できます。
必須 正式名称(こちらも使用可能)

ファイルパラメータには、公開されたhttps:// URL、10 MBまでのdata: URI、またはアップロードしたファイルのfile_urlを指定します。 ファイル

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "heygen/avatar5/digital-twin",
  "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": 1000,
    "usd": "1.00",
    "charged": 1000,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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
    },
    "caption_file": {
      "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はストレージ上のコピーです。アカウント設定または?storage=により、永久保存(GB・月単位で有料)または無料で7日保存できます。
すべてのモデルで同じ形式画像、動画、音声のいずれでも、type、url、content_type、width、height、durationが含まれます。outputはモデル独自の結果オブジェクトです。
出力フィールド
video
object {url, content_type, file_name, file_size}Avatar Vが生成した動画ファイル。
caption_file
object {url, content_type, file_name, file_size} | null`caption=True` の場合に生成されるSRT字幕ファイル。サービスから提供された場合に出力されます。

AIエージェント向け:このページのMarkdown版はこちらです: https://doitong.com/ja/developers/models/heygen/avatar5/digital-twin.md. すべてのモデルとガイド: https://doitong.com/developers/llms.txt