Cueito

Documentation

Cueito API docs

Speech to text over one REST endpoint, compatible with the OpenAI audio API. Get a transcript in minutes, move an existing integration over by changing a base URL, and keep a backup provider ready for failover.

Getting started

Introduction

Cueito turns recorded speech into text. You upload an audio file and get back plain text, JSON with timestamps, or ready-made SRT/VTT subtitles. The API follows the OpenAI audio API, so the official OpenAI SDKs and most tools built for Whisper work unchanged once they point at Cueito.

WhatValue
Base URLhttps://api.cueito.com/v1
Modelwapi-v1
AuthAuthorization: Bearer <key>
TranscribePOST /audio/transcriptions
Translate to EnglishPOST /audio/translations
Audio formatsmp3, mp4, m4a, wav, webm, ogg, flac
Max upload25 MB
Pricefrom ₹0.19 ($0.002) / minute, billed per second

Typical uses:

  • Subtitles and captions for videos, courses and reels.
  • Meeting, interview and lecture notes.
  • Voice notes and dictation inside your own app.
  • Call-centre and sales-call analytics, searchable podcast archives.
  • Translating Hindi or any other spoken language into English text.

Getting started

Quickstart

  1. Create an account and add funds on the Billing page. Requests are paid from your wallet.
  2. Create a key on the API keys page. It starts with cueito_sk_live_ and is shown once, so copy it right away.
  3. Save it as an environment variable on your server, and keep the file out of git:
# Cueito API credentials. Server-side only.
# Never commit this file or bundle the key into browser, mobile or desktop apps.

# Secret key from https://cueito.com/dashboard/keys (shown once when you create it)
CUEITO_API_KEY=cueito_sk_live_YOUR_SECRET_KEY

# Optional. Only set this to route through your own proxy or gateway.
# CUEITO_BASE_URL=https://api.cueito.com/v1

Then send your first file. Pick your language:

curl https://api.cueito.com/v1/audio/transcriptions \
  -H "Authorization: Bearer $CUEITO_API_KEY" \
  -F file=@meeting.mp3 \
  -F model=wapi-v1

The default response is JSON with the transcript:

{
  "text": "Thanks everyone for joining. Let's start with the launch timeline."
}

Rather click than code?

The Playground in your dashboard runs any request on your own audio (upload or record), shows the result, cost and rate limits, and gives you the same request as curl, Python or Node code.

Already using the OpenAI SDK?

The Python and Node examples above are the OpenAI SDK with a different base_url. See Coming from OpenAI.

Getting started

Authentication

Every request under /v1 needs your API key as a bearer token. The scheme is case-insensitive (Bearer, bearer).

Authorization: Bearer cueito_sk_live_YOUR_SECRET_KEY

A missing, mistyped or revoked key returns 401:

{
  "error": {
    "message": "You didn't provide an API key. Send it in the Authorization header as 'Bearer <key>'.",
    "type": "authentication_error",
    "code": "invalid_api_key"
  }
}

Keep keys on your server

Anyone holding a key can spend your wallet. Never put it in browser JavaScript, a mobile app or a public repository. Have your frontend upload to your own backend, which calls Cueito (see Uploads from your app). The API doesn't send CORS headers, so browser calls fail anyway.

  • Use one key per app or environment (production, staging) so you can revoke one without touching the others.
  • Each key can have a monthly spend limit; requests over it return 402.
  • Rate limits are counted per key.
  • Rotate a key by creating a new one, deploying it, then revoking the old one.

Key format

Keys look like cueito_sk_live_ followed by 40 characters. The last six are a checksum, so a key with a typo or a truncated copy-paste is rejected with 401 straight away. live means the key spends real credits. Keys created before this format (cueito_sk_ without live_) keep working until you revoke them.

  • Store the whole key; the dashboard only ever shows its first characters again.
  • If a key ends up somewhere public (a commit, a screenshot, a support ticket), revoke it on the API keys page and create a new one. Revoking takes effect within seconds.

Getting started

Set up with AI prompts

Using Claude Code, Cursor, Copilot, ChatGPT or another coding assistant? Copy a prompt below and paste it into the assistant inside your project. Each one includes the full API facts (endpoints, fields, limits, error handling), so the assistant doesn't have to guess.

Agents can read the spec themselves

The same facts are served as plain text at https://cueito.com/llms.txt. Tell an agent to "read https://cueito.com/llms.txt and integrate it".

Add Cueito to my project

General-purpose. The assistant inspects your stack and wires in transcription.

You are working in my codebase. Integrate the Cueito speech-to-text API.

1. Inspect the project first: language, framework, package manager, how config and secrets are loaded, and where server-side code lives. Follow the existing conventions.
2. Add a small server-side module (e.g. "transcription" service) that exposes transcribe(file, options) and returns the transcript. Use the official OpenAI SDK pointed at the Cueito base URL if the project is Python or JavaScript/TypeScript; otherwise use the language's standard HTTP client with multipart/form-data.
3. Read CUEITO_API_KEY and CUEITO_BASE_URL from the environment and add them to the example env file (never commit a real key).
4. Handle errors as listed below: retry 429/5xx with backoff, surface 4xx clearly, log x-request-id.
5. If the app accepts uploads from users, add a backend endpoint that receives the file and forwards it; the browser must never see the API key.
6. Add a minimal test or script that transcribes a sample file, and explain how to run it.
Show me the plan before making large changes.

Use these facts about the API. Do not guess at anything not listed here.

# Cueito speech-to-text API: integration facts

- Base URL: https://api.cueito.com/v1
- Docs: https://cueito.com/docs
- API keys: created at https://cueito.com/dashboard/keys; they start with "cueito_sk_live_" (older keys: "cueito_sk_").
- Auth: header "Authorization: Bearer <API_KEY>". Keep the key server-side only (env var CUEITO_API_KEY). Never ship it to a browser or mobile app.
- Compatibility: the API is wire-compatible with OpenAI's audio endpoints. The official OpenAI SDKs (Python "openai", Node "openai") work by setting base_url/baseURL to https://api.cueito.com/v1 and model to "wapi-v1".
- Model: "wapi-v1" (the only model; GET /models lists it).

## Endpoints
POST /audio/transcriptions  (multipart/form-data) speech -> text in the spoken language
POST /audio/translations    (multipart/form-data) speech in any language -> English text
GET  /models, GET /models/wapi-v1

## Form fields
- file (required): the audio. The filename MUST end in a supported extension: mp3, mp4, m4a, wav, webm, ogg, flac. The format is detected from the extension, so always pass a filename (e.g. Blob + "audio.webm").
- model (required): "wapi-v1"
- language (optional, transcriptions only): ISO 639 code or BCP-47 tag such as "en", "hi" or "hi-IN" (region is ignored). Omit it or send "auto" to auto-detect. Unsupported languages return 400.
- prompt (optional): up to 2000 characters of context or vocabulary (names, jargon) to guide spelling.
  An instruction prompt (e.g. "Transcribe this phone call verbatim in Hinglish, Roman script, never Devanagari; label speaker turns as 'Agent:' and 'Customer:' on new lines") is read by the API instead of being sent to the decoder: it fills in language=hinglish, output_script=roman, audio_type=call and mode=verbatim when those fields are not sent, and the transcript text comes back as one "Agent: ..." / "Customer: ..." line per turn using the label names you quoted. Explicit fields always win. The response header x-prompt-applied lists what the prompt turned on.
- response_format (optional, default "json"): json, text, srt, vtt, verbose_json
- temperature (optional, 0 to 1, default 0)
- timestamp_granularities[] (optional, transcriptions only): "segment" and/or "word". Only used with response_format=verbose_json. Default ["segment"].
- word_timestamps (optional, "true"/"false"): shorthand for adding "word" to timestamp_granularities.

## Upcoming fields (accepted by the API, but return 400 feature_unavailable until enabled)
Do NOT send these in generated code unless the user asks for the feature; then handle feature_unavailable by retrying without the field.
- language_hints[] (up to 10 codes), custom_vocabulary (up to 1000 terms), diarization (bool) with min_speakers/max_speakers (1-8), mode ("verbatim" | "smart"), translate_to (language code), output_script ("native" | "roman"), backend ("auto" | "whisper" | "indic"), audio_type ("general" | "call" | "meeting": call labels speakers agent/customer, meeting labels up to 8; both add speaker_stats). language may also be "hinglish" (Hindi + English mixed).
- Lists may be repeated fields, a JSON array, or one comma-separated string. With the OpenAI Python SDK pass them via extra_body.

## Responses
- json: {"text": "..."}
- text / srt / vtt: plain text body (content-type text/plain)
- verbose_json: {"task","language","duration","text","segments":[{"id","seek","start","end","text","tokens","temperature","avg_logprob","compression_ratio","no_speech_prob"}],"words":[{"word","start","end","confidence"}]}, plus "language_probability" when the language was auto-detected. Times are seconds as floats; confidence is 0-1. Ignore unknown keys: responses may gain fields (speakers, translation, warnings).

