---
agent:
  instructions: "Use this search API to find relevant Cook Studio content (product, pricing, FAQ, blog articles, example videos) with keywords or natural-language queries instead of crawling pages. Results are returned in Markdown."
  endpoint: "https://cookstudio.ai/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "gpt-4o-mini-tts"
description: "gpt-4o-mini-tts through the Cook Studio API: allowed settings, price estimate and example request."
---
# gpt-4o-mini-tts

The prompt is the exact text to read aloud. The price follows its length, so estimate with the final text (or send `characters` to `/generations/estimate`).

|  |  |
| --- | --- |
| Model id | `gpt-4o-mini-tts` |
| Type | Voiceover |
| Endpoint | `POST /generations` |
| Available now | Yes |
| Priced by | characters of `prompt` |
| `prompt` | up to 20,000 characters |

## Price

Prices are the same as in the app and can change, so they are not listed here. Ask for the current price first; nothing is charged:

```bash
curl https://app.cookstudio.ai/api/v1/generations/estimate -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"model":"gpt-4o-mini-tts","prompt":"Welcome back to the channel. Today we look at the strangest shipwreck ever found."}'
```

## Generate

```bash
curl https://app.cookstudio.ai/api/v1/generations -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"model":"gpt-4o-mini-tts","prompt":"Welcome back to the channel. Today we look at the strangest shipwreck ever found."}'
# → 201 {"id": "…", "object": "generation", "model": "gpt-4o-mini-tts", "status": "running", "credits": …}
```

Then poll [`GET /generations/{id}`](https://cookstudio.ai/docs/reference/get-generation) until `status` is `done` and download the file from [`/generations/{id}/file`](https://cookstudio.ai/docs/reference/get-generation-file). A failed generation is refunded in full.

The allowed values on this page are read from the same list the API checks against, and `GET /models` returns them live.

Canonical: https://cookstudio.ai/docs/models/gpt-4o-mini-tts
