Audio
वाक् से पाठ
model और file को multipart/form-data में भेजें: पूर्ण मोनो PCM WAV, अधिकतम 25,000,000 बाइट; चैनल की सैंपल दर और अवधि सीमाएँ भी लागू हैं। वैकल्पिक फ़ील्ड: language (दो छोटे अक्षर, जैसे hi) और response_format=json (एकमात्र और डिफ़ॉल्ट प्रारूप)। curl को boundary बनाने दें। URL, फ़ाइल ID, prompt, टाइमस्टैम्प और stream समर्थित नहीं हैं।
STT में input_audio_second या token, TTS में input_character लागू है। speech_billing_unit में utf16_code_unit और unicode_code_point emoji अलग गिनते हैं। आरक्षण खर्च की सीमा नहीं; निपटान असिंक्रोनस हो सकता है। प्रमाण की कमी मुफ़्त होने का संकेत नहीं। दोनों API X-Felo-Channel लेते हैं और चुने चैनल में एक बार भेजते हैं। टाइमआउट या डिस्कनेक्ट के बाद SDK सहित स्वतः पुनः प्रयास बंद रखें। 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 शुल्क नहीं। टास्क पोलिंग की आवश्यकता नहीं है।- टाइप: 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
}
}