## Limits
- Max upload 25 MB per request (larger files: re-encode to mono 16 kHz 64 kbps MP3 or split into chunks).
- A request waits up to 120 seconds for the transcript; long files can return job_timeout (504). Split long audio into chunks (e.g. 10 minutes) and offset the timestamps.
- Rate limits are per API key: requests per minute plus a cap on jobs running at the same time (defaults 60/min and 2 concurrent; plans can raise them). Response headers: x-ratelimit-limit-requests, x-ratelimit-remaining-requests, x-ratelimit-reset-requests. 429 responses include retry-after (seconds).
- Billing: per second of audio, prepaid from the account wallet. Failed requests are not charged.

## Errors
Body: {"error":{"message","type","code","param?"}}. Every response has an x-request-id header; log it.
- 400 invalid_request, unsupported_format: fix the request, do not retry
- 400 feature_unavailable: the field named in "param" isn't enabled yet; resend without it
- 401 invalid_api_key: check the key, do not retry
- 402 insufficient_credits: wallet balance too low, or the key hit its monthly spend limit; top up or raise the limit in the dashboard (falling back to another provider is reasonable)
- 403 account_suspended: contact support
- 404 model_not_found, not_found
- 413 file_too_large, audio_too_long: compress or split
- 429 rate_limited: wait retry-after seconds, then retry
- 500 internal_error, 503 worker_unavailable / maintenance_mode, 504 job_timeout: retry with exponential backoff, or fail over to another provider

## Conventions for generated code
- Read CUEITO_API_KEY (and optionally CUEITO_BASE_URL defaulting to https://api.cueito.com/v1) from environment variables.
- Prefer the OpenAI SDK pointed at the base URL; plain HTTP multipart works everywhere else.
- Set a client timeout of at least 150 seconds.
- Retry 429/5xx with exponential backoff and jitter (max 3 attempts), honour retry-after, never retry 4xx other than 429.
- Log the x-request-id of failed calls.

Migrate from OpenAI, Groq or another provider

Finds every existing speech-to-text call and switches it over, keeping behaviour.

My project already does speech-to-text with another provider (OpenAI Whisper / gpt-4o-transcribe, Groq Whisper, Deepgram, AssemblyAI, Azure, or a self-hosted Whisper). Migrate it to Cueito.

1. Search the codebase for every speech-to-text call: SDK clients, raw HTTP calls, env vars, model names (whisper-1, gpt-4o-transcribe, whisper-large-v3, whisper-large-v3-turbo, nova-*, etc.) and response parsing.
2. If the code uses an OpenAI-compatible client (OpenAI SDK, or Groq via its OpenAI-compatible URL), change only the base URL, API key and model name to "wapi-v1". Keep everything else.
3. If the code uses a different API shape (Deepgram, AssemblyAI, etc.), write an adapter that calls Cueito and returns the same data structure the rest of the app already expects (map text, segments/utterances and word timings; Cueito times are in seconds).
4. Keep the old provider behind a config flag (TRANSCRIPTION_PROVIDER) so I can switch back without a deploy.
5. List every file you changed and anything that behaves differently (response formats, limits).

Use these facts about the API. Do not guess at anything not listed here.

# Cueito speech-to-text API: integration facts

- Base URL: https://api.cueito.com/v1
- Docs: https://cueito.com/docs
- API keys: created at https://cueito.com/dashboard/keys; they start with "cueito_sk_live_" (older keys: "cueito_sk_").
- Auth: header "Authorization: Bearer <API_KEY>". Keep the key server-side only (env var CUEITO_API_KEY). Never ship it to a browser or mobile app.
- Compatibility: the API is wire-compatible with OpenAI's audio endpoints. The official OpenAI SDKs (Python "openai", Node "openai") work by setting base_url/baseURL to https://api.cueito.com/v1 and model to "wapi-v1".
- Model: "wapi-v1" (the only model; GET /models lists it).

## Endpoints
POST /audio/transcriptions  (multipart/form-data) speech -> text in the spoken language
POST /audio/translations    (multipart/form-data) speech in any language -> English text
GET  /models, GET /models/wapi-v1

## Form fields
- file (required): the audio. The filename MUST end in a supported extension: mp3, mp4, m4a, wav, webm, ogg, flac. The format is detected from the extension, so always pass a filename (e.g. Blob + "audio.webm").
- model (required): "wapi-v1"
- language (optional, transcriptions only): ISO 639 code or BCP-47 tag such as "en", "hi" or "hi-IN" (region is ignored). Omit it or send "auto" to auto-detect. Unsupported languages return 400.
- prompt (optional): up to 2000 characters of context or vocabulary (names, jargon) to guide spelling.
  An instruction prompt (e.g. "Transcribe this phone call verbatim in Hinglish, Roman script, never Devanagari; label speaker turns as 'Agent:' and 'Customer:' on new lines") is read by the API instead of being sent to the decoder: it fills in language=hinglish, output_script=roman, audio_type=call and mode=verbatim when those fields are not sent, and the transcript text comes back as one "Agent: ..." / "Customer: ..." line per turn using the label names you quoted. Explicit fields always win. The response header x-prompt-applied lists what the prompt turned on.
- response_format (optional, default "json"): json, text, srt, vtt, verbose_json
- temperature (optional, 0 to 1, default 0)
- timestamp_granularities[] (optional, transcriptions only): "segment" and/or "word". Only used with response_format=verbose_json. Default ["segment"].
- word_timestamps (optional, "true"/"false"): shorthand for adding "word" to timestamp_granularities.

## Upcoming fields (accepted by the API, but return 400 feature_unavailable until enabled)
Do NOT send these in generated code unless the user asks for the feature; then handle feature_unavailable by retrying without the field.
- language_hints[] (up to 10 codes), custom_vocabulary (up to 1000 terms), diarization (bool) with min_speakers/max_speakers (1-8), mode ("verbatim" | "smart"), translate_to (language code), output_script ("native" | "roman"), backend ("auto" | "whisper" | "indic"), audio_type ("general" | "call" | "meeting": call labels speakers agent/customer, meeting labels up to 8; both add speaker_stats). language may also be "hinglish" (Hindi + English mixed).
- Lists may be repeated fields, a JSON array, or one comma-separated string. With the OpenAI Python SDK pass them via extra_body.

## Responses
- json: {"text": "..."}
- text / srt / vtt: plain text body (content-type text/plain)
- verbose_json: {"task","language","duration","text","segments":[{"id","seek","start","end","text","tokens","temperature","avg_logprob","compression_ratio","no_speech_prob"}],"words":[{"word","start","end","confidence"}]}, plus "language_probability" when the language was auto-detected. Times are seconds as floats; confidence is 0-1. Ignore unknown keys: responses may gain fields (speakers, translation, warnings).

## Limits
- Max upload 25 MB per request (larger files: re-encode to mono 16 kHz 64 kbps MP3 or split into chunks).
- A request waits up to 120 seconds for the transcript; long files can return job_timeout (504). Split long audio into chunks (e.g. 10 minutes) and offset the timestamps.
- Rate limits are per API key: requests per minute plus a cap on jobs running at the same time (defaults 60/min and 2 concurrent; plans can raise them). Response headers: x-ratelimit-limit-requests, x-ratelimit-remaining-requests, x-ratelimit-reset-requests. 429 responses include retry-after (seconds).
- Billing: per second of audio, prepaid from the account wallet. Failed requests are not charged.

## Errors
Body: {"error":{"message","type","code","param?"}}. Every response has an x-request-id header; log it.
- 400 invalid_request, unsupported_format: fix the request, do not retry
- 400 feature_unavailable: the field named in "param" isn't enabled yet; resend without it
- 401 invalid_api_key: check the key, do not retry
- 402 insufficient_credits: wallet balance too low, or the key hit its monthly spend limit; top up or raise the limit in the dashboard (falling back to another provider is reasonable)
- 403 account_suspended: contact support
- 404 model_not_found, not_found
- 413 file_too_large, audio_too_long: compress or split
- 429 rate_limited: wait retry-after seconds, then retry
- 500 internal_error, 503 worker_unavailable / maintenance_mode, 504 job_timeout: retry with exponential backoff, or fail over to another provider

## Conventions for generated code
- Read CUEITO_API_KEY (and optionally CUEITO_BASE_URL defaulting to https://api.cueito.com/v1) from environment variables.
- Prefer the OpenAI SDK pointed at the base URL; plain HTTP multipart works everywhere else.
- Set a client timeout of at least 150 seconds.
- Retry 429/5xx with exponential backoff and jitter (max 3 attempts), honour retry-after, never retry 4xx other than 429.
- Log the x-request-id of failed calls.

Set up automatic fallback

Cueito as primary with OpenAI or Groq as backup, or the other way round.

Add provider fallback to the speech-to-text code in my project.

Requirements:
- An ordered list of providers, configured from env vars: Cueito (primary, model "wapi-v1", base URL above), Groq (OpenAI-compatible base URL https://api.groq.com/openai/v1, model "whisper-large-v3-turbo"), OpenAI (model "whisper-1"). Skip any provider whose API key is not set.
- Use one OpenAI-compatible client per provider so the request code is shared.
- Fall back to the next provider only on: network errors, timeouts, 402, 408, 409, 429, and 5xx. Do NOT fall back on other 4xx (400, 401, 404, 413); those are bugs or bad input and must surface.
- Within one provider, let the SDK retry (max_retries=2) before moving on.
- Re-open/re-read the file for every attempt (streams can only be read once).
- Add a simple circuit breaker: after 3 consecutive fallback-worthy failures, skip that provider for 60 seconds.
- Normalise the output to {provider, text, language, duration, segments} so callers don't care who answered. If I need SRT/VTT, request verbose_json from every provider and build the subtitle file locally, because not every provider supports srt/vtt.
- Log which provider served each request and why a fallback happened (include x-request-id when present).
- Write unit tests for the fallback decision using fake clients.

Use these facts about the API. Do not guess at anything not listed here.

# Cueito speech-to-text API: integration facts

- Base URL: https://api.cueito.com/v1
- Docs: https://cueito.com/docs
- API keys: created at https://cueito.com/dashboard/keys; they start with "cueito_sk_live_" (older keys: "cueito_sk_").
- Auth: header "Authorization: Bearer <API_KEY>". Keep the key server-side only (env var CUEITO_API_KEY). Never ship it to a browser or mobile app.
- Compatibility: the API is wire-compatible with OpenAI's audio endpoints. The official OpenAI SDKs (Python "openai", Node "openai") work by setting base_url/baseURL to https://api.cueito.com/v1 and model to "wapi-v1".
- Model: "wapi-v1" (the only model; GET /models lists it).

## Endpoints
POST /audio/transcriptions  (multipart/form-data) speech -> text in the spoken language
POST /audio/translations    (multipart/form-data) speech in any language -> English text
GET  /models, GET /models/wapi-v1

## Form fields
- file (required): the audio. The filename MUST end in a supported extension: mp3, mp4, m4a, wav, webm, ogg, flac. The format is detected from the extension, so always pass a filename (e.g. Blob + "audio.webm").
- model (required): "wapi-v1"
- language (optional, transcriptions only): ISO 639 code or BCP-47 tag such as "en", "hi" or "hi-IN" (region is ignored). Omit it or send "auto" to auto-detect. Unsupported languages return 400.
- prompt (optional): up to 2000 characters of context or vocabulary (names, jargon) to guide spelling.
  An instruction prompt (e.g. "Transcribe this phone call verbatim in Hinglish, Roman script, never Devanagari; label speaker turns as 'Agent:' and 'Customer:' on new lines") is read by the API instead of being sent to the decoder: it fills in language=hinglish, output_script=roman, audio_type=call and mode=verbatim when those fields are not sent, and the transcript text comes back as one "Agent: ..." / "Customer: ..." line per turn using the label names you quoted. Explicit fields always win. The response header x-prompt-applied lists what the prompt turned on.
- response_format (optional, default "json"): json, text, srt, vtt, verbose_json
- temperature (optional, 0 to 1, default 0)
- timestamp_granularities[] (optional, transcriptions only): "segment" and/or "word". Only used with response_format=verbose_json. Default ["segment"].
- word_timestamps (optional, "true"/"false"): shorthand for adding "word" to timestamp_granularities.

## Upcoming fields (accepted by the API, but return 400 feature_unavailable until enabled)
Do NOT send these in generated code unless the user asks for the feature; then handle feature_unavailable by retrying without the field.
- language_hints[] (up to 10 codes), custom_vocabulary (up to 1000 terms), diarization (bool) with min_speakers/max_speakers (1-8), mode ("verbatim" | "smart"), translate_to (language code), output_script ("native" | "roman"), backend ("auto" | "whisper" | "indic"), audio_type ("general" | "call" | "meeting": call labels speakers agent/customer, meeting labels up to 8; both add speaker_stats). language may also be "hinglish" (Hindi + English mixed).
- Lists may be repeated fields, a JSON array, or one comma-separated string. With the OpenAI Python SDK pass them via extra_body.

## Responses
- json: {"text": "..."}
- text / srt / vtt: plain text body (content-type text/plain)
- verbose_json: {"task","language","duration","text","segments":[{"id","seek","start","end","text","tokens","temperature","avg_logprob","compression_ratio","no_speech_prob"}],"words":[{"word","start","end","confidence"}]}, plus "language_probability" when the language was auto-detected. Times are seconds as floats; confidence is 0-1. Ignore unknown keys: responses may gain fields (speakers, translation, warnings).

## Limits
- Max upload 25 MB per request (larger files: re-encode to mono 16 kHz 64 kbps MP3 or split into chunks).
- A request waits up to 120 seconds for the transcript; long files can return job_timeout (504). Split long audio into chunks (e.g. 10 minutes) and offset the timestamps.
- Rate limits are per API key: requests per minute plus a cap on jobs running at the same time (defaults 60/min and 2 concurrent; plans can raise them). Response headers: x-ratelimit-limit-requests, x-ratelimit-remaining-requests, x-ratelimit-reset-requests. 429 responses include retry-after (seconds).
- Billing: per second of audio, prepaid from the account wallet. Failed requests are not charged.

## Errors
Body: {"error":{"message","type","code","param?"}}. Every response has an x-request-id header; log it.
- 400 invalid_request, unsupported_format: fix the request, do not retry
- 400 feature_unavailable: the field named in "param" isn't enabled yet; resend without it
- 401 invalid_api_key: check the key, do not retry
- 402 insufficient_credits: wallet balance too low, or the key hit its monthly spend limit; top up or raise the limit in the dashboard (falling back to another provider is reasonable)
- 403 account_suspended: contact support
- 404 model_not_found, not_found
- 413 file_too_large, audio_too_long: compress or split
- 429 rate_limited: wait retry-after seconds, then retry
- 500 internal_error, 503 worker_unavailable / maintenance_mode, 504 job_timeout: retry with exponential backoff, or fail over to another provider

## Conventions for generated code
- Read CUEITO_API_KEY (and optionally CUEITO_BASE_URL defaulting to https://api.cueito.com/v1) from environment variables.
- Prefer the OpenAI SDK pointed at the base URL; plain HTTP multipart works everywhere else.
- Set a client timeout of at least 150 seconds.
- Retry 429/5xx with exponential backoff and jitter (max 3 attempts), honour retry-after, never retry 4xx other than 429.
- Log the x-request-id of failed calls.

Voice notes / dictation feature

Record in the browser, transcribe on your server, show the text.

Build a voice-note feature in my web app using Cueito.

- Frontend: a record button using MediaRecorder (audio/webm; fall back to audio/mp4 on Safari), a timer, stop button, and upload of the recording to my own backend endpoint as multipart/form-data with a filename that has the right extension (".webm" or ".m4a").
- Backend: an authenticated endpoint that checks the file size (max 25 MB), forwards the file to POST /audio/transcriptions with model "wapi-v1", and returns {text}. The Cueito key stays on the server.
- Show loading and error states; map 429 to "busy, retrying" and 402 to an admin-facing alert.
- Match the existing UI components and styling in the project.

Use these facts about the API. Do not guess at anything not listed here.

# Cueito speech-to-text API: integration facts

- Base URL: https://api.cueito.com/v1
- Docs: https://cueito.com/docs
- API keys: created at https://cueito.com/dashboard/keys; they start with "cueito_sk_live_" (older keys: "cueito_sk_").
- Auth: header "Authorization: Bearer <API_KEY>". Keep the key server-side only (env var CUEITO_API_KEY). Never ship it to a browser or mobile app.
- Compatibility: the API is wire-compatible with OpenAI's audio endpoints. The official OpenAI SDKs (Python "openai", Node "openai") work by setting base_url/baseURL to https://api.cueito.com/v1 and model to "wapi-v1".
- Model: "wapi-v1" (the only model; GET /models lists it).

## Endpoints
POST /audio/transcriptions  (multipart/form-data) speech -> text in the spoken language
POST /audio/translations    (multipart/form-data) speech in any language -> English text
GET  /models, GET /models/wapi-v1

## Form fields
- file (required): the audio. The filename MUST end in a supported extension: mp3, mp4, m4a, wav, webm, ogg, flac. The format is detected from the extension, so always pass a filename (e.g. Blob + "audio.webm").
- model (required): "wapi-v1"
- language (optional, transcriptions only): ISO 639 code or BCP-47 tag such as "en", "hi" or "hi-IN" (region is ignored). Omit it or send "auto" to auto-detect. Unsupported languages return 400.
- prompt (optional): up to 2000 characters of context or vocabulary (names, jargon) to guide spelling.
  An instruction prompt (e.g. "Transcribe this phone call verbatim in Hinglish, Roman script, never Devanagari; label speaker turns as 'Agent:' and 'Customer:' on new lines") is read by the API instead of being sent to the decoder: it fills in language=hinglish, output_script=roman, audio_type=call and mode=verbatim when those fields are not sent, and the transcript text comes back as one "Agent: ..." / "Customer: ..." line per turn using the label names you quoted. Explicit fields always win. The response header x-prompt-applied lists what the prompt turned on.
- response_format (optional, default "json"): json, text, srt, vtt, verbose_json
- temperature (optional, 0 to 1, default 0)
- timestamp_granularities[] (optional, transcriptions only): "segment" and/or "word". Only used with response_format=verbose_json. Default ["segment"].
- word_timestamps (optional, "true"/"false"): shorthand for adding "word" to timestamp_granularities.

## Upcoming fields (accepted by the API, but return 400 feature_unavailable until enabled)
Do NOT send these in generated code unless the user asks for the feature; then handle feature_unavailable by retrying without the field.
- language_hints[] (up to 10 codes), custom_vocabulary (up to 1000 terms), diarization (bool) with min_speakers/max_speakers (1-8), mode ("verbatim" | "smart"), translate_to (language code), output_script ("native" | "roman"), backend ("auto" | "whisper" | "indic"), audio_type ("general" | "call" | "meeting": call labels speakers agent/customer, meeting labels up to 8; both add speaker_stats). language may also be "hinglish" (Hindi + English mixed).
- Lists may be repeated fields, a JSON array, or one comma-separated string. With the OpenAI Python SDK pass them via extra_body.

## Responses
- json: {"text": "..."}
- text / srt / vtt: plain text body (content-type text/plain)
- verbose_json: {"task","language","duration","text","segments":[{"id","seek","start","end","text","tokens","temperature","avg_logprob","compression_ratio","no_speech_prob"}],"words":[{"word","start","end","confidence"}]}, plus "language_probability" when the language was auto-detected. Times are seconds as floats; confidence is 0-1. Ignore unknown keys: responses may gain fields (speakers, translation, warnings).

## Limits
- Max upload 25 MB per request (larger files: re-encode to mono 16 kHz 64 kbps MP3 or split into chunks).
- A request waits up to 120 seconds for the transcript; long files can return job_timeout (504). Split long audio into chunks (e.g. 10 minutes) and offset the timestamps.
- Rate limits are per API key: requests per minute plus a cap on jobs running at the same time (defaults 60/min and 2 concurrent; plans can raise them). Response headers: x-ratelimit-limit-requests, x-ratelimit-remaining-requests, x-ratelimit-reset-requests. 429 responses include retry-after (seconds).
- Billing: per second of audio, prepaid from the account wallet. Failed requests are not charged.

## Errors
Body: {"error":{"message","type","code","param?"}}. Every response has an x-request-id header; log it.
- 400 invalid_request, unsupported_format: fix the request, do not retry
- 400 feature_unavailable: the field named in "param" isn't enabled yet; resend without it
- 401 invalid_api_key: check the key, do not retry
- 402 insufficient_credits: wallet balance too low, or the key hit its monthly spend limit; top up or raise the limit in the dashboard (falling back to another provider is reasonable)
- 403 account_suspended: contact support
- 404 model_not_found, not_found
- 413 file_too_large, audio_too_long: compress or split
- 429 rate_limited: wait retry-after seconds, then retry
- 500 internal_error, 503 worker_unavailable / maintenance_mode, 504 job_timeout: retry with exponential backoff, or fail over to another provider

## Conventions for generated code
- Read CUEITO_API_KEY (and optionally CUEITO_BASE_URL defaulting to https://api.cueito.com/v1) from environment variables.
- Prefer the OpenAI SDK pointed at the base URL; plain HTTP multipart works everywhere else.
- Set a client timeout of at least 150 seconds.
- Retry 429/5xx with exponential backoff and jitter (max 3 attempts), honour retry-after, never retry 4xx other than 429.
- Log the x-request-id of failed calls.

Subtitles pipeline for videos

Extract audio with ffmpeg, transcribe to SRT/VTT, handle long videos.

Write a subtitles pipeline using Cueito.

- Input: a video file path (or a folder of videos).
- Extract mono 16 kHz audio with ffmpeg (64 kbps MP3) to stay under 25 MB.
- If the audio is longer than 10 minutes, split it into 10-minute chunks with ffmpeg, transcribe each chunk with response_format=verbose_json, pass the last ~200 characters of the previous chunk's text as "prompt" for continuity, and shift every segment's start/end by the chunk offset.
- Build .srt and .vtt files from the merged segments, saved next to the video.
- Process at most 2 chunks at the same time (the default concurrency limit per key) and retry 429/5xx with backoff.
- Make it a CLI with --language (optional ISO-639-1 code) and --translate (use /audio/translations to produce English subtitles).

Use these facts about the API. Do not guess at anything not listed here.

# Cueito speech-to-text API: integration facts

- Base URL: https://api.cueito.com/v1
- Docs: https://cueito.com/docs
- API keys: created at https://cueito.com/dashboard/keys; they start with "cueito_sk_live_" (older keys: "cueito_sk_").
- Auth: header "Authorization: Bearer <API_KEY>". Keep the key server-side only (env var CUEITO_API_KEY). Never ship it to a browser or mobile app.
- Compatibility: the API is wire-compatible with OpenAI's audio endpoints. The official OpenAI SDKs (Python "openai", Node "openai") work by setting base_url/baseURL to https://api.cueito.com/v1 and model to "wapi-v1".
- Model: "wapi-v1" (the only model; GET /models lists it).

## Endpoints
POST /audio/transcriptions  (multipart/form-data) speech -> text in the spoken language
POST /audio/translations    (multipart/form-data) speech in any language -> English text
GET  /models, GET /models/wapi-v1

## Form fields
- file (required): the audio. The filename MUST end in a supported extension: mp3, mp4, m4a, wav, webm, ogg, flac. The format is detected from the extension, so always pass a filename (e.g. Blob + "audio.webm").
- model (required): "wapi-v1"
- language (optional, transcriptions only): ISO 639 code or BCP-47 tag such as "en", "hi" or "hi-IN" (region is ignored). Omit it or send "auto" to auto-detect. Unsupported languages return 400.
- prompt (optional): up to 2000 characters of context or vocabulary (names, jargon) to guide spelling.
  An instruction prompt (e.g. "Transcribe this phone call verbatim in Hinglish, Roman script, never Devanagari; label speaker turns as 'Agent:' and 'Customer:' on new lines") is read by the API instead of being sent to the decoder: it fills in language=hinglish, output_script=roman, audio_type=call and mode=verbatim when those fields are not sent, and the transcript text comes back as one "Agent: ..." / "Customer: ..." line per turn using the label names you quoted. Explicit fields always win. The response header x-prompt-applied lists what the prompt turned on.
- response_format (optional, default "json"): json, text, srt, vtt, verbose_json
- temperature (optional, 0 to 1, default 0)
- timestamp_granularities[] (optional, transcriptions only): "segment" and/or "word". Only used with response_format=verbose_json. Default ["segment"].
- word_timestamps (optional, "true"/"false"): shorthand for adding "word" to timestamp_granularities.

## Upcoming fields (accepted by the API, but return 400 feature_unavailable until enabled)
Do NOT send these in generated code unless the user asks for the feature; then handle feature_unavailable by retrying without the field.
- language_hints[] (up to 10 codes), custom_vocabulary (up to 1000 terms), diarization (bool) with min_speakers/max_speakers (1-8), mode ("verbatim" | "smart"), translate_to (language code), output_script ("native" | "roman"), backend ("auto" | "whisper" | "indic"), audio_type ("general" | "call" | "meeting": call labels speakers agent/customer, meeting labels up to 8; both add speaker_stats). language may also be "hinglish" (Hindi + English mixed).
- Lists may be repeated fields, a JSON array, or one comma-separated string. With the OpenAI Python SDK pass them via extra_body.

## Responses
- json: {"text": "..."}
- text / srt / vtt: plain text body (content-type text/plain)
- verbose_json: {"task","language","duration","text","segments":[{"id","seek","start","end","text","tokens","temperature","avg_logprob","compression_ratio","no_speech_prob"}],"words":[{"word","start","end","confidence"}]}, plus "language_probability" when the language was auto-detected. Times are seconds as floats; confidence is 0-1. Ignore unknown keys: responses may gain fields (speakers, translation, warnings).

## Limits
- Max upload 25 MB per request (larger files: re-encode to mono 16 kHz 64 kbps MP3 or split into chunks).
- A request waits up to 120 seconds for the transcript; long files can return job_timeout (504). Split long audio into chunks (e.g. 10 minutes) and offset the timestamps.
- Rate limits are per API key: requests per minute plus a cap on jobs running at the same time (defaults 60/min and 2 concurrent; plans can raise them). Response headers: x-ratelimit-limit-requests, x-ratelimit-remaining-requests, x-ratelimit-reset-requests. 429 responses include retry-after (seconds).
- Billing: per second of audio, prepaid from the account wallet. Failed requests are not charged.

## Errors
Body: {"error":{"message","type","code","param?"}}. Every response has an x-request-id header; log it.
- 400 invalid_request, unsupported_format: fix the request, do not retry
- 400 feature_unavailable: the field named in "param" isn't enabled yet; resend without it
- 401 invalid_api_key: check the key, do not retry
- 402 insufficient_credits: wallet balance too low, or the key hit its monthly spend limit; top up or raise the limit in the dashboard (falling back to another provider is reasonable)
- 403 account_suspended: contact support
- 404 model_not_found, not_found
- 413 file_too_large, audio_too_long: compress or split
- 429 rate_limited: wait retry-after seconds, then retry
- 500 internal_error, 503 worker_unavailable / maintenance_mode, 504 job_timeout: retry with exponential backoff, or fail over to another provider

## Conventions for generated code
- Read CUEITO_API_KEY (and optionally CUEITO_BASE_URL defaulting to https://api.cueito.com/v1) from environment variables.
- Prefer the OpenAI SDK pointed at the base URL; plain HTTP multipart works everywhere else.
- Set a client timeout of at least 150 seconds.
- Retry 429/5xx with exponential backoff and jitter (max 3 attempts), honour retry-after, never retry 4xx other than 429.
- Log the x-request-id of failed calls.

Review what the assistant changes before you ship it, especially that the API key is only read on the server.

API reference

Base URL & compatibility

https://api.cueito.com/v1

Requests and responses match OpenAI's /v1/audio/transcriptions, /v1/audio/translations and /v1/models. Things to know:

  • There is one model, wapi-v1. Other model names return model_not_found.
  • Array fields work with or without brackets (timestamp_granularities[] as the SDKs send it, or timestamp_granularities).
  • Every response carries an x-request-id header. Log it and include it when you contact support.
  • Only the audio endpoints exist. Chat, embeddings and the rest of the OpenAI API aren't here, so use a separate client for those.

Health check

A public endpoint outside /v1, handy for uptime monitors. It reports that the API is up; a request can still return worker_unavailable when capacity is busy.

curl https://api.cueito.com/healthz
# {"status":"ok","version":"..."}

API reference

Create transcription

POST https://api.cueito.com/v1/audio/transcriptions

Transcribes audio in the language that was spoken. Send multipart/form-data.

FieldTypeDescription
file *fileThe audio, up to 25 MB. Formats: mp3, mp4, m4a, wav, webm, ogg, flac. The format comes from the filename's extension, so always send a name like call.mp3.
model *stringwapi-v1
languagestringThe spoken language as an ISO 639 code or BCP-47 tag: en, hi, hi-IN, pa, ta. Region tags are accepted and mapped (en-US → en). Leave it out or send auto to detect it; setting it is faster and more accurate when you know it. Unsupported languages return 400.
promptstringUp to 2,000 characters of context: names, product terms, or the text just before this clip. Guides spelling and style.
response_formatstringjson (default), text, srt, vtt or verbose_json. See Response formats.
temperaturenumber0 to 1, default 0. Keep 0 for the most faithful transcript.
timestamp_granularities[]string[]segment (default) and/or word. Applies to verbose_json only. Send the field twice for both.
word_timestampsbooleanShorthand for adding word to timestamp_granularities. Accepts true/false. Each word comes back with a confidence score.

More fields (speakers, smart mode, vocabulary, translation) are on the way; see Upcoming features.

Language codes and word confidence

# All of these mean Hindi; "auto" (or leaving language out) detects it
curl https://api.cueito.com/v1/audio/transcriptions \
  -H "Authorization: Bearer $CUEITO_API_KEY" \
  -F file=@call.mp3 \
  -F model=wapi-v1 \
  -F language=hi-IN \
  -F word_timestamps=true \
  -F response_format=verbose_json

A request using every option:

curl https://api.cueito.com/v1/audio/transcriptions \
  -H "Authorization: Bearer $CUEITO_API_KEY" \
  -F file=@interview.m4a \
  -F model=wapi-v1 \
  -F language=en \
  -F prompt="Speakers: Priya, Arjun. Terms: GSTIN, Razorpay, Kubernetes." \
  -F response_format=verbose_json \
  -F "timestamp_granularities[]=segment" \
  -F "timestamp_granularities[]=word" \
  -F temperature=0

API reference

Create translation

POST https://api.cueito.com/v1/audio/translations

Takes speech in any supported language and returns English text. Same fields as transcriptions, except language and timestamp_granularities, which don't apply (segments are always included in verbose_json).

curl https://api.cueito.com/v1/audio/translations \
  -H "Authorization: Bearer $CUEITO_API_KEY" \
  -F file=@hindi-call.mp3 \
  -F model=wapi-v1 \
  -F response_format=text

API reference

Async jobs & queue

For long files, batches, or anything you don't want to hold a connection open for, create a job and come back for the result. Jobs take the same fields as /audio/transcriptions, plus task (transcribe or translate), audio_url (instead of a file) and webhook_url.

EndpointWhat it does
POST /audio/jobsQueue a job. Returns 202 with the job object right away.
GET /audio/jobs/{id}Status, queue stage and place, progress.
GET /audio/jobs/{id}/resultThe transcript. ?response_format= reformats it.
GET /audio/jobsThis key's jobs, newest first. ?limit, ?after, ?status.
DELETE /audio/jobs/{id}Cancel a job that hasn't started. Nothing is charged.
GET /audio/queueThis key's parallel slots, its line, and the GPU queue.

Parallel slots and the queue

Each key runs up to 10 jobs at once (sync requests included). Jobs over that wait in the key's own line, in order, and are admitted as slots free up, so one busy key never blocks another key's line. A job's queue.stage tells you where it is:

queue.stageMeaning
waiting_for_slotIn your key's line; queue.position is its place (1 = next).
waiting_for_gpuHas a slot; waiting for a GPU worker. position is its place.
processingBeing transcribed; progress goes 0 to 100.
curl https://api.cueito.com/v1/audio/jobs   -H "Authorization: Bearer $CUEITO_API_KEY"   -F file=@meeting.mp3   -F model=wapi-v1   -F response_format=verbose_json   -F webhook_url=https://example.com/hooks/cueito

# 202 Accepted
{
  "id": "job_6749c1f2a8b3e40012ab34cd",
  "object": "audio.job",
  "status": "queued",
  "queue": { "stage": "waiting_for_slot", "position": 3 },
  "progress": null,
  "duration_seconds": 1834.2,
  "result_url": null,
  ...
}

Polling GET /audio/jobs/{id} and GET /audio/queue is free: it doesn't count against your requests per minute. Results are kept for 7 days. The cost is held from your wallet when the job is accepted, charged when it completes, and returned if it fails or you cancel it.

Webhooks

With webhook_url (HTTPS, a public address), we POST { type: "audio.job.completed", data: <job> } when the job finishes, retrying for about an hour if your endpoint doesn't answer 2xx. Treat it as a signal and fetch the job with your key before trusting it.

API reference

Models

GET /models lists the models your key can use, and GET /models/wapi-v1 returns one. Useful as an authenticated connectivity check at startup.

curl https://api.cueito.com/v1/models -H "Authorization: Bearer $CUEITO_API_KEY"

API reference

Response formats

response_formatContent typeUse it for
jsonapplication/jsonJust the text. The default.
verbose_jsonapplication/jsonLanguage, duration, segments with start/end times, and word timings if asked for.
texttext/plainPlain text, nothing to parse.
srttext/plainSubRip subtitles for video players and editors.
vtttext/plainWebVTT subtitles for the HTML <track> element.
{ "text": "Welcome back to the show. Today we're talking about pricing." }
  • All times are in seconds, as decimals.
  • no_speech_prob close to 1 means the segment is probably silence or noise; you can drop it. A very low avg_logprob marks a segment worth reviewing.
  • words is only present when you ask for word granularity.
  • Each word has a confidence from 0 to 1. Highlight words below about 0.6 for review, or use them to decide which clips need a human pass.
  • language_probability (0 to 1) says how sure the detection was. It only appears when you didn't set language. A low value on a short clip is a good reason to set the language explicitly.
  • Responses may gain new fields over time; ignore keys you don't use rather than rejecting them.

API reference

Upcoming features

These fields are part of the API already, so you can build against them today. Until a feature is switched on for your plan, a request that uses it returns 400 feature_unavailable with the field in param, before any upload or charge. Send the request without that field and everything else works as normal.

FieldTypeWhat it will do
language=hinglishstringHindi and English mixed in one sentence, as on most Indian calls. Hindi comes out in Devanagari and English words stay English (office chairs के regarding); add output_script=roman for all-Latin Hinglish (aapki location kya rahegi?).
audio_typestringgeneral (default), call or meeting. call labels the two speakers agent and customer; meeting labels up to 8 (spk_1, …). Both add speaker_stats: talk seconds, share, words and turns per speaker.
language_hints[]string[]Up to 10 likely languages, e.g. hi, pa, en. Detection picks only among them; ideal for Hinglish and other mixed speech. Can't be combined with language.
custom_vocabularystring[]Up to 1,000 names and terms (100 characters each). The first 100 guide the decoder; all of them correct near-miss spellings while keeping word timings.
diarizationbooleanLabels who spoke when: speaker on segments and words (spk_1, spk_2, … in order of first appearance) and a speakers list.
min_speakers / max_speakersinteger1 to 8. With diarization=true or audio_type=meeting; set them when you know the count.
modestringverbatim (default) or smart: removes fillers and false starts, fixes punctuation and writes numbers as digits, without translating or moving words between segments.
translate_tostringA language code. Adds translation to each segment and to the result; text stays as spoken. English and the 22 scheduled Indian languages.
output_scriptstringnative (default), mixed or roman. mixed is Hinglish as people write it: Hindi in Devanagari, English words in English, numbers as digits (मैंने कल 5 बजे 3 files upload कीं); the default for language=hinglish on the Indian-language engine. roman writes Hindi in Latin letters (aap kaise ho). Other scripts are returned as they are, with a warning.
backendstringauto (default), whisper or indic. auto picks the Indian-language engine for Indian languages and Hinglish where it is available. verbose_json then includes engine and routing_reason, and each segment its engine.
curl https://api.cueito.com/v1/audio/transcriptions \
  -H "Authorization: Bearer $CUEITO_API_KEY" \
  -F file=@support-call.mp3 \
  -F model=wapi-v1 \
  -F "language_hints[]=hi" -F "language_hints[]=en" \
  -F "custom_vocabulary=Cueito, Razorpay, GSTIN" \
  -F diarization=true -F max_speakers=2 \
  -F mode=smart \
  -F translate_to=en \
  -F response_format=verbose_json

Sending lists

List fields accept repeated fields (language_hints[]=hi twice), a JSON array (["hi","en"]) or one comma- or newline-separated string (hi,en). Duplicates are removed. With the OpenAI SDKs, put these fields in extra_body (Python), or pass them alongside the standard options in Node and cast the options object, since the SDK's types don't list them.

How results change

  • With speakers, text output has one line per turn (spk_1: …), SRT cues start with [spk_1] and WebVTT uses <v spk_1> voice tags.
  • json responses gain translation and warnings only when they apply, so existing parsers keep working.
  • warnings explains anything that fell back to a simpler method, such as smart mode keeping the verbatim text for a few segments.

API reference

Errors

Errors use standard HTTP status codes and an OpenAI-style JSON body. Branch on error.code; it never changes. The message is for humans and may change.

{
  "error": {
    "message": "Your wallet balance is too low for this file (it costs $0.12). Add funds at https://cueito.com/dashboard/billing.",
    "type": "insufficient_quota",
    "code": "insufficient_credits"
  }
}
StatuscodeMeaningWhat to do
400invalid_requestA field is missing or invalid; param names it.Fix the request. Don't retry.
400unsupported_formatThe filename has no supported extension, or the audio can't be decoded.Send a supported format with a matching extension.
400feature_unavailableThe request asks for a feature (named in param) that isn't available right now.Send the request without that field, or retry later.
401invalid_api_keyNo key, a mistyped key, or a revoked key.Check the Authorization header and the key's status.
402insufficient_creditsThe wallet can't cover this file, or the key reached its monthly spend limit.Add funds or raise the key's limit. Fall back if you have a backup provider.
403account_suspendedThe account is suspended.Contact support.
404not_foundUnknown URL.Check the path and the /v1 prefix.
404model_not_foundThe model isn't 'wapi-v1'.Send model=wapi-v1.
413file_too_largeThe upload is over 25 MB.Re-encode to a smaller bitrate or split the file.
413audio_too_longThe audio is longer than this route allows.Split the file into chunks.
429rate_limitedToo many requests per minute on this key.Wait retry-after seconds, then retry.
429queue_fullThis key already has 1,000 jobs waiting for a parallel slot.Wait for queued jobs to finish (GET /audio/queue), then retry.
409job_not_cancellableThe job is already being transcribed, or has finished.Let it finish. Only queued jobs can be cancelled.
409job_not_readyThe job's result was requested before it completed, or it failed or was cancelled.Poll GET /audio/jobs/{id} until status is completed.
500internal_errorSomething failed on our side. You are not charged.Retry with backoff.
503worker_unavailableNo transcription capacity is free right now.Retry with backoff, or fall back.
503maintenance_modeThe API is briefly in maintenance.Retry later, or fall back.
504job_timeoutThe transcript wasn't ready within 120 seconds. You are not charged.Split long audio into chunks and retry.

Failed requests are free

Your wallet is only charged when a transcript is returned. Errors, timeouts and failed jobs release the held amount.

API reference

Rate limits & retries

Each API key has two limits, set by your plan:

  • Requests per minute (60 by default).
  • Parallel jobs, the number of files transcribing at the same time (up to 10). Send more and the extra ones aren't refused: they wait in your key's own line, first in first out, and start as soon as a running job finishes. See Async jobs & queue.

Every response reports where you stand:

x-request-id: req_8f2c1d0a9b7e
x-ratelimit-limit-requests: 60
x-ratelimit-remaining-requests: 57
x-ratelimit-reset-requests: 42s

A 429 also carries retry-after (seconds). Retry 429 and 5xx with exponential backoff; never retry other 4xx errors. The OpenAI SDKs do this for you:

from openai import OpenAI

# The SDK already retries 408, 409, 429 and 5xx with exponential backoff
# and honours retry-after. Raise the count and the timeout for audio.
client = OpenAI(
    api_key=os.environ["CUEITO_API_KEY"],
    base_url="https://api.cueito.com/v1",
    max_retries=3,
    timeout=150,
)

Set a long client timeout

A request stays open until the transcript is ready, up to 120 seconds. Give your HTTP client 150 seconds or more so it doesn't give up first. Need higher limits? Upgrade your plan from the dashboard or contact us.

API reference

Files & limits

LimitValue
Upload size25 MB per request
Processing time per request120 s, then job_timeout
Formatsmp3, mp4, m4a, wav, webm, ogg, flac
Prompt length2,000 characters
Video filesmp4 and webm work; extracting audio first is smaller

Fitting more audio into 25 MB

Speech doesn't need high-fidelity audio. Mono, 16 kHz, 64 kbps MP3 keeps about 50 minutes under the limit without hurting accuracy:

ffmpeg -i input.wav -vn -ac 1 -ar 16000 -b:a 64k output.mp3

Longer than that, or seeing job_timeout? Split it into chunks; see Long recordings.

API reference

Pricing & billing

  • Prepaid: add funds to your wallet on the Billing page (UPI, cards, net banking). GST invoices are issued automatically.
  • Charged per second of audio, from ₹0.19 ($0.002) per minute. The amount is held when the request starts and settled when the transcript is returned.
  • Failed and timed-out requests are not charged.
  • When the wallet can't cover a file, the request returns 402 insufficient_credits before any work starts.
  • Track daily usage and spend on the Usage page.
TierPrice / minute
Standard₹0.19 · $0.002Lowest price. Jobs run when the GPU is free, so they can wait at busy times.
Performance₹0.40 · $0.0043Priority processing: your jobs go ahead of Standard ones for the shortest wait.

Switching providers

Coming from OpenAI

If you use whisper-1, gpt-4o-transcribe or gpt-4o-mini-transcribe through the OpenAI SDK, the migration is three values: API key, base URL and model. Request and response shapes stay the same.

from openai import OpenAI

# Before
# client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
# model = "whisper-1"

# After: two arguments and the model name change. Nothing else does.
client = OpenAI(
    api_key=os.environ["CUEITO_API_KEY"],
    base_url="https://api.cueito.com/v1",
)
model = "wapi-v1"

with open("call.mp3", "rb") as audio:
    transcript = client.audio.transcriptions.create(model=model, file=audio)

Still using OpenAI for chat or embeddings?

Keep two clients. Only the speech client points at Cueito:

from openai import OpenAI

openai_client = OpenAI()  # chat, embeddings, ... stay on OpenAI
speech_client = OpenAI(
    api_key=os.environ["CUEITO_API_KEY"],
    base_url="https://api.cueito.com/v1",
)

with open("call.mp3", "rb") as audio:
    text = speech_client.audio.transcriptions.create(model="wapi-v1", file=audio).text

summary = openai_client.chat.completions.create(
    model="gpt-4.1-mini",
    messages=[{"role": "user", "content": f"Summarise this call:\n\n{text}"}],
)
OpenAICueito
whisper-1wapi-v1
json, text, srt, vtt, verbose_jsonSame
Word and segment timestampsSame (verbose_json)
/audio/translationsSame
25 MB upload limit25 MB
Billed per minuteBilled per second

Switching providers

Coming from Groq

Groq's speech API is OpenAI-compatible, and so is Cueito. If you call Groq with the OpenAI SDK, change the key, base URL and model. If you use Groq's own SDK, switch that call to the OpenAI SDK; Groq's SDK always adds its own path prefix, so it can't point at another API.

# Before: Groq's own SDK
# from groq import Groq
# client = Groq(api_key=os.environ["GROQ_API_KEY"])
# model = "whisper-large-v3-turbo"

# After: the OpenAI SDK, which speaks the same protocol as Groq
# (pip install openai)
from openai import OpenAI

client = OpenAI(api_key=os.environ["CUEITO_API_KEY"], base_url="https://api.cueito.com/v1")
model = "wapi-v1"

with open("clip.m4a", "rb") as audio:
    result = client.audio.transcriptions.create(
        model=model,
        file=audio,
        response_format="verbose_json",
    )

Model names map as whisper-large-v3 / whisper-large-v3-turbo → wapi-v1. Parameters and the verbose_json shape are the same.

Switching providers

Deepgram, AssemblyAI & others

Providers with their own API shape need a small adapter. Map their response onto one internal type, so switching providers never touches the rest of your app:

// One shape for the rest of your app, whoever produced the transcript.
export interface Transcript {
  text: string;
  language: string;
  duration: number;
  segments: { start: number; end: number; text: string }[];
}

// Cueito already returns this shape with response_format=verbose_json.
export async function transcribeWithCueito(path: string): Promise<Transcript> {
  const result = await cueito.audio.transcriptions.create({
    model: "wapi-v1",
    file: fs.createReadStream(path),
    response_format: "verbose_json",
  });
  return {
    text: result.text,
    language: result.language,
    duration: result.duration,
    segments: (result.segments ?? []).map(({ start, end, text }) => ({ start, end, text: text.trim() })),
  };
}

// Example mapping from a Deepgram-style response (utterances=true), for comparison.
export function fromDeepgram(body: any): Transcript {
  const channel = body.results.channels[0];
  return {
    text: channel.alternatives[0].transcript,
    language: channel.detected_language ?? "en",
    duration: body.metadata.duration,
    segments: (body.results.utterances ?? []).map((u: any) => ({
      start: u.start,
      end: u.end,
      text: u.transcript,
    })),
  };
}

// AssemblyAI reports milliseconds; Cueito reports seconds.
export function fromAssemblyAi(body: any): Transcript {
  return {
    text: body.text,
    language: body.language_code ?? "en",
    duration: body.audio_duration,
    segments: (body.utterances ?? []).map((u: any) => ({
      start: u.start / 1000,
      end: u.end / 1000,
      text: u.text,
    })),
  };
}
ConceptDeepgramAssemblyAICueito
RequestRaw body to /v1/listenUpload, then poll a transcriptOne multipart POST
Languagelanguagelanguage_codelanguage
Custom wordskeywords / keytermword_boostprompt
Sentencesutterancesutterancessegments
Timessecondsmillisecondsseconds
SubtitlesBuild yourself/srt, /vtt endpointsresponse_format=srt|vtt

Self-hosted Whisper (faster-whisper, whisper.cpp server, LocalAI, etc.): if it exposes the OpenAI-compatible route, change the base URL; otherwise use the adapter pattern above. Azure OpenAI: replace the AzureOpenAI client with a plain OpenAI client pointed at Cueito.

Switch without a deploy

Choose the provider from configuration so you can move traffic, or move back, by changing one variable:

# Switch providers without a deploy
TRANSCRIPTION_PROVIDER=cueito   # cueito | openai | groq | legacy

CUEITO_API_KEY=cueito_sk_live_YOUR_SECRET_KEY
CUEITO_BASE_URL=https://api.cueito.com/v1
OPENAI_API_KEY=sk-...
GROQ_API_KEY=gsk_...

Switching providers

Fallback & failover

For production you may want a second provider that takes over when the first one is down, throttling you, or out of credit. Because Cueito, OpenAI and Groq all speak the same protocol, one function can try them in order.

When to fall back

SituationStatus / errorFall back?
Network failure or client timeoutconnection errorYes
Wallet empty or key spend limit402Yes, and alert someone
Rate limited after SDK retries429Yes
Server error, no capacity, maintenance, timeout500, 502, 503, 504Yes
Bad request, unsupported file400No: it fails everywhere
Wrong or revoked key401No: fix the config (or yes, with an alert)
File too large413No: compress or split first

Cueito first, then Groq, then OpenAI

Each provider gets its own client with SDK retries. If it still fails with a fallback-worthy error, the next one is tried. A small circuit breaker skips a provider for a minute after three failures in a row, so an outage doesn't add latency to every request.

import logging
import os
import time
from dataclasses import dataclass, field

import openai
from openai import OpenAI

log = logging.getLogger("transcription")


@dataclass
class Provider:
    name: str
    client: OpenAI
    model: str
    failures: int = 0
    open_until: float = 0.0  # circuit breaker


def build_providers() -> list[Provider]:
    providers = []
    if key := os.getenv("CUEITO_API_KEY"):
        providers.append(Provider(
            "cueito",
            OpenAI(api_key=key, base_url=os.getenv("CUEITO_BASE_URL", "https://api.cueito.com/v1"),
                   max_retries=2, timeout=150),
            "wapi-v1",
        ))
    if key := os.getenv("GROQ_API_KEY"):
        providers.append(Provider(
            "groq",
            OpenAI(api_key=key, base_url="https://api.groq.com/openai/v1",
                   max_retries=1, timeout=120),
            "whisper-large-v3-turbo",
        ))
    if key := os.getenv("OPENAI_API_KEY"):
        providers.append(Provider(
            "openai", OpenAI(api_key=key, max_retries=1, timeout=120), "whisper-1",
        ))
    return providers


PROVIDERS = build_providers()

# Outages, throttling and an empty wallet move on to the next provider.
# Bad input (400, 401, 404, 413) would fail the same way everywhere, so it is raised.
FALLBACK_STATUSES = {402, 408, 409, 429, 500, 502, 503, 504}
BREAKER_THRESHOLD = 3
BREAKER_COOLDOWN_SECONDS = 60


def should_fall_back(error: Exception) -> bool:
    if isinstance(error, openai.APIConnectionError):  # includes timeouts
        return True
    if isinstance(error, openai.APIStatusError):
        return error.status_code in FALLBACK_STATUSES
    return False


def transcribe(path: str, **options):
    """Returns (provider_name, verbose transcript)."""
    last_error: Exception | None = None
    for provider in PROVIDERS:
        if provider.open_until > time.monotonic():
            continue
        try:
            with open(path, "rb") as audio:  # a fresh file handle per attempt
                result = provider.client.audio.transcriptions.create(
                    model=provider.model,
                    file=audio,
                    response_format="verbose_json",
                    **options,
                )
            provider.failures = 0
            return provider.name, result
        except Exception as error:
            if not should_fall_back(error):
                raise
            provider.failures += 1
            if provider.failures >= BREAKER_THRESHOLD:
                provider.open_until = time.monotonic() + BREAKER_COOLDOWN_SECONDS
            request_id = getattr(getattr(error, "response", None), "headers", {}).get("x-request-id")
            log.warning("%s failed (%s, request %s); trying next provider",
                        provider.name, error, request_id)
            last_error = error
    raise last_error or RuntimeError("No transcription provider is configured")


provider, transcript = transcribe("meeting.mp3", language="en")
print(provider, transcript.text)
import fs from "node:fs";
import OpenAI from "openai";

interface Provider {
  name: string;
  client: OpenAI;
  model: string;
  failures: number;
  openUntil: number;
}

function provider(name: string, model: string, options: ConstructorParameters<typeof OpenAI>[0]): Provider {
  return { name, model, client: new OpenAI(options), failures: 0, openUntil: 0 };
}

const providers: Provider[] = [
  process.env.CUEITO_API_KEY &&
    provider("cueito", "wapi-v1", {
      apiKey: process.env.CUEITO_API_KEY,
      baseURL: process.env.CUEITO_BASE_URL ?? "https://api.cueito.com/v1",
      maxRetries: 2,
      timeout: 150_000,
    }),
  process.env.GROQ_API_KEY &&
    provider("groq", "whisper-large-v3-turbo", {
      apiKey: process.env.GROQ_API_KEY,
      baseURL: "https://api.groq.com/openai/v1",
      maxRetries: 1,
      timeout: 120_000,
    }),
  process.env.OPENAI_API_KEY &&
    provider("openai", "whisper-1", {
      apiKey: process.env.OPENAI_API_KEY,
      maxRetries: 1,
      timeout: 120_000,
    }),
].filter((entry): entry is Provider => Boolean(entry));

const FALLBACK_STATUSES = new Set([402, 408, 409, 429, 500, 502, 503, 504]);
const BREAKER_THRESHOLD = 3;
const BREAKER_COOLDOWN_MS = 60_000;

function shouldFallBack(error: unknown): boolean {
  if (error instanceof OpenAI.APIConnectionError) return true; // includes timeouts
  return error instanceof OpenAI.APIError && FALLBACK_STATUSES.has(error.status ?? 0);
}

export async function transcribe(path: string, options: { language?: string; prompt?: string } = {}) {
  let lastError: unknown = new Error("No transcription provider is configured");
  for (const p of providers) {
    if (p.openUntil > Date.now()) continue;
    try {
      const result = await p.client.audio.transcriptions.create({
        model: p.model,
        file: fs.createReadStream(path), // a fresh stream per attempt
        response_format: "verbose_json",
        ...options,
      });
      p.failures = 0;
      return { provider: p.name, ...result };
    } catch (error) {
      if (!shouldFallBack(error)) throw error;
      if (++p.failures >= BREAKER_THRESHOLD) p.openUntil = Date.now() + BREAKER_COOLDOWN_MS;
      const requestId = error instanceof OpenAI.APIError ? error.headers?.get?.("x-request-id") : undefined;
      console.warn(`${p.name} failed (${String(error)}, request ${requestId}); trying next provider`);
      lastError = error;
    }
  }
  throw lastError;
}

Using Cueito as the backup instead

Reorder the list. Put your current provider first and Cueito second; nothing else changes. This is a low-risk way to try Cueito on real traffic.

Keep results consistent

  • Request verbose_json from every provider and normalise it, so callers never care who answered.
  • Not every provider or model supports srt/vtt (for example OpenAI's gpt-4o-*-transcribe models return json or text only). Build subtitles yourself from segments:
def timestamp(seconds: float, separator: str = ",") -> str:
    ms = round(seconds * 1000)
    h, ms = divmod(ms, 3_600_000)
    m, ms = divmod(ms, 60_000)
    s, ms = divmod(ms, 1000)
    return f"{h:02}:{m:02}:{s:02}{separator}{ms:03}"


def to_srt(segments) -> str:
    blocks = []
    for index, segment in enumerate(segments, start=1):
        blocks.append(
            f"{index}\n{timestamp(segment.start)} --> {timestamp(segment.end)}\n{segment.text.strip()}\n"
        )
    return "\n".join(blocks)


provider, transcript = transcribe("episode.mp3")
open("episode.srt", "w", encoding="utf-8").write(to_srt(transcript.segments))
  • Re-open the file for each attempt; a stream can only be read once.
  • Record which provider served each request. A sudden shift to the backup is your earliest warning of a problem.
  • Check the backup's own limits (file size, formats, rate limits) and keep its key funded.

Guide

Uploads from your app

Users upload to your backend; your backend forwards the file to Cueito and returns the text. The key stays on your server, and you can check who the user is before spending credits.

// app/api/transcribe/route.ts
import OpenAI from "openai";

const cueito = new OpenAI({
  apiKey: process.env.CUEITO_API_KEY,
  baseURL: process.env.CUEITO_BASE_URL ?? "https://api.cueito.com/v1",
  timeout: 150_000,
});

const MAX_BYTES = 25 * 1024 * 1024;

export async function POST(request: Request) {
  // Authenticate your own user here before spending credits.
  const form = await request.formData();
  const file = form.get("file");
  if (!(file instanceof File) || file.size === 0) {
    return Response.json({ error: "Attach an audio file as 'file'." }, { status: 400 });
  }
  if (file.size > MAX_BYTES) {
    return Response.json({ error: "Audio must be 25 MB or smaller." }, { status: 413 });
  }

  try {
    const result = await cueito.audio.transcriptions.create({ model: "wapi-v1", file });
    return Response.json({ text: result.text });
  } catch (error) {
    const status = error instanceof OpenAI.APIError ? (error.status ?? 502) : 502;
    return Response.json({ error: "Transcription failed. Please try again." }, { status });
  }
}

Keep the filename

When you forward a file, pass its original name (or one with the right extension). A blob called blob with no extension returns unsupported_format.

Guide

Voice notes in the browser

Record with MediaRecorder, upload to the backend route above, show the text. Chrome and Firefox record webm; Safari records mp4, which you send with a .m4a name.

// Records the microphone and sends it to YOUR backend (never straight to the API).
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
const mimeType = MediaRecorder.isTypeSupported("audio/webm") ? "audio/webm" : "audio/mp4";
const recorder = new MediaRecorder(stream, { mimeType });
const chunks = [];

recorder.ondataavailable = (event) => chunks.push(event.data);
recorder.onstop = async () => {
  stream.getTracks().forEach((track) => track.stop());
  const blob = new Blob(chunks, { type: mimeType });
  const form = new FormData();
  form.append("file", blob, mimeType === "audio/webm" ? "note.webm" : "note.m4a");

  const response = await fetch("/api/transcribe", { method: "POST", body: form });
  const { text, error } = await response.json();
  document.querySelector("#transcript").textContent = text ?? error;
};

recorder.start();
// ...later, when the user clicks stop:
// recorder.stop();
  • A one-minute voice note is well under 1 MB, so size limits don't come into it.
  • Pass the user's language if your app knows it; detection is automatic otherwise.
  • Show a spinner: short notes usually come back in a few seconds.

Guide

Subtitles for video

Extract a small audio track, ask for srt or vtt, and attach it to the video. Use the translations endpoint to produce English subtitles for a video in another language.

# 1. Pull a small mono audio track out of the video (about 50 minutes fits in 25 MB)
ffmpeg -i lecture.mp4 -vn -ac 1 -ar 16000 -b:a 64k lecture.mp3

# 2. Ask for SubRip (or vtt) directly
curl https://api.cueito.com/v1/audio/transcriptions \
  -H "Authorization: Bearer $CUEITO_API_KEY" \
  -F file=@lecture.mp3 \
  -F model=wapi-v1 \
  -F response_format=srt \
  -o lecture.srt

# 3a. Ship lecture.srt next to the video, or
# 3b. burn the subtitles into the picture
ffmpeg -i lecture.mp4 -vf subtitles=lecture.srt -c:a copy lecture.subtitled.mp4

# English subtitles for a non-English video: use /audio/translations instead
curl https://api.cueito.com/v1/audio/translations \
  -H "Authorization: Bearer $CUEITO_API_KEY" \
  -F file=@lecture.mp3 -F model=wapi-v1 -F response_format=vtt -o lecture.en.vtt

Guide

Meeting notes

Transcribe the recording with timestamps, then pass the text to the language model you already use for summaries and action items. Putting attendee names and project names in prompt makes them come back spelled correctly.

from openai import OpenAI

cueito = OpenAI(api_key=os.environ["CUEITO_API_KEY"], base_url="https://api.cueito.com/v1")

with open("standup-2026-11-28.m4a", "rb") as audio:
    transcript = cueito.audio.transcriptions.create(
        model="wapi-v1",
        file=audio,
        # Names and product words in the prompt come back spelled correctly.
        prompt="Attendees: Neha, Rohan, Farah. Projects: Orbio Pay, Atlas, Q4 launch.",
        response_format="verbose_json",
    )

# Keep the timestamps so every action item can link back to the moment it was said.
lines = [f"[{int(s.start // 60):02}:{int(s.start % 60):02}] {s.text.strip()}"
         for s in transcript.segments]
timestamped = "\n".join(lines)

# Hand the text to whichever LLM you use for summaries and action items.
notes = summarise_with_your_llm(
    "Write meeting notes with decisions and action items (owner, due date). "
    "Cite the [mm:ss] timestamp for each item.\n\n" + timestamped
)

Guide

Long recordings

For audio over 25 MB, or long enough to hit job_timeout, split it into chunks, transcribe each, and shift the timestamps by where each chunk starts. Passing the end of the previous chunk as prompt keeps spelling and sentences consistent across the joins.

# Split a 3-hour recording into 10-minute chunks without re-encoding
ffmpeg -i townhall.mp3 -f segment -segment_time 600 -c copy chunk_%03d.mp3

Chunks of about 10 minutes work well. Process them in parallel up to your concurrency limit to finish faster, then sort by offset.

Guide

Batch processing

Transcribing a folder of calls or an archive of episodes? Run as many workers as your key's concurrent job limit, let the SDK retry 429s, and write each result as it finishes so a re-run picks up where it stopped.

from concurrent.futures import ThreadPoolExecutor, as_completed
from pathlib import Path

# Match your key's concurrent job limit (2 by default). More threads only earn 429s.
MAX_PARALLEL = 2

client = OpenAI(api_key=os.environ["CUEITO_API_KEY"], base_url="https://api.cueito.com/v1",
                max_retries=4, timeout=150)

def work(path: Path) -> tuple[Path, str]:
    with path.open("rb") as audio:
        text = client.audio.transcriptions.create(model="wapi-v1", file=audio).text
    path.with_suffix(".txt").write_text(text, encoding="utf-8")
    return path, text

files = [p for p in Path("calls").glob("*.mp3") if not p.with_suffix(".txt").exists()]
with ThreadPoolExecutor(MAX_PARALLEL) as pool:
    futures = [pool.submit(work, path) for path in files]
    for future in as_completed(futures):
        try:
            path, text = future.result()
            print("done", path.name, len(text), "chars")
        except Exception as error:  # log and continue; re-running skips finished files
            print("failed", error)

Guide

Better accuracy

  • Set the language when you know it (hi for Hindi, en for English). Detection works, but a fixed language avoids a wrong guess on short or noisy clips.
  • Use prompt for vocabulary: brand names, people, acronyms and jargon. A short comma-separated list works.
  • Keep temperature at 0 for faithful transcripts.
  • Clean audio beats loud audio: one speaker per mic, little background music. Mono 16 kHz is plenty.
  • Drop silence: skip segments with high no_speech_prob.
curl https://api.cueito.com/v1/audio/transcriptions \
  -H "Authorization: Bearer $CUEITO_API_KEY" \
  -F file=@support-call.wav \
  -F model=wapi-v1 \
  -F language=hi \
  -F prompt="Orbio, Cueito, UPI, GSTIN, refund, invoice number"

Help

Troubleshooting

SymptomLikely cause and fix
unsupported_formatThe filename has no extension, or the extension doesn't match the content. Send a real name such as audio.webm.
invalid_api_keyMissing 'Bearer ' prefix, whitespace in the env var, a revoked key, or calling with a key from another provider.
model_not_foundThe code still sends whisper-1 or a Groq model name. Use wapi-v1.
not_foundThe base URL is missing /v1. It must be https://api.cueito.com/v1.
Request hangs, then client timeoutYour HTTP client times out before the API does. Raise it to 150 s.
429Too many files in parallel for this key. Limit concurrency to your plan's job limit.
402Wallet empty or the key's monthly spend limit was reached. Check Billing and the key's settings.
CORS error in the browserCalls must come from your server, not the browser. See Uploads from your app.
Odd spellings of namesAdd them to prompt, and set language.

Still stuck? Contact support with the x-request-id from the failed response.

Help

Production checklist

  • The API key lives in a server-side secret, never in client code or git.
  • Separate keys for production and staging, with monthly spend limits.
  • Client timeout of at least 150 seconds.
  • Retries with backoff for 429 and 5xx; no retries for other 4xx.
  • Concurrency capped at your key's job limit.
  • Uploads checked for size and type before forwarding.
  • x-request-id logged on every failure.
  • Low-balance alerts: watch for 402s, and top up before the wallet runs dry.
  • Optional: a fallback provider behind a circuit breaker.