Calculate Price
Models
Calculate Price
Estimate exact token cost before generating
POST
Calculate Price
Path Parameters
Model slug, e.g.
dall-e-3, kling-v2.1Body Parameters
Generation parameters (same as you’d pass to
/generate). Used to compute variable pricing based on size, quality, duration, etc.Number of generations to calculate for.
Request Example
Response
Pricing Types
pricing_type | Description |
|---|---|
fixed | Same cost regardless of params |
matrix | Varies by size/quality (DALL-E 3, GPT Image) |
per_second | Scales with video duration (Kling, Luma) |
per_point | Based on MidJourney points (MidJourney) |

