Get started
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
- Call
/videos/estimateor/generations/estimatewith the same fields you will order with. Nothing is charged. - Show or check the
creditsvalue. - Send it back as
creditswhen you order.
If the price changed in between, you get 409 price_changed with the new value in the error, and nothing is charged:
{"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 or a top-up in the app. GET /me returns your balance.