Felo API PlatformFelo API Platform
v0.4.0
OpenAPI 3.1.0

تقریر سے متن

سرور:https://openapi.felo.ai
کلائنٹ لائبریریاں

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 تصدیق شدہ فراہم کنندہ لاگت اور شائع شدہ اضافے و رعایت سے حساب کرتا ہے۔

ہیڈرز
  • X-Felo-Channel
    قسم: string

    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.

باڈی
لازمی
application/json
جوابات
  • 200
    قسم: object

    ہم وقت JSON میں text اور اختیاری usage سیکنڈ یا ٹوکن میں ملتا ہے۔ usage.cost فراہم کنندہ کی لاگت ہے، حتمی Felo چارج نہیں۔ ٹاسک پولنگ درکار نہیں۔

    • text
      قسم: string
      لازمی
    • usage
      قسم: object | null
      • cost
        قسم: number
        کم از کم:  
        0

        Reported upstream cost in USD.

      • input_token_details
        قسم: object
        • audio_tokens
          قسم: integer
          کم از کم:  
          0

          Integer numbers.

        • text_tokens
          قسم: integer
          کم از کم:  
          0

          Integer numbers.

      • input_tokens
        قسم: integer
        کم از کم:  
        0

        Integer numbers.

      • output_tokens
        قسم: integer
        کم از کم:  
        0

        Integer numbers.

      • seconds
        قسم: number
        کم از کم:  
        0

        Duration reported by the selected channel.

      • total_tokens
        قسم: integer
        کم از کم:  
        0

        Integer numbers.

      • type
        قسم: string enum
        اقدار
        • duration
        • tokens
    application/json
  • 400
    قسم: object

    Upload, wallet or upstream error

    • error
      قسم: object
      لازمی
      • code
        قسم: string | null
      • message
        قسم: string
      • param
        قسم: string | null
      • type
        قسم: string
    application/json
  • 402
    قسم: object

    Upload, wallet or upstream error

    • error
      قسم: object
      لازمی
      • code
        قسم: string | null
      • message
        قسم: string
      • param
        قسم: string | null
      • type
        قسم: string
    application/json
  • 413
    قسم: object

    Upload, wallet or upstream error

    • error
      قسم: object
      لازمی
      • code
        قسم: string | null
      • message
        قسم: string
      • param
        قسم: string | null
      • type
        قسم: string
    application/json
  • 415
    قسم: object

    Upload, wallet or upstream error

    • error
      قسم: object
      لازمی
      • code
        قسم: string | null
      • message
        قسم: string
      • param
        قسم: string | null
      • type
        قسم: string
    application/json
  • 429
    قسم: object

    Upload, wallet or upstream error

    • error
      قسم: object
      لازمی
      • code
        قسم: string | null
      • message
        قسم: string
      • param
        قسم: string | null
      • type
        قسم: string
    application/json
  • 500
    قسم: object

    Upload, wallet or upstream error

    • error
      قسم: object
      لازمی
      • code
        قسم: string | null
      • message
        قسم: string
      • param
        قسم: string | null
      • type
        قسم: string
    application/json
  • 502
    قسم: object

    Upload, wallet or upstream error

    • error
      قسم: object
      لازمی
      • code
        قسم: string | null
      • message
        قسم: string
      • param
        قسم: string | null
      • type
        قسم: string
    application/json
  • 503
    قسم: object

    Upload, wallet or upstream error

    • error
      قسم: object
      لازمی
      • code
        قسم: string | null
      • message
        قسم: string
      • param
        قسم: string | null
      • type
        قسم: string
    application/json
  • 504
    قسم: object

    Upload, wallet or upstream error

    • error
      قسم: object
      لازمی
      • code
        قسم: string | null
      • message
        قسم: string
      • param
        قسم: string | null
      • type
        قسم: string
    application/json
Request Example for post/api/v1/audio/transcriptions
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
  }
}
Transcribe a WAV recording

مدد چاہیے؟