API docsAPI reference

Quote

Same body as creating a generation. Returns every available provider sorted by price, plus the ones that cannot serve the request and why.

POST/api/v1/quotePublic · No API key

Request

cURL
curl 'https://01router.com/api/v1/quote' \
  -H "Content-Type: application/json" \
  -d '{
  "model": "seedance-2.5",
  "input": {
    "prompt": "A red fox running through fresh snow, cinematic"
  }
}'

Input parameters

JSON body
model
stringRequired

Model slug from the catalog. Project keys may use a project-specific model slug.

input
objectRequired

Model-specific input object. See the selected model reference for required fields, defaults and limits.

provider
stringOptional

Optional provider slug. Omit for automatic routing; project settings may pin the provider.

project
stringOptional

Optional project ID. Use its published model catalog and routing configuration.

Response example

200 · application/json
{
  "model": "seedance-2.5",
  "type": "video",
  "input": {
    "prompt": "A red fox running through fresh snow, cinematic"
  },
  "providers": [
    {
      "provider": "01router",
      "provider_name": "01router",
      "unit": "second",
      "quantity": 5,
      "price_usd": 1,
      "original_price_usd": null,
      "credits": 100
    }
  ],
  "unavailable": []
}

Responses are illustrative. IDs, usage, prices and results depend on the actual request.

Response fields

model
string

Model slug from the catalog. Project keys may use a project-specific model slug.

input
object

Model-specific input object. See the selected model reference for required fields, defaults and limits.

providers
array

Available providers sorted by price, with unit, quantity, price_usd, original_price_usd and credits.

unavailable
array

Rejected providers and the reason each cannot serve the request.

Use with AI

Give your coding assistant the documentation index or the full API reference, including live model parameters.