Skip to main content
POST
Estimate

Authorizations

Authorization
string
header
required

API key from Settings > Developer > REST API

Headers

Moda-Version
enum<string>
default:2026-05-01

Calendar-dated API version pin. New integrations should pin 2026-05-01 to opt into the newest response shapes. For back-compat the server also accepts requests with no header and resolves them to the current default (today: 2026-04-12); that default advances on each sunset date. Any unsupported value returns 400 unsupported_version.

Available options:
2026-04-12,
2026-05-01
Example:

"2026-05-01"

Body

application/json
model
string
required

A model id from /v1/inference/models, such as anthropic/claude-haiku-5-5.

input_tokens
integer
required

The most input tokens the call can send, images included.

Required range: 0 <= x <= 2000000
max_output_tokens
integer
required

The call's output cap (max_tokens).

Required range: 0 <= x <= 128000
service_tier
enum<string> | null

The tier the call asks for; the model's default tier when omitted, as a call's is.

Available options:
default,
priority

Response

Successful Response

data
InferenceEstimateData · object
required