메인 콘텐츠로 건너뛰기
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
필수
허용 값: alloy, echo, fable, onyx, nova, shimmer
response_format
string
기본값:"mp3"
허용 값: mp3, opus, aac, flac, wav, pcm
speed
number
기본값:"1"