Audio
แปลงเสียงเป็นข้อความ
ส่ง model และ file แบบ multipart/form-data เป็นไฟล์ PCM WAV โมโนที่สมบูรณ์ ไม่เกิน 25,000,000 ไบต์ และอยู่ในข้อจำกัดอัตราสุ่มและระยะเวลาของช่องทาง ฟิลด์เสริมคือ language (ตัวพิมพ์เล็กสองตัว เช่น th) และ response_format=json (รูปแบบเดียวและค่าเริ่มต้น) ให้ curl สร้าง boundary ไม่รองรับ URL, ID ไฟล์, prompt, timestamp หรือ stream
STT ใช้ input_audio_second หรือ token; TTS ใช้ input_character โดย speech_billing_unit แบบ utf16_code_unit กับ unicode_code_point นับ emoji ต่างกัน ยอดสำรองไม่ใช่เพดานค่าใช้จ่ายและอาจสรุปยอดแบบอะซิงโครนัส การขาดหลักฐานไม่แปลว่าฟรี ทั้งสอง API รับ X-Felo-Channel และส่งไปช่องทางที่เลือกเพียงครั้งเดียว ปิดการลองซ้ำอัตโนมัติรวมถึง SDK หลัง timeout หรือหลุด เก็บ X-Request-Id และ X-Generation-Id หากมี Console Playground ยังไม่รองรับเสียง configured_rates ใช้อัตราที่ตรึงไว้และปริมาณที่ยืนยันแล้ว ส่วน upstream_cost ใช้ต้นทุนผู้ให้บริการที่ยืนยันแล้วพร้อมส่วนเพิ่มและส่วนลดที่เผยแพร่
- ประเภท: stringX
- Felo - Channel Ordered comma-separated public channel codes. Omit this header to use default; default must be used alone. In wallet mode, default scans the model's effective public channel order in reverse, skips unpublished or unavailable channels, and uses the first eligible channel. Explicit codes follow the supplied order. For stateless Chat Completions, Messages and Responses, the server may try another selected channel or provider group after a confirmed upstream rejection. A single explicit channel limits routing to that channel. Legacy provider headers cannot override channel routing.
- ประเภท: object200
JSON แบบซิงโครนัสมี
textและอาจมีusageเป็นวินาทีหรือ token ส่วนusage.costเป็นต้นทุนผู้ให้บริการ ไม่ใช่ยอดเรียกเก็บ Felo สุดท้าย ไม่ต้อง polling งาน- ประเภท: stringtextจำเป็น
- ประเภท: object | nullusage
- costประเภท: numberต่ำสุด:0
Reported upstream cost in USD.
- inputประเภท: object
_token _details - audioประเภท: integer
_tokens ต่ำสุด:0Integer numbers.
- textประเภท: integer
_tokens ต่ำสุด:0Integer numbers.
- inputประเภท: integer
_tokens ต่ำสุด:0Integer numbers.
- outputประเภท: integer
_tokens ต่ำสุด:0Integer numbers.
- secondsประเภท: numberต่ำสุด:0
Duration reported by the selected channel.
- totalประเภท: integer
_tokens ต่ำสุด:0Integer numbers.
- typeประเภท: string enumค่า
- duration
- tokens
application/json - ประเภท: object400
Upload, wallet or upstream error
- ประเภท: objecterrorจำเป็น
- codeประเภท: string | null
- messageประเภท: string
- paramประเภท: string | null
- typeประเภท: string
application/json - ประเภท: object402
Upload, wallet or upstream error
- ประเภท: objecterrorจำเป็น
- codeประเภท: string | null
- messageประเภท: string
- paramประเภท: string | null
- typeประเภท: string
application/json - ประเภท: object413
Upload, wallet or upstream error
- ประเภท: objecterrorจำเป็น
- codeประเภท: string | null
- messageประเภท: string
- paramประเภท: string | null
- typeประเภท: string
application/json - ประเภท: object415
Upload, wallet or upstream error
- ประเภท: objecterrorจำเป็น
- codeประเภท: string | null
- messageประเภท: string
- paramประเภท: string | null
- typeประเภท: string
application/json - ประเภท: object429
Upload, wallet or upstream error
- ประเภท: objecterrorจำเป็น
- codeประเภท: string | null
- messageประเภท: string
- paramประเภท: string | null
- typeประเภท: string
application/json - ประเภท: object500
Upload, wallet or upstream error
- ประเภท: objecterrorจำเป็น
- codeประเภท: string | null
- messageประเภท: string
- paramประเภท: string | null
- typeประเภท: string
application/json - ประเภท: object502
Upload, wallet or upstream error
- ประเภท: objecterrorจำเป็น
- codeประเภท: string | null
- messageประเภท: string
- paramประเภท: string | null
- typeประเภท: string
application/json - ประเภท: object503
Upload, wallet or upstream error
- ประเภท: objecterrorจำเป็น
- codeประเภท: string | null
- messageประเภท: string
- paramประเภท: string | null
- typeประเภท: string
application/json - ประเภท: object504
Upload, wallet or upstream error
- ประเภท: objecterrorจำเป็น
- codeประเภท: string | null
- messageประเภท: string
- paramประเภท: string | null
- typeประเภท: string
application/json
curl https://openapi.felo.ai/api/v1/audio/transcriptions \
--request POST \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--form 'model=grok-stt-2.0' \
--form 'file=@filename' \
--form 'language=' \
--form 'response_format=json'
{
"text": "string",
"usage": {
"seconds": 0,
"type": "duration",
"input_tokens": 0,
"output_tokens": 0,
"total_tokens": 0,
"input_token_details": {
"text_tokens": 0,
"audio_tokens": 0
},
"cost": 0
}
}