概要
TTS(テキスト→音声)
動画ナレーション、Podcast の自動生成、音声アシスタント、アクセシビリティ向け読み上げ、IVR の自動応答音声などに使う。出力は WAV。組み込みボイス(`GET /v1/audio/voices` で一覧)と自分の声のクローン、CosyVoice モデルでは `instruct` による感情・話し方の指定、`stream: true` によるストリーミング再生に対応。
- エンドポイント
- /v1/audio/speech
- 例: モデル
- cosyvoice2
API
API サンプル
# 1) discover an online TTS model — Grid's set changes constantly,
# don't hardcode an id in your code.
MODEL=$(curl -s https://api.openalchemy.io/v1/models \
-H "Authorization: Bearer $OPENALCHEMY_API_KEY" \
| jq -r '.data[] | select(.online and .endpoint_type=="tts") | .id' \
| head -1)
# 2) synthesize — returns WAV bytes. Built-in voices: GET /v1/audio/voices
curl https://api.openalchemy.io/v1/audio/speech \
-H "Authorization: Bearer $OPENALCHEMY_API_KEY" \
-H "Content-Type: application/json" \
-d "{
\"model\": \"$MODEL\",
\"voice\": \"en_alice\",
\"input\": \"OpenAlchemy turns idle GPUs into an open AI inference grid. Run a node on a 4090 or 5090 and earn credits, or call our APIs and pay per token. Open weights, distributed compute.\"
}" \
--output openalchemy_pitch.wavステータス
クォータ/料金(プロジェクト粒度)
利用枠とレート制限は API キーを発行したプロジェクトに対して適用される。さらにドメイン単位の細粒度ポリシーで、特定オリジンからの呼び出しを制限できる。
START TODAY
推論コストを、錬金術にかける準備はできていますか。
登録するだけで 2,000 クレジット($2 相当)を無料で付与。クレジットカードは不要。