개요
TTS (텍스트→음성)
동영상 내레이션, 팟캐스트 자동 생성, 음성 어시스턴트, 접근성 읽기, 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 키를 발급한 프로젝트에 적용. 도메인 스코프의 정책 레이어가 각 모달리티를 호출할 수 있는 오리진을 추가로 제약.
오늘 시작
추론 비용을 연금술에 가까운 무언가로 바꿀 준비, 됐나요?
가입만 하면 2,000 무료 크레딧($2 상당) 제공. 신용카드 불필요.