Audio
تقریر سے متن
model اور file کو multipart/form-data میں بھیجیں: مکمل مونو PCM WAV، زیادہ سے زیادہ 25,000,000 بائٹس، چینل کی سیمپل ریٹ اور دورانیے کی حدود کے مطابق۔ اختیاری: language (دو چھوٹے حروف، جیسے ur) اور response_format=json (واحد اور طے شدہ فارمیٹ)۔ boundary کو curl بنانے دیں۔ URL، فائل ID، prompt، ٹائم اسٹیمپ اور stream کی حمایت نہیں۔
STT میں input_audio_second یا ٹوکن، TTS میں input_character استعمال ہوتا ہے۔ speech_billing_unit کے utf16_code_unit اور unicode_code_point emoji مختلف گنتے ہیں۔ محفوظ رقم خرچ کی حد نہیں؛ تصفیہ غیر ہم وقت ہو سکتا ہے۔ ثبوت کی کمی مفت ہونے کا مطلب نہیں۔ دونوں API، X-Felo-Channel لیتے ہیں اور منتخب چینل پر ایک بار بھیجتے ہیں۔ timeout یا رابطہ ٹوٹنے کے بعد 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سیکنڈ یا ٹوکن میں ملتا ہے۔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
}
}