curl --request POST \
--url https://api.importly.io/transcribe \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"
}
'{
"success": true,
"data": {
"jobId": "95be812f-4a2c-410a-9fcb-3ca5b445cc44",
"status": "queued",
"message": "Transcription has been queued for processing."
}
}Transcribe media
Transcribe any media URL: source captions, built-in AI speech-to-text, or your own provider key; timestamped segments.
curl --request POST \
--url https://api.importly.io/transcribe \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"
}
'{
"success": true,
"data": {
"jobId": "95be812f-4a2c-410a-9fcb-3ca5b445cc44",
"status": "queued",
"message": "Transcription has been queued for processing."
}
}provider, Importly uses the video’s own captions ($0.003). Setting provider (or providerOptions) skips captions and always runs speech-to-text. For a walkthrough, see Transcripts.
One call: mode and wait
Send"mode": "auto" and "wait": true to get a transcript for any video in a single request. Importly uses the captions when there are some and built-in speech-to-text when there aren’t, and returns the finished transcript in the response, in the same shape as GET /transcribe/status.
mode | Source | When there are no captions |
|---|---|---|
| Omitted | Captions, or speech-to-text if you set provider or providerOptions | Fails with TRANSCRIPTION_PROVIDER_REQUIRED and a quote, at no charge |
auto | Captions first, speech-to-text when there are none | Runs speech-to-text: importly, or the provider you set |
captions | Captions only | Fails with TRANSCRIPTION_PROVIDER_REQUIRED and a quote, at no charge |
ai | Always speech-to-text: importly, or the provider you set | Runs speech-to-text |
maxCostDollars caps the speech-to-text charge on the auto fallback too: if the estimate is over it, the job fails with MAX_COST_EXCEEDED instead of running.
wait holds the request for up to that many seconds (true means 30, the most is 60). Captions are usually ready in a few seconds. If the job is still running when the time is up, the response has the jobId and status, and you finish with the status endpoint or a webhook, as without wait. Leaving out mode keeps the behavior requests had before these options existed.
Provider options
providerOptions (on Import: transcriptOptions) is passed to your provider, so it uses that provider’s own option names. Use it with assemblyai, deepgram, or openai, and always set provider too: options alone skip captions without picking a provider, so the job fails with TRANSCRIPTION_PROVIDER_REQUIRED (on Import, the transcript is skipped).
provider | Where the options go | Example |
|---|---|---|
assemblyai | Fields of the transcript request body | { "speaker_labels": true } |
deepgram | Query parameters of /v1/listen; model defaults to nova-2 | { "model": "nova-3", "diarize": true } |
openai | Only model (default whisper-1), language, prompt, and temperature | { "model": "whisper-1", "prompt": "Importly, MCP" } |
language is sent under each provider’s own name: Deepgram language (also for importly), AssemblyAI language_code, OpenAI language. If providerOptions already sets that name, or turns on the provider’s language detection (Deepgram detect_language, AssemblyAI language_detection), your value is used and language isn’t added.
Importly sets where the provider gets the audio and where it sends the result, so options that would change either are dropped (matched case-insensitively): audio_url, webhook_url, webhook_auth_header_name, and webhook_auth_header_value for AssemblyAI, and callback and callback_method for Deepgram. With provider: "importly", providerOptions is ignored.
Poll the result with GET /transcribe/status, or receive it by webhook.Authorizations
Body
Where the transcript comes from. auto: the media's captions, or speech-to-text when it has none.
captions: captions only; with none the job fails with TRANSCRIPTION_PROVIDER_REQUIRED and a quote, at
no charge. ai: always speech-to-text. With auto and ai, speech-to-text is the built-in importly
unless you set provider. When omitted: captions, or speech-to-text if you set provider or providerOptions.
auto, captions, ai "auto"
Options passed through to your provider under its own option names, e.g. { "speaker_labels": true }
for AssemblyAI or { "model": "nova-3" } for Deepgram. Options that change where the provider reads audio
or sends results are dropped. Ignored with importly. Always set provider too.
Cap for speech-to-text, built in or with your own key, including the auto fallback. If the estimated charge exceeds it, the job fails with
MAX_COST_EXCEEDED and the estimate instead of running. With built-in speech-to-text, if the duration
can't be determined up front, the cap is charged and the unused part refunded afterward. The charge is all-in, so the cap covers the audio download too.