Skip to main content

Available Models

The Agent API supports direct access to models from multiple providers. All models are accessed directly from first-party providers with transparent token-based pricing. Pricing rates are updated monthly and reflect direct first-party provider pricing with no markup. All charges are based on actual token consumption, and every API response includes exact token counts so you know your costs per request. The Service tiers column lists optional non-default tiers. An em dash means the model uses default processing only.
Looking for pre-configured model setups? See Presets — optimized for specific use cases.

Anthropic

Claude Opus (highest reasoning), Sonnet (balanced), and Haiku (fastest, cheapest).
Requests that use an anthropic/* model must include max_output_tokens. If omitted, the API returns HTTP 400 with validation failed: max_output_tokens is required when using Anthropic models. max_output_tokens is a shared Agent API parameter, but this required condition applies only to Anthropic models.

Service tiers

Omit service_tier, or set it to auto or default, to use default processing. flex uses lower-cost, best-effort capacity at 0.5× the listed token prices. priority uses higher-priority processing at 2× the listed token prices. fast is accepted as an alias for priority. When you provide model or models, the Agent API applies flex or priority only if the selected model—or every model in a fallback list—supports that tier. An unsupported tier does not cause the request to be rejected; the API ignores service_tier and uses default processing. Requests that specify only a preset or profile retain the tier until the model is resolved. The response’s service_tier field reports the tier that served the request.
Not all third-party models support all features (e.g., reasoning, tools). Check model documentation for specific capabilities.

Estimate your cost

Using a Model

See Your Costs in Real-Time: Every response includes a usage field with exact input tokens, output tokens, and cache read tokens. Calculate your cost instantly using the pricing table above.

Model Fallback

For high-availability applications, you can specify multiple models in a fallback chain. When one model fails or is unavailable, the API automatically tries the next model in the chain.

Model Fallback Chain

Learn how to use model fallback chains to ensure high availability and reliability by automatically trying multiple models when one fails.
Example:
For detailed examples, pricing information, and best practices, see the Model Fallback documentation.

Next Steps

Web Search

Equip your model with web search for source-grounded context.

Prompt Guide

Write prompts that get the most out of the Agent API.

Output Control

Shape responses with structured outputs and JSON schemas.

Finance Search

Query market data, filings, and ticker-level information.