---
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: "Credits and pricing"
description: "How prices work: always estimate first, then order with the same value."
---
# Credits and pricing

The API uses the same credits and the same prices as the Cook Studio app. Prices can change, so they are never hard-coded in your integration.

## Estimate, then order

1. Call [`/videos/estimate`](https://cookstudio.ai/docs/reference/estimate-video) or [`/generations/estimate`](https://cookstudio.ai/docs/reference/estimate-generation) with the same fields you will order with. Nothing is charged.
2. Show or check the `credits` value.
3. Send it back as `credits` when you order.

If the price changed in between, you get `409 price_changed` with the new value in the error, and nothing is charged:

```json
{"error": {"code": "price_changed", "message": "The price changed since your estimate. Estimate again and send the new `credits` value.", "credits": 125}}
```

## What changes the price

- **Videos:** engine, length, music, reference video and the brand outro discount. Subtitles, sound effects and source links are free.
- **Generations:** the model, then seconds (video, music), count (images) or text length (voiceover). Some video models also price by resolution.

## Reservation and refunds

Credits are reserved when you order, settled when the job finishes and refunded automatically if it fails. A failed generation is refunded in full. Cancelling a video at an approval stop refunds the unused part.

## Buying credits

Credits come with a [plan](https://cookstudio.ai/pricing) or a top-up in the app. `GET /me` returns your balance.

Canonical: https://cookstudio.ai/docs/credits-and-pricing
