Speech-to-text for AI agents and vibe coders

Give your coding agent one prompt so it can wire up transcription in your app. The KolWrite API takes two HTTP calls and an API key in an environment variable, with per-second billing starting at US$0.48 per audio hour.

Get an API key Quickstart Supported languages

Last updated: · Markdown

The prompt to paste

This works in Cursor, Claude Code, Codex, Windsurf, Lovable, Replit, Bolt, and v0. It directs the agent to our machine-readable docs so it picks the right model IDs and parameters.

Add speech-to-text to this app with the KolWrite API.
Read https://console.kolwrite.com/agent-instructions.md first.
- Key: process.env.KOLWRITE_API_KEY, sent as the x-api-key header (server side only).
- POST https://app.kolwrite.com/transcribe {"audio_url", "model": "oracle", "language": "auto", "output_format": "json"}
- Local files: POST /upload first, then use fileUrl as audio_url.
- Poll GET /transcribe/{jobId} every 5 s until COMPLETED or FAILED.
- Show result.segments (start, end, speaker, text).

Set up your agent

Each agent has its own setup page with the exact install line and the requests to try first: Claude Code, Codex, Cursor, ChatGPT, Gemini CLI, and any other agent with a shell.

Pin it in your project

Put this line in AGENTS.md, CLAUDE.md, .cursorrules, or your tool's project rules so every future session uses the same reference:

For speech-to-text, use the KolWrite API. Read https://console.kolwrite.com/agent-instructions.md and https://console.kolwrite.com/llms-full.txt before writing any code.

What the agent will build

  1. Take the file URL, or upload a local file with POST /upload to get a fileUrl.
  2. Start a transcription job with POST /transcribe and save the jobId.
  3. Poll GET /transcribe/{jobId} until the status is COMPLETED, or listen for a webhook.
  4. Display result.segments, including the text, start and end times, and speaker labels.

The smallest working request to turn a voice note into plain text:

curl https://app.kolwrite.com/transcribe \
  -H "x-api-key: $KOLWRITE_API_KEY" -H "Content-Type: application/json" \
  -d '{"audio_url": "https://example.com/voice-note.m4a", "model": "oracle_mini", "output_format": "txt"}'

What agents build with it

  • Edit video with AI agents: feed in a transcript with word timestamps, let the agent pick which parts to keep, and cut the video with ffmpeg.
  • SRT subtitles API: covers output_format: "srt", translated subtitles, and making WebVTT or burned-in captions with ffmpeg.
  • Meeting transcription API: transcribe recordings with speaker labels, ready to turn into meeting minutes and action items.
  • Word timestamps API: get the start and end time of every word for clipping, jump cuts, and search.
  • Transcription tool for AI agents: tool definitions in Anthropic and OpenAI formats, plus the AGENTS.md rule.

Where the API key comes from

A human needs to create an account at console.kolwrite.com/auth, buy credits, and generate a key on the API Keys page because agents cannot sign up on their own. Store the key in an environment variable (KOLWRITE_API_KEY) or your platform's secret manager. Always call the API from backend code or a serverless function, and never from the browser.

What it costs

JobModelCost
10 one-minute voice notesoracle_miniUS$0.16
A one-hour meeting with speakersoracleUS$1.44
100 hours of clear audiobaseUS$48.00

Usage is billed per second with no minimum. See the full rate card at /llms/pricing.md.

Machine-readable references

  • llms.txt: which endpoint and model to use for each task.
  • llms-full.txt has the complete reference in one Markdown file.
  • openapi.json: the OpenAPI 3.1 spec for code generators and tool definitions.
  • agent-instructions.md: the agent prompt, model IDs, and common pitfalls.
  • Every page on this site also has a Markdown version. Just add .md to its address.

Questions and answers

Can an AI agent create a KolWrite account or API key?

No. A person has to sign up and create the key, and the agent reads it from an environment variable.

Which model should an agent choose by default?

Use oracle for production audio, base for the lowest cost on clear audio, and oracle_mini when you need low-cost translation. Always pass the model parameter explicitly, because it otherwise defaults to the legacy core model.

Can an AI agent edit video with KolWrite?

Yes, if the agent can run shell commands. It fetches a transcript with word timestamps from the API, decides which segments to keep, and cuts the video using ffmpeg. See the guide for the code.

Is there an MCP server or an SDK?

Yes, an MCP server: kolwrite-mcp runs with npx -y https://console.kolwrite.com/mcp/kolwrite-mcp-0.1.0.tgz in Claude Code, Codex, Cursor, Gemini CLI and VS Code (setup per agent at /agents/, install lines in agent-instructions.md). There is also a one-file Python client, kolwrite.py, and a tool definition for your own agent. No SDK package is on npm or PyPI yet; openapi.json works with code generators.

Can I call the API from a front-end only app built with Lovable, Bolt or v0?

Do not put the key in the browser. Call KolWrite from the platform's server functions or edge functions so the key stays secret.