メインコンテンツへスキップ
POST
/
v1
/
audio
/
speech
curl --request POST \
  --url 'https://api.elkapi.com/v1/audio/speech' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "tts-1",
  "input": "今日は天気がよく、散歩にぴったりです。",
  "voice": "alloy",
  "response_format": "mp3"
}'
"string"

Documentation Index

Fetch the complete documentation index at: https://docs.elkapi.com/llms.txt

Use this file to discover all available pages before exploring further.

curl --request POST \
  --url 'https://api.elkapi.com/v1/audio/speech' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "tts-1",
  "input": "今日は天気がよく、散歩にぴったりです。",
  "voice": "alloy",
  "response_format": "mp3"
}'
"string"

Authorizations

Authorization
string
必須
すべてのエンドポイントで Bearer Token 認証が必要です。リクエストヘッダーに追加します:
Authorization: Bearer YOUR_API_KEY

Body

model
string
デフォルト:"tts-1"
必須
例:tts-1
input
string
必須
変換するテキスト
voice
string
必須
指定可能な値:alloyechofableonyxnovashimmer
response_format
string
デフォルト:"mp3"
指定可能な値:mp3opusaacflacwavpcm
speed
number
デフォルト:"1"