heygen-avatar-4:flowデフォルトHeygen Avatar 4 API — 接続と支払いの方法
HeyGen Avatar IV — 1枚の写真とナレーション音声から、唇、表情、ジェスチャーを備えた話すアバターを生成します。はっきりと顔が見えるimage_urlとaudio_urlが必要です。クリップの長さは音声と同じです(最大5分)。talking_style:stable(calm)またはexpressive。360p~1080p。出力動画の秒数単位で料金が設定されます。
チャネル比較
過去7日間
| チャネル | 価格 |
|---|---|
Flow heygen-avatar-4:flowデフォルト | $0.142857から / 秒 |
必要な結果を作成
heygen-avatar-4:flowこのモデルはカタログに最低価格のみ掲載されています。
Heygen Avatar 4とは
HeyGen Avatar IV — 1枚の写真とナレーション音声から、唇、表情、ジェスチャーを備えた話すアバターを生成します。はっきりと顔が見えるimage_urlとaudio_urlが必要です。クリップの長さは音声と同じです(最大5分)。talking_style:stable(calm)またはexpressive。360p~1080p。出力動画の秒数単位で料金が設定されます。
契約の概要
- 入力
- image, audio
- 出力
- video
- モード
- 非同期(ジョブ + ポーリング)
- ステータスのポーリング
- 3秒ごと · 最大600秒
強み
- 料金:秒あたり
- 入力:画像、音声
- 設定可能なオプション5個
- メディア生成用の1つのAPIキー
用途
- ソーシャルメディア用クリップ
- プロモーションとタイトルシーケンス
- 静止画アニメーション
- ストーリーボードとアニマティクス
APIコントラクト
生成は非同期で実行されます。ジョブを作成し、完了するまでステータスをポーリングします。
- ジョブを作成
- POST /api/media/generate
- ステータスを確認
- GET /api/media/jobs/{jobId}
- 入力
- image, audio
- 出力
- video
- ポーリング
- 3秒ごと · 最大600秒
- 認証
- Authorization: Bearer sk-pv-…
リクエスト例
Bearerヘッダーにキーを渡します。APIはjobIdステータスをポーリングするために使用します。
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"heygen-avatar-4:flow","opts":{"image_url":"https://example.com/image_url.png","audio_url":"https://example.com/audio_url.mp3","resolution":"720p","aspect_ratio":"auto","talking_style":"stable"}}'JavaScript
const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "heygen-avatar-4:flow",
"opts": {
"image_url": "https://example.com/image_url.png",
"audio_url": "https://example.com/audio_url.mp3",
"resolution": "720p",
"aspect_ratio": "auto",
"talking_style": "stable"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);APIリクエストパラメータ
GetVibe API経由でHeygen Avatar 4にリクエストする際のパラメータ。
image_urlaudio_urlresolutionaspect_ratiotalking_styleimage_file_idimage_base64audio_file_idaudio_base64| パラメータ | タイプ | 値 | デフォルト | 価格 |
|---|---|---|---|---|
image_url | URL | Public image URL | — | — |
audio_url | URL | Public audio URL | — | — |
resolution | option selection | 360p · 480p · 540p · 720p (default) · 1080p | 720p | Included in the base price |
aspect_ratio | option selection | Match the photo (default) · 16:9 · 9:16 · 4:5 · 5:4 · 1:1 | Match the photo | Included in the base price |
talking_style | option selection | Calm (default) · Expressive | Calm | Included in the base price |
image_file_id | text | Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
image_base64 | text | Alternative to image_url: the file inline, as base64 or a data: URI | — | Included in the base price |
audio_file_id | text | Alternative to audio_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
audio_base64 | text | Alternative to audio_url: the file inline, as base64 or a data: URI | — | Included in the base price |
リクエスト: POST https://getvibeapi.com/api/media/generate。価格はUSDです。
Heygen Avatar 4の価格
Heygen Avatar 4の料金: から $0.142857 per second。価格は現在の為替レートに基づいて動的に計算され、最終的な請求額はAPIレスポンス(priceRub)に表示されます。支払いはUSDで、サブスクリプションはありません。
デフォルトのリクエストにかかる料金
パラメーターを指定しない場合、リクエストには次の値が使用されます: Resolution — 720p, Frame format — Match the photo, Talking style — Calm。 このリクエストの料金は$0.142857です。
すべてのパラメータの組み合わせにおけるチャンネルと価格
各チャンネルについて、すべてのパラメータの組み合わせの価格を表示しています。これは正常に生成された場合に請求される正確な金額であり、下にリンクされた機械可読テーブルと同じ数値です。
Flowheygen-avatar-4:flow$0.142857から / 秒正確な価格
| 価格 | 価格 |
|---|---|
| Flow | $0.142857 / 秒 |
生成動画1秒あたりの価格です。請求額は、この価格 × 結果の実際の長さです。
すべての組み合わせ(JSON): /api/media/price-table?model=heygen-avatar-4%3Aflow
README
Heygen Avatar 4の機械可読な契約には、リクエストスキーマ、操作、制限、ポーリング、レスポンスの例が含まれています。
# Heygen Avatar 4
公開モデル: heygen-avatar-4:flow
ジョブを作成: POST /api/media/generate
ステータスを確認: GET /api/media/jobs/{jobId}
## 入力パラメータ
- `image_url` (URL): Public image URL; デフォルト: —
- `audio_url` (URL): Public audio URL; デフォルト: —
- `resolution` (option selection): 360p · 480p · 540p · 720p (default) · 1080p; デフォルト: 720p
- `aspect_ratio` (option selection): Match the photo (default) · 16:9 · 9:16 · 4:5 · 5:4 · 1:1; デフォルト: Match the photo
- `talking_style` (option selection): Calm (default) · Expressive; デフォルト: Calm
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); デフォルト: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; デフォルト: —
- `audio_file_id` (text): Alternative to audio_url: the id of your own file from POST /v1/files (file-pv-…); デフォルト: —
- `audio_base64` (text): Alternative to audio_url: the file inline, as base64 or a data: URI; デフォルト: —
## 公開バリアント
- `heygen-avatar-4:flow`: FlowHeygen Avatar 4 APIに関するよくある質問
Heygen Avatar 4の料金はいくらですか?
Heygen Avatar 4の料金はから $0.142857 per secondです。料金は現在の為替レートに基づいて動的に計算されます。
OpenAI SDKと互換性がありますか?
はい、APIは完全にOpenAI互換です。base_urlをhttps://getvibeapi.com/v1に変更してキーを設定するだけで、コードの他の部分はそのまま使えます。