Transcribe speech (speech-to-text)
speech_transcribeStart transcribing a recording (speech to text) with an AIMLAPI speech-to-text model, from a URL the platform downloads. To read text aloud use speech_generate. Billed to your AIMLAPI balance at the model's price, usually per second of audio (see model_get); the job result does not include the cost, which the AIMLAPI dashboard and GET /v2/logs show. Returns at once with job_id, kind, model and status "processing": check it with job_status and, once it is "complete", fetch the transcript with job_result — result.text, marked untrusted: true because it is the recording's content; job_result with include_raw: true adds the provider document (speakers, timestamps) as result.raw. Long recordings give large documents. The same request again within 24 hours returns the job already started instead of a second billed transcription; send a new idempotency_key to transcribe again on purpose.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"audio_url": "<audio_url>"
},
"name": "speech_transcribe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | AIMLAPI speech-to-text model id or alias, e.g. "deepgram/nova-2-general" or "openai/gpt-4o-transcribe". Find others with jev_model_search (kind "stt"). | |
| params | No | Model-specific request fields, sent to the model as they are, e.g. { "language": "en" }, or { "diarize": true } for Deepgram models. Field names and allowed values differ by model: see its API reference on docs.aimlapi.com. | |
| audio_url | Yes | URL of the recording; the platform downloads it (sent as the request `url`). A public URL, or a speech_generate output. | |
| idempotency_key | No | Optional key that makes a resubmit safe: the same key returns the same job without starting (or charging) a second generation. Without a key, the same request within 24 hours is deduplicated the same way; send a new key to generate again on purpose. |