Skip to content

Choose a model

Find a model, read its input schema and send only the fields it accepts.

Model catalog

Each model has a slug and an input schema. GET /api/v1/models lists them; GET /api/v1/models/{slug} returns one. The OpenAPI document exposes each input schema under x-models.

Browse models

Input validation

Only the fields listed for a model are accepted. Unknown fields, missing required fields and values outside the allowed options are rejected with 400 INVALID_MODEL_INPUT.

Read prices

GET /api/v1/prices returns customer rates in USD micro-units. Check enabled before submitting. With rateCard, match one rule by when, then multiply its priceMicros by quantityField when present; otherwise use the flat priceMicros. Apply model input defaults first. Send the final task quote as expectedPriceMicros to refuse a changed price.

See current prices