Use GET /v1/models to discover which models are available to the API and what
they cost. Pass ?type=image or ?type=video to filter.
curl "https://api.budgetpixel.com/v1/models?type=video" \
-H "Authorization: Bearer $BUDGETPIXEL_API_KEY"
{
"data": [
{ "name": "flux-2-klein", "type": "image", "credits_per_generation": 10 },
{ "name": "seedance-1.5-pro", "type": "video", "credits_per_generation": 0,
"credits_per_unit": 60, "unit_type": "second" }
]
}
Reading the response
| Field | Meaning |
|---|
name | The model id to pass as modelName (images) or model (videos). |
type | image or video. |
credits_per_generation | Flat per-generation cost (images). |
credits_per_unit | Per-unit cost for metered models (e.g. per second of video). |
unit_type | The unit credits_per_unit applies to (e.g. second). |
The model catalog is the source of truth for what’s available. A request naming a
model that isn’t API-available returns 400 model_not_available — list the catalog
to see current options.
Requesting a model
{ "prompt": "...", "modelName": "flux-2-klein", "numImages": 1 }