Skip to main content
POST

Overview

Returns the exact credit cost for a generation with the given parameters, without submitting a job and without debiting credits. Useful to display a price preview before letting the user submit.

Authentication

This endpoint requires API key authentication. Include your API key in the Authorization header.

Request Body

string
required
Model identifier (e.g. veo-3.1).
integer
Duration in seconds (e.g. 8). Used by video models. See the model’s supported durations via Get Model.
string
Resolution (e.g. 720p, 1080p, 2K).
object
Custom model settings such as generateAudio. Some settings affect cost — see the model page.
number
Number of reference images. Used by models with per-image pricing (e.g. reve-fast).
number
default:"1"
Number of variations. Multiplies cost_per_generation.

Response

string
number
Credits for one generation.
number
cost_per_generation × generation_count.
string
Always credits.
number
object
Present only when the engine coerced one of your inputs to a different supported value (e.g. an unsupported duration snapped to the nearest valid one). Each field appears only if it differs from what you sent. Omitted entirely when nothing was changed.

Example