Path Parameters
Model slug, e.g. dall-e-3, kling-v2.1
Body 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
curl -X POST https://neuralbox.top/api/v2/models/dall-e-3/calculate-price \
-H "Authorization: Bearer nb_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"params": {"size": "1792x1024", "quality": "hd"}, "count": 1}'
Response
{
"token_cost": 13,
"min_token_cost": 5,
"max_token_cost": 13,
"pricing_type": "matrix"
}
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) |
Always call this before generating expensive assets — video and HD images can cost significantly more than the base price.
See List Models for all available slugs.