HeyGen Voice
heygen/voiceHeyGen Voice turns text into natural, expressive speech in 39 languages with 24 public voices or an instant voice clone from a reference recording.
- 基本料金
- $0.04USD / 実行
- 実行
- async
- モデルタイプ
- audio
- 入力フィールド
- 5
モデルを試す
プレイグラウンド
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
モデルカード
仕様
料金
- 基本価格
- $0.04 / 実行
コンテキストとモダリティ
- 入力
- スキーマ定義済み
- 出力
- audio
機能
- チャット
- 非対応
- ビジョン
- 非対応
- 推論
- 非対応
- 構造化出力
- 非対応
- 関数呼び出し
- 非対応
- 音声入力
- 非対応
アクセス
- 提供元
- HeyGen
- モデル ID
- heygen/voice
- 実行
- async
- ベース URL
- https://api.sandbase.ai
- API
- Unified Run API
- エンドポイント
- /v1/run
API README
HeyGen Voice
HeyGen Voice speaks up to 5,000 characters of text in 39 languages with 24 public voices or an instant clone of a single-speaker reference recording, and returns a 44.1 kHz WAV file.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
text | string, required | — | Text to speak. |
voice | string | Jonah | Public voice; ignored when reference_audio is set. See the schema for supported values. |
reference_audio | audio file or URL | — | Single-speaker clip (MP3/WAV/OGG) to clone; first 3 minutes used. |
language | string | — | Language code; detected from the text when omitted. See the schema for supported values. |
expressiveness_boost | number 0–1 | 1 | 0 = flat, 1 = most expressive. |
Billing
$0.035 per 1,000 characters of input text, billed per character.
| Text | Price |
|---|---|
| 200 characters | $0.007 |
| 1,000 characters | $0.035 |
| 5,000 characters | $0.175 |
Failed runs are not charged.
Prompting
- Use punctuation to guide phrasing; give a clean, single-speaker clip for cloning.
Also on SandBase
Related: heygen/voice/turbo, heygen/avatar6/image-to-video.
開発を始める
最初のリクエストを送信
統一認証と使用状況の追跡を備えたOpenAI互換エンドポイントです。
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "heygen/voice",
"text": "Hello! This is HeyGen Voice, speaking on SandBase.",
"voice": "Jonah",
"expressiveness_boost": 1
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"入力スキーマ
5件のパラメータ · 必須 1件 · 任意 4件
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
text | string | 必須 | The text to speak. · 最小長: 1 · 最大長: 5000 |
voice | string | 任意 | HeyGen public voice. Ignored when `reference_audio` is set. · オプション: Jonah, Nadine, Tabitha, Soren, Elowen, Vincent, Jocelyn, Marielle, Corinne, Lucian, Kieran, Hugh, Noelle, Bram, Ewan, Iona, Cecily, Simon, Weston, Felicity, Gareth, Rory, Meredith, Sabrina · デフォルト: "Jonah" JonahNadineTabithaSorenElowenVincentJocelynMarielleCorinneLucianKieranHughNoelleBramEwanIonaCecilySimonWestonFelicityGarethRoryMeredithSabrina |
language | string | 任意 | Language of the text. Detected from the text when omitted. It does not translate the text. · オプション: ar, be, bg, ca, cs, da, de, el, en, es, fa, fi, fr, he, hi, hr, hu, id, it, ja, ko, mk, ms, nl, pl, pt, ro, ru, sk, sl, sr, sv, ta, th, tl, tr, uk, vi, zh arbebgcacsdadeelenesfafifrhehihrhuiditjakomkmsnlplptroruskslsrsvtathtltrukvizh |
reference_audio | string | 任意 | Recording of a single speaker to clone instead of using a public voice, as an audio file or URL (MP3, WAV, or OGG). Only the first 3 minutes are used. |
expressiveness_boost | number | 任意 | How expressive the delivery is. · 最小: 0 · 最大: 1 · デフォルト: 1 |
出力スキーマ
| フィールド | 型 | 説明 |
|---|---|---|
id | string | 生成タスクの一意な識別子 |
status | string | タスクのステータス: pending, running, completed, failed, timeout |
model | string | 生成に使用されたモデル |
outputs | array | 出力項目の配列 |
outputs[].url | string | 生成された成果物のURL |
outputs[].content_type | string | MIMEタイプ(例: image/png, video/mp4) |
error | object | null | 失敗時のエラー詳細。成功時は null |
error.type | string | 機械可読なエラー種別コード |
error.message | string | 人間が読めるエラー説明 |
非同期ワークフロー
このモデルは非同期で実行されます。リクエストを送信し、その後結果をポーリングしてください。
- 送信:/v1/run に POST し、返された
idを読み取ります。 - ポーリング:ステータスが
completed、failed、またはtimeoutになるまで /v1/run/{id} に GET します。 - 取得:完了レスポンスから
outputsを読み取ります。
モデルを選ぶ
モデルを比較
| モデル | 種類 | 通常価格 | 公開日 |
|---|---|---|---|
HeyGen Voiceこのモデル HeyGen | 音声 | $0.04 / 回 | 2026年10月21日 |
HeyGen | 音声 | $0.03 / 回 | 2026年10月21日 |
HeyGen | 音声 | $0.00 / 回 | 2026年10月21日 |
HeyGen | 音声 | $0.01 / 回 | 2026年10月21日 |
質問
FAQ
SandBase 経由で HeyGen Voice を呼び出すにはどうすればよいですか?
SandBase API key を作成し、モデル ID「heygen/voice」を使用して https://api.sandbase.ai の Unified Run API (/v1/run) にリクエストを送信してください。このページのリクエスト例に、正確なペイロードが示されています。
別途 HeyGen アカウントは必要ですか?
いいえ。SandBase の API key と残高が 1つあれば、HeyGen Voice とカタログ内の他のモデルを利用できます。HeyGen に別途登録する必要はありません。
