Azure OpenAI
Azure OpenAI is available on the Spanway gateway through the azure/ model prefix. You register an Azure OpenAI model once in the gateway's config.yaml (or through the Admin UI), and every application then calls it through the gateway's OpenAI-compatible API with a Spanway virtual key. The provider credential stays on the gateway, and every request is authenticated, rate limited, logged and costed in the same way as any other provider.
The gateway translates requests and responses for Azure OpenAI natively, so provider specific parameters and errors are mapped to the OpenAI format for you.
Supported endpoints
The gateway's endpoint support matrix lists the following endpoints for Azure OpenAI. Each link explains the request shape and the gateway features that apply to that endpoint.
- OpenAI Chat Completions API (
/chat/completions) - Anthropic Messages API (
/messages) - OpenAI Responses API (
/responses) - OpenAI Embeddings API (
/embeddings) - OpenAI Images Generations API (
/images/generations) - OpenAI Audio Transcription API (
/audio/transcriptions) - OpenAI Text-to-Speech API (
/audio/speech) - OpenAI Moderations API (
/moderations) - OpenAI Batches API (
/batches) - A2A (Agent-to-Agent) protocol for agent communication (
/a2a) - Google Interactions API (
/interactions) - OpenAI Vector Stores Search API (
/vector_stores/search) - OpenAI Assistants API (
/assistants) - OpenAI Fine-Tuning API (
/fine_tuning) - OpenAI Completions API (
/completions)
Model types
The bundled price map lists 310 Azure OpenAI models across these modes: Embedding, Responses, Chat, Realtime, Transcription, Text to speech, Image generation, Video. The mode decides which gateway endpoint a model is meant for, and it is also used by the gateway's health checks to send the right kind of test request.
Environment variables
The Azure OpenAI integration reads the following environment variables. Variables marked as required are the ones the gateway's environment validation checks for this provider. You can also pass any of these values directly in spanway_params (for example api_key or api_base), and the per-model value wins over the environment.
| Variable | Required | Purpose |
|---|---|---|
AZURE_API_BASE | Yes | Overrides the provider base URL |
AZURE_API_VERSION | Yes | API version sent with each request |
AZURE_API_KEY | Yes | Credential the gateway sends to the provider |
AZURE_AD_TOKEN | No | Credential the gateway sends to the provider |
AZURE_SPEECH_API_KEY | No | Credential the gateway sends to the provider |
AZURE_SPEECH_API_BASE | No | Overrides the provider base URL |
AZURE_OPENAI_API_KEY | No | Credential the gateway sends to the provider |
AZURE_AUTHORITY_HOST | No | Overrides the provider base URL |
AZURE_CLIENT_ID | No | Used for token based authentication |
AZURE_TENANT_ID | No | Used for token based authentication |
AZURE_CLIENT_SECRET | No | Credential the gateway sends to the provider |
AZURE_USERNAME | No | Used for token based authentication |
AZURE_PASSWORD | No | Credential the gateway sends to the provider |
AZURE_SCOPE | No | Used for token based authentication |
Reference a variable from config.yaml with the os.environ/ prefix so that the secret never appears in the file itself. Secrets can also come from a secret manager, see secret managers.
Register a model on the gateway
Add an entry to model_list in config.yaml. The model_name is the public name your applications send, and spanway_params.model tells the gateway which provider and upstream model to call.
model_list:
- model_name: gpt-6.1-sol
spanway_params:
model: azure/gpt-6.1-sol
api_key: os.environ/AZURE_API_KEY
api_base: os.environ/AZURE_API_BASE
api_version: os.environ/AZURE_API_VERSION
Start the gateway with this file:
export AZURE_API_BASE="..."
export AZURE_API_VERSION="..."
spanway --config config.yaml
Spanway is in private preview. The container images and Helm charts will be published soon. To request access, write to sales@spanway.ai, and preview customers receive download instructions in their onboarding pack.
To add the model without a restart, call POST /model/new with the same model_name and spanway_params, or use the Models + Endpoints page in the Admin UI. See model management for details.
Call the model through the gateway
Send requests to the gateway's /v1/chat/completions endpoint with a virtual key. The gateway maps the public model name to the Azure OpenAI deployment, translates the request, and returns the response in the OpenAI format.
curl -X POST http://localhost:4000/v1/chat/completions \
-H "Authorization: Bearer $SPANWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6.1-sol",
"messages": [{"role": "user", "content": "Summarize what an AI gateway does in two sentences."}]
}'
The same request works from any OpenAI SDK by setting the base URL to http://localhost:4000 and the API key to a Spanway virtual key. Create keys with POST /key/generate as described in virtual keys.
Models and pricing
The table lists every Azure OpenAI model in the gateway's bundled price map. Prices are shown in US dollars per 1 million tokens, computed from the per-token values the gateway uses for spend tracking. Context window sizes are the provider limits recorded in the same file. Capabilities are the supports_* flags set for each model.
Prices come from the price map bundled with this Spanway build. They are used to calculate the spend recorded for each request, key, team and user. Your negotiated rates may differ, and you can override them per deployment with custom pricing.
Model (model value) | Mode | Max input tokens | Max output tokens | Input per 1M tokens | Output per 1M tokens | Other pricing | Capabilities |
|---|---|---|---|---|---|---|---|
azure/ada | Embedding | 8,191 | $0.1 | $0 | |||
azure/apac/gpt-6.1-sol | Chat | 922,000 | 128,000 | $2.40 | $12.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/chat-latest | Chat | 272,000 | 128,000 | $5.00 | $30.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/codex-mini | Responses | 200,000 | 100,000 | $1.50 | $6.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/command-r-plus | Chat | 128,000 | 4,096 | $3.00 | $15.00 | tools | |
azure/computer-use-preview | Chat | 8,192 | 1,024 | $3.00 | $12.00 | tools, vision, reasoning, structured output | |
azure/container | Chat | ||||||
azure/eu/codex-mini | Responses | $1.65 | $6.60 | ||||
azure/eu/computer-use-preview | Chat | $3.30 | $13.20 | ||||
azure/eu/gpt-4.1 | Chat | $2.20 | $8.80 | ||||
azure/eu/gpt-4.1-mini | Chat | $0.44 | $1.76 | ||||
azure/eu/gpt-4.1-nano | Chat | $0.11 | $0.44 | ||||
azure/eu/gpt-4o-2024-05-13 | Chat | 128,000 | 4,096 | $5.50 | $16.50 | ||
azure/eu/gpt-4o-2024-08-06 | Chat | 128,000 | 16,384 | $2.75 | $11.00 | tools, vision, prompt caching, structured output | |
azure/eu/gpt-4o-2024-11-20 | Chat | 128,000 | 16,384 | $2.75 | $11.00 | tools, vision, structured output | |
azure/eu/gpt-4o-mini-2024-07-18 | Chat | 128,000 | 16,384 | $0.165 | $0.66 | tools, vision, prompt caching, structured output | |
azure/eu/gpt-4o-mini-realtime-preview-2024-12-17 | Realtime | 128,000 | 4,096 | $0.66 | $2.64 | tools, audio in, audio out | |
azure/eu/gpt-4o-realtime-preview-2024-10-01 | Realtime | 128,000 | 4,096 | $5.50 | $22.00 | tools, audio in, audio out | |
azure/eu/gpt-4o-realtime-preview-2024-12-17 | Realtime | 16,000 | 4,096 | $5.50 | $22.00 | tools, audio in, audio out | |
azure/eu/gpt-5 | Chat | $1.38 | $11.00 | ||||
azure/eu/gpt-5-2025-08-07 | Chat | 272,000 | 128,000 | $1.38 | $11.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/eu/gpt-5-codex | Responses | $1.38 | $11.00 | ||||
azure/eu/gpt-5-mini | Chat | $0.275 | $2.20 | ||||
azure/eu/gpt-5-mini-2025-08-07 | Chat | 272,000 | 128,000 | $0.275 | $2.20 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/eu/gpt-5-nano | Chat | $0.055 | $0.44 | ||||
azure/eu/gpt-5-nano-2025-08-07 | Chat | 272,000 | 128,000 | $0.055 | $0.44 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/eu/gpt-5-pro | Responses | $16.50 | $132.00 | ||||
azure/eu/gpt-5.1 | Chat | 272,000 | 128,000 | $1.38 | $11.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/eu/gpt-5.1-chat | Chat | 111,616 | 16,384 | $1.38 | $11.00 | tools, reasoning, prompt caching, structured output | |
azure/eu/gpt-5.1-codex | Responses | 272,000 | 128,000 | $1.38 | $11.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/eu/gpt-5.1-codex-max | Responses | $1.38 | $11.00 | ||||
azure/eu/gpt-5.1-codex-mini | Responses | 272,000 | 128,000 | $0.275 | $2.20 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/eu/gpt-5.2 | Chat | $1.93 | $15.40 | ||||
azure/eu/gpt-5.2-chat | Chat | 111,616 | 16,384 | $1.93 | $15.40 | tools, prompt caching, structured output | |
azure/eu/gpt-5.2-codex | Responses | $1.93 | $15.40 | ||||
azure/eu/gpt-5.2-pro | Responses | $23.10 | $184.80 | ||||
azure/eu/gpt-5.3-chat | Chat | 111,616 | 16,384 | $1.93 | $15.40 | tools, prompt caching, structured output | |
azure/eu/gpt-5.3-codex | Responses | $1.93 | $15.40 | ||||
azure/eu/gpt-5.4 | Chat | 922,000 | 128,000 | $2.75 | $16.50 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/eu/gpt-5.4-2026-03-05 | Chat | 922,000 | 128,000 | $2.75 | $16.50 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/eu/gpt-5.4-mini | Chat | $0.825 | $4.95 | ||||
azure/eu/gpt-5.4-nano | Chat | $0.22 | $1.38 | ||||
azure/eu/gpt-5.4-pro | Responses | $33.00 | $198.00 | ||||
azure/eu/gpt-5.5 | Chat | 922,000 | 128,000 | $5.50 | $33.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/eu/gpt-5.5-2026-04-23 | Chat | 922,000 | 128,000 | $5.50 | $33.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/eu/gpt-5.5-2026-04-24 | Chat | 922,000 | 128,000 | $5.50 | $33.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/eu/gpt-5.6 | Chat | 922,000 | 128,000 | $4.40 | $22.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/eu/gpt-5.6-luna | Chat | 922,000 | 128,000 | $0.22 | $1.32 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/eu/gpt-5.6-sol | Chat | 922,000 | 128,000 | $4.40 | $22.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/eu/gpt-5.6-terra | Chat | 922,000 | 128,000 | $2.20 | $13.20 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/eu/gpt-6-astra | Chat | 922,000 | 128,000 | $12.00 | $60.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/eu/gpt-6-luna | Chat | 922,000 | 128,000 | $0.12 | $0.6 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/eu/gpt-6-sol | Chat | 922,000 | 128,000 | $2.40 | $12.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/eu/gpt-6.1-sol | Chat | 922,000 | 128,000 | $2.40 | $12.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/eu/o1-2024-12-17 | Chat | 200,000 | 100,000 | $16.50 | $66.00 | tools, vision, prompt caching | |
azure/eu/o1-mini | Chat | $1.21 | $4.84 | ||||
azure/eu/o1-mini-2024-09-12 | Chat | 128,000 | 65,536 | $1.21 | $4.84 | tools, prompt caching | |
azure/eu/o1-preview | Chat | 128,000 | 32,768 | $16.50 | $66.00 | prompt caching | |
azure/eu/o3-2025-04-16 | Chat | 200,000 | 100,000 | $2.20 | $8.80 | ||
azure/eu/o3-deep-research | Chat | $11.00 | $44.00 | ||||
azure/eu/o3-mini-2025-01-31 | Chat | 200,000 | 100,000 | $1.21 | $4.84 | reasoning, prompt caching | |
azure/eu/o4-mini-2025-04-16 | Chat | 200,000 | 100,000 | $1.21 | $4.84 | ||
azure/eu/text-embedding-3-large | Embedding | $0.143 | |||||
azure/eu/text-embedding-3-small | Embedding | $0.022 | |||||
azure/eu/text-embedding-ada-002 | Embedding | $0.11 | |||||
azure/global-standard/gpt-4o-2024-08-06 | Chat | 128,000 | 16,384 | $2.50 | $10.00 | tools, vision, prompt caching, structured output | |
azure/global-standard/gpt-4o-2024-11-20 | Chat | 128,000 | 16,384 | $2.50 | $10.00 | tools, vision, structured output | |
azure/global-standard/gpt-4o-mini | Chat | 128,000 | 16,384 | $0.15 | $0.6 | tools, vision, structured output | |
azure/global/gpt-4o-2024-08-06 | Chat | 128,000 | 16,384 | $2.50 | $10.00 | tools, vision, prompt caching, structured output | |
azure/global/gpt-4o-2024-11-20 | Chat | 128,000 | 16,384 | $2.50 | $10.00 | tools, vision, prompt caching, structured output | |
azure/global/gpt-5.1 | Chat | 272,000 | 128,000 | $1.25 | $10.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/global/gpt-5.1-codex | Responses | 272,000 | 128,000 | $1.25 | $10.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/global/gpt-5.1-codex-mini | Responses | 272,000 | 128,000 | $0.25 | $2.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-3.5-turbo | Chat | 4,097 | 4,096 | $0.5 | $1.50 | tools | |
azure/gpt-4 | Chat | 8,192 | 4,096 | $30.00 | $60.00 | tools | |
azure/gpt-4-32k | Chat | 32,768 | 4,096 | $60.00 | $120.00 | ||
azure/gpt-4-32k-0613 | Chat | 32,768 | 4,096 | $60.00 | $120.00 | ||
azure/gpt-4-0125-preview | Chat | 128,000 | 4,096 | $10.00 | $30.00 | tools | |
azure/gpt-4-0613 | Chat | 8,192 | 4,096 | $30.00 | $60.00 | tools | |
azure/gpt-4-1106-preview | Chat | 128,000 | 4,096 | $10.00 | $30.00 | tools | |
azure/gpt-4-turbo | Chat | 128,000 | 4,096 | $10.00 | $30.00 | tools | |
azure/gpt-4-turbo-2024-04-09 | Chat | 128,000 | 4,096 | $10.00 | $30.00 | tools, vision | |
azure/gpt-4-turbo-vision-preview | Chat | 128,000 | 4,096 | $10.00 | $30.00 | vision | |
azure/gpt-4.1 | Chat | 1,047,576 | 32,768 | $2.00 | $8.00 | tools, vision, prompt caching, structured output | |
azure/gpt-4.1-2025-04-14 | Chat | 1,047,576 | 32,768 | $2.00 | $8.00 | tools, vision, prompt caching, structured output | |
azure/gpt-4.1-mini | Chat | 1,047,576 | 32,768 | $0.4 | $1.60 | tools, vision, prompt caching, structured output | |
azure/gpt-4.1-mini-2025-04-14 | Chat | 1,047,576 | 32,768 | $0.4 | $1.60 | tools, vision, prompt caching, structured output | |
azure/gpt-4.1-nano | Chat | 1,047,576 | 32,768 | $0.1 | $0.4 | tools, vision, prompt caching, structured output | |
azure/gpt-4.1-nano-2025-04-14 | Chat | 1,047,576 | 32,768 | $0.1 | $0.4 | tools, vision, prompt caching, structured output | |
azure/gpt-4.5-preview | Chat | 128,000 | 16,384 | $75.00 | $150.00 | tools, vision, prompt caching, structured output | |
azure/gpt-4o | Chat | 128,000 | 16,384 | $2.50 | $10.00 | tools, vision, prompt caching, structured output | |
azure/gpt-4o-2024-05-13 | Chat | 128,000 | 4,096 | $5.00 | $15.00 | tools, vision, prompt caching | |
azure/gpt-4o-2024-08-06 | Chat | 128,000 | 16,384 | $2.50 | $10.00 | tools, vision, prompt caching, structured output | |
azure/gpt-4o-2024-11-20 | Chat | 128,000 | 16,384 | $2.50 | $10.00 | tools, vision, prompt caching, structured output | |
azure/gpt-4o-audio-preview-2024-12-17 | Chat | 128,000 | 16,384 | $2.50 | $10.00 | tools | |
azure/gpt-4o-mini | Chat | 128,000 | 16,384 | $0.15 | $0.6 | tools, vision, prompt caching, structured output | |
azure/gpt-4o-mini-2024-07-18 | Chat | 128,000 | 16,384 | $0.15 | $0.6 | tools, vision, prompt caching, structured output | |
azure/gpt-4o-mini-audio-preview-2024-12-17 | Chat | 128,000 | 16,384 | $0.15 | $0.6 | tools | |
azure/gpt-4o-mini-realtime-preview-2024-12-17 | Realtime | 128,000 | 4,096 | $0.6 | $2.40 | tools, audio in, audio out | |
azure/gpt-4o-mini-transcribe | Transcription | 16,000 | 2,000 | $1.25 | $5.00 | ||
azure/gpt-4o-mini-tts | Text to speech | $0.6 | $10.00 | $0.00025 per output second | |||
azure/gpt-4o-realtime-preview-2024-10-01 | Realtime | 128,000 | 4,096 | $5.00 | $20.00 | tools, audio in, audio out | |
azure/gpt-4o-realtime-preview-2024-12-17 | Realtime | 16,000 | 4,096 | $5.00 | $20.00 | tools, audio in, audio out | |
azure/gpt-4o-transcribe | Transcription | 16,000 | 2,000 | $2.50 | $10.00 | ||
azure/gpt-4o-transcribe-diarize | Transcription | 16,000 | 2,000 | $2.50 | $10.00 | ||
azure/gpt-5 | Chat | 272,000 | 128,000 | $1.25 | $10.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5-2025-08-07 | Chat | 272,000 | 128,000 | $1.25 | $10.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5-chat | Chat | 128,000 | 16,384 | $1.25 | $10.00 | vision, prompt caching | |
azure/gpt-5-codex | Responses | 272,000 | 128,000 | $1.25 | $10.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5-mini | Chat | 272,000 | 128,000 | $0.25 | $2.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5-mini-2025-08-07 | Chat | 272,000 | 128,000 | $0.25 | $2.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5-nano | Chat | 272,000 | 128,000 | $0.05 | $0.4 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5-nano-2025-08-07 | Chat | 272,000 | 128,000 | $0.05 | $0.4 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5-pro | Responses | 272,000 | 128,000 | $15.00 | $120.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5.1 | Chat | 272,000 | 128,000 | $1.25 | $10.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5.1-2025-11-13 | Chat | 272,000 | 128,000 | $1.25 | $10.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5.1-chat | Chat | 111,616 | 16,384 | $1.25 | $10.00 | tools, reasoning, prompt caching, structured output | |
azure/gpt-5.1-codex | Responses | 272,000 | 128,000 | $1.25 | $10.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5.1-codex-2025-11-13 | Responses | 272,000 | 128,000 | $1.25 | $10.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5.1-codex-max | Responses | 272,000 | 128,000 | $1.25 | $10.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5.1-codex-mini | Responses | 272,000 | 128,000 | $0.25 | $2.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5.1-codex-mini-2025-11-13 | Responses | 272,000 | 128,000 | $0.25 | $2.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5.2 | Chat | 272,000 | 128,000 | $1.75 | $14.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5.2-2025-12-11 | Chat | 272,000 | 128,000 | $1.75 | $14.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5.2-chat | Chat | 111,616 | 16,384 | $1.75 | $14.00 | tools, prompt caching, structured output | |
azure/gpt-5.2-codex | Responses | 272,000 | 128,000 | $1.75 | $14.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5.2-pro | Responses | 272,000 | 128,000 | $21.00 | $168.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-5.2-pro-2025-12-11 | Responses | 272,000 | 128,000 | $21.00 | $168.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-5.3-chat | Chat | 111,616 | 16,384 | $1.75 | $14.00 | tools, prompt caching, structured output | |
azure/gpt-5.3-codex | Responses | 272,000 | 128,000 | $1.75 | $14.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5.4 | Chat | 922,000 | 128,000 | $2.50 | $15.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5.4-2026-03-05 | Chat | 922,000 | 128,000 | $2.50 | $15.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/gpt-5.4-mini | Chat | 272,000 | 128,000 | $0.75 | $4.50 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-5.4-mini-2026-03-17 | Chat | 272,000 | 128,000 | $0.75 | $4.50 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-5.4-nano | Chat | 272,000 | 128,000 | $0.2 | $1.25 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-5.4-nano-2026-03-17 | Chat | 272,000 | 128,000 | $0.2 | $1.25 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-5.4-pro | Responses | 922,000 | 128,000 | $30.00 | $180.00 | tools, vision, reasoning, prompt caching, web search, PDF input | |
azure/gpt-5.4-pro-2026-03-05 | Responses | 922,000 | 128,000 | $30.00 | $180.00 | tools, vision, reasoning, prompt caching, web search, PDF input | |
azure/gpt-5.5 | Chat | 922,000 | 128,000 | $5.00 | $30.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-5.5-2026-04-23 | Chat | 922,000 | 128,000 | $5.00 | $30.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-5.5-2026-04-24 | Chat | 922,000 | 128,000 | $5.00 | $30.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-5.5-pro | Responses | 1,050,000 | 128,000 | $30.00 | $180.00 | tools, vision, reasoning, prompt caching, web search, PDF input | |
azure/gpt-5.5-pro-2026-04-23 | Responses | 1,050,000 | 128,000 | $30.00 | $180.00 | tools, vision, reasoning, prompt caching, web search, PDF input | |
azure/gpt-5.6 | Chat | 922,000 | 128,000 | $4.00 | $20.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-5.6-luna | Chat | 922,000 | 128,000 | $0.2 | $1.20 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-5.6-luna-2026-07-09 | Chat | 922,000 | 128,000 | $0.2 | $1.20 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-5.6-sol | Chat | 922,000 | 128,000 | $4.00 | $20.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-5.6-sol-2026-07-09 | Chat | 922,000 | 128,000 | $4.00 | $20.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-5.6-terra | Chat | 922,000 | 128,000 | $2.00 | $12.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-5.6-terra-2026-07-09 | Chat | 922,000 | 128,000 | $2.00 | $12.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-6-astra | Chat | 922,000 | 128,000 | $10.00 | $50.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/gpt-6-astra-2026-09-03 | Chat | 922,000 | 128,000 | $10.00 | $50.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/gpt-6-luna | Chat | 922,000 | 128,000 | $0.1 | $0.5 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/gpt-6-luna-2026-09-22 | Chat | 922,000 | 128,000 | $0.1 | $0.5 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/gpt-6-sol | Chat | 922,000 | 128,000 | $2.00 | $10.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/gpt-6-sol-2026-09-22 | Chat | 922,000 | 128,000 | $2.00 | $10.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/gpt-6.1-sol | Chat | 922,000 | 128,000 | $2.00 | $10.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/gpt-6.1-sol-2026-09-29 | Chat | 922,000 | 128,000 | $2.00 | $10.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/gpt-35-turbo | Chat | 4,097 | 4,096 | $0.5 | $1.50 | tools | |
azure/gpt-35-turbo-16k | Chat | 16,385 | 4,096 | $3.00 | $4.00 | ||
azure/gpt-35-turbo-16k-0613 | Chat | 16,385 | 4,096 | $3.00 | $4.00 | tools | |
azure/gpt-audio | Chat | 128,000 | 16,384 | $2.50 | $10.00 | tools | |
azure/gpt-audio-1.5 | Chat | 128,000 | 16,384 | $2.50 | $10.00 | tools | |
azure/gpt-audio-1.5-2026-02-23 | Chat | 128,000 | 16,384 | $2.50 | $10.00 | tools | |
azure/gpt-audio-2025-08-28 | Chat | 128,000 | 16,384 | $2.50 | $10.00 | tools | |
azure/gpt-audio-mini | Chat | 128,000 | 16,384 | $0.6 | $2.40 | tools | |
azure/gpt-audio-mini-2025-10-06 | Chat | 128,000 | 16,384 | $0.6 | $2.40 | tools | |
azure/gpt-chat-latest | Chat | 272,000 | 128,000 | $5.00 | $30.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/gpt-image-1 | Image generation | $5.00 | |||||
azure/gpt-image-1-mini | Image generation | $2.00 | |||||
azure/gpt-image-1.5 | Image generation | $5.00 | $10.00 | ||||
azure/gpt-image-1.5-2025-12-16 | Image generation | $5.00 | $10.00 | ||||
azure/gpt-image-2 | Image generation | $5.00 | vision, PDF input | ||||
azure/gpt-image-2-2026-04-21 | Image generation | $5.00 | vision, PDF input | ||||
azure/gpt-image-2.5-flare | Image generation | $5.00 | vision, PDF input | ||||
azure/gpt-image-2.5-sunburst | Image generation | $5.00 | vision, PDF input | ||||
azure/gpt-live-1 | Realtime | $0.000833333333333 per input second | tools, audio in, audio out | ||||
azure/gpt-live-transcribe | Transcription | 32,000 | 4,096 | $0.000283333333333 per input second | audio in | ||
azure/gpt-realtime | Realtime | 32,000 | 4,096 | $4.00 | $16.00 | tools, audio in, audio out | |
azure/gpt-realtime-1.5 | Realtime | 32,000 | 4,096 | $4.00 | $16.00 | tools, audio in, audio out | |
azure/gpt-realtime-1.5-2026-02-23 | Realtime | 32,000 | 4,096 | $4.00 | $16.00 | tools, audio in, audio out | |
azure/gpt-realtime-2 | Realtime | 32,000 | 4,096 | $4.00 | $24.00 | tools, audio in, audio out | |
azure/gpt-realtime-2.1 | Realtime | 32,000 | 4,096 | $4.00 | $24.00 | tools, audio in, audio out | |
azure/gpt-realtime-2.1-mini | Realtime | 32,000 | 4,096 | $0.6 | $2.40 | tools, audio in, audio out | |
azure/gpt-realtime-2025-08-28 | Realtime | 32,000 | 4,096 | $4.00 | $16.00 | tools, audio in, audio out | |
azure/gpt-realtime-mini | Realtime | 32,000 | 4,096 | $0.6 | $2.40 | tools, audio in, audio out | |
azure/gpt-realtime-mini-2025-10-06 | Realtime | 32,000 | 4,096 | $0.6 | $2.40 | tools, audio in, audio out | |
azure/gpt-realtime-translate | Realtime | 32,000 | 4,096 | $0.000566666666667 per input second | audio in, audio out | ||
azure/gpt-realtime-whisper | Transcription | 32,000 | 4,096 | $0.0002833333333333333 per input second | audio in | ||
azure/gpt-transcribe | Transcription | $0.000075 per input second | audio in | ||||
azure/hd/1024-x-1024/dall-e-3 | Image generation | $0 | |||||
azure/hd/1024-x-1792/dall-e-3 | Image generation | $0 | |||||
azure/hd/1792-x-1024/dall-e-3 | Image generation | $0 | |||||
azure/high/1024-x-1024/gpt-image-1 | Image generation | ||||||
azure/high/1024-x-1024/gpt-image-1-mini | Image generation | ||||||
azure/high/1024-x-1536/gpt-image-1 | Image generation | ||||||
azure/high/1024-x-1536/gpt-image-1-mini | Image generation | ||||||
azure/high/1536-x-1024/gpt-image-1 | Image generation | ||||||
azure/high/1536-x-1024/gpt-image-1-mini | Image generation | ||||||
azure/low/1024-x-1024/gpt-image-1 | Image generation | ||||||
azure/low/1024-x-1024/gpt-image-1-mini | Image generation | ||||||
azure/low/1024-x-1536/gpt-image-1 | Image generation | ||||||
azure/low/1024-x-1536/gpt-image-1-mini | Image generation | ||||||
azure/low/1536-x-1024/gpt-image-1 | Image generation | ||||||
azure/low/1536-x-1024/gpt-image-1-mini | Image generation | ||||||
azure/medium/1024-x-1024/gpt-image-1 | Image generation | ||||||
azure/medium/1024-x-1024/gpt-image-1-mini | Image generation | ||||||
azure/medium/1024-x-1536/gpt-image-1 | Image generation | ||||||
azure/medium/1024-x-1536/gpt-image-1-mini | Image generation | ||||||
azure/medium/1536-x-1024/gpt-image-1 | Image generation | ||||||
azure/medium/1536-x-1024/gpt-image-1-mini | Image generation | ||||||
azure/mistral-large-2402 | Chat | 32,000 | $8.00 | $24.00 | tools | ||
azure/mistral-large-latest | Chat | 32,000 | $8.00 | $24.00 | tools | ||
azure/model-router | Chat | 200,000 | 32,768 | $0.14 | $0 | vision | |
azure/o1 | Chat | 200,000 | 100,000 | $15.00 | $60.00 | tools, vision, reasoning, prompt caching | |
azure/o1-2024-12-17 | Chat | 200,000 | 100,000 | $15.00 | $60.00 | tools, vision, reasoning, prompt caching | |
azure/o1-mini | Chat | 128,000 | 65,536 | $1.10 | $4.40 | tools, reasoning, prompt caching | |
azure/o1-mini-2024-09-12 | Chat | 128,000 | 65,536 | $1.10 | $4.40 | tools, reasoning, prompt caching | |
azure/o3 | Chat | 200,000 | 100,000 | $2.00 | $8.00 | tools, vision, reasoning, prompt caching, structured output | |
azure/o3-2025-04-16 | Chat | 200,000 | 100,000 | $2.00 | $8.00 | tools, vision, reasoning, prompt caching, structured output | |
azure/o3-deep-research | Responses | 200,000 | 100,000 | $10.00 | $40.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/o3-mini | Chat | 200,000 | 100,000 | $1.10 | $4.40 | reasoning, prompt caching, structured output | |
azure/o3-mini-2025-01-31 | Chat | 200,000 | 100,000 | $1.10 | $4.40 | reasoning, prompt caching | |
azure/o3-pro | Responses | 200,000 | 100,000 | $20.00 | $80.00 | tools, vision, reasoning, structured output | |
azure/o3-pro-2025-06-10 | Responses | 200,000 | 100,000 | $20.00 | $80.00 | tools, vision, reasoning, structured output | |
azure/o4-mini | Chat | 200,000 | 100,000 | $1.10 | $4.40 | tools, vision, reasoning, prompt caching, structured output | |
azure/o4-mini-2025-04-16 | Chat | 200,000 | 100,000 | $1.10 | $4.40 | tools, vision, reasoning, prompt caching, structured output | |
azure/sora-2 | Video | ||||||
azure/sora-2-pro | Video | ||||||
azure/sora-2-pro-high-res | Video | ||||||
azure/speech/azure-stt | Transcription | $0.0002777778 per input second, $0 per output second | |||||
azure/speech/azure-tts | Text to speech | $15 per 1M characters | |||||
azure/speech/azure-tts-hd | Text to speech | $30 per 1M characters | |||||
azure/standard/1024-x-1024/dall-e-2 | Image generation | $0 | |||||
azure/standard/1024-x-1024/dall-e-3 | Image generation | $0 | |||||
azure/standard/1024-x-1792/dall-e-3 | Image generation | $0 | |||||
azure/standard/1792-x-1024/dall-e-3 | Image generation | $0 | |||||
azure/text-embedding-3-large | Embedding | 8,192 | $0.13 | $0 | |||
azure/text-embedding-3-small | Embedding | 8,192 | $0.02 | $0 | |||
azure/text-embedding-ada-002 | Embedding | 8,192 | $0.1 | $0 | |||
azure/tts-1 | Text to speech | $15 per 1M characters | |||||
azure/tts-1-hd | Text to speech | $30 per 1M characters | |||||
azure/us-gov/gpt-5.1 | Chat | 272,000 | 128,000 | $1.72 | $13.75 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/us-gov/o3-mini | Chat | 200,000 | 100,000 | $1.51 | $6.05 | reasoning, prompt caching, structured output | |
azure/us-gov/text-embedding-3-large | Embedding | 8,191 | $0.163 | $0 | |||
azure/us-gov/text-embedding-3-small | Embedding | 8,191 | $0.025 | $0 | |||
azure/us/codex-mini | Responses | $1.65 | $6.60 | ||||
azure/us/computer-use-preview | Chat | $3.30 | $13.20 | ||||
azure/us/gpt-4.1 | Chat | $2.20 | $8.80 | ||||
azure/us/gpt-4.1-2025-04-14 | Chat | 1,047,576 | 32,768 | $2.20 | $8.80 | tools, vision, prompt caching, structured output | |
azure/us/gpt-4.1-mini | Chat | $0.44 | $1.76 | ||||
azure/us/gpt-4.1-mini-2025-04-14 | Chat | 1,047,576 | 32,768 | $0.44 | $1.76 | tools, vision, prompt caching, structured output | |
azure/us/gpt-4.1-nano | Chat | $0.11 | $0.44 | ||||
azure/us/gpt-4.1-nano-2025-04-14 | Chat | 1,047,576 | 32,768 | $0.11 | $0.44 | tools, vision, prompt caching, structured output | |
azure/us/gpt-4o-2024-05-13 | Chat | 128,000 | 4,096 | $5.50 | $16.50 | ||
azure/us/gpt-4o-2024-08-06 | Chat | 128,000 | 16,384 | $2.75 | $11.00 | tools, vision, prompt caching, structured output | |
azure/us/gpt-4o-2024-11-20 | Chat | 128,000 | 16,384 | $2.75 | $11.00 | tools, vision, structured output | |
azure/us/gpt-4o-mini-2024-07-18 | Chat | 128,000 | 16,384 | $0.165 | $0.66 | tools, vision, prompt caching, structured output | |
azure/us/gpt-4o-mini-realtime-preview-2024-12-17 | Realtime | 128,000 | 4,096 | $0.66 | $2.64 | tools, audio in, audio out | |
azure/us/gpt-4o-realtime-preview-2024-10-01 | Realtime | 128,000 | 4,096 | $5.50 | $22.00 | tools, audio in, audio out | |
azure/us/gpt-4o-realtime-preview-2024-12-17 | Realtime | 16,000 | 4,096 | $5.50 | $22.00 | tools, audio in, audio out | |
azure/us/gpt-5 | Chat | $1.38 | $11.00 | ||||
azure/us/gpt-5-2025-08-07 | Chat | 272,000 | 128,000 | $1.38 | $11.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/us/gpt-5-codex | Responses | $1.38 | $11.00 | ||||
azure/us/gpt-5-mini | Chat | $0.275 | $2.20 | ||||
azure/us/gpt-5-mini-2025-08-07 | Chat | 272,000 | 128,000 | $0.275 | $2.20 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/us/gpt-5-nano | Chat | $0.055 | $0.44 | ||||
azure/us/gpt-5-nano-2025-08-07 | Chat | 272,000 | 128,000 | $0.055 | $0.44 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/us/gpt-5-pro | Responses | $16.50 | $132.00 | ||||
azure/us/gpt-5.1 | Chat | 272,000 | 128,000 | $1.38 | $11.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/us/gpt-5.1-chat | Chat | 111,616 | 16,384 | $1.38 | $11.00 | tools, reasoning, prompt caching, structured output | |
azure/us/gpt-5.1-codex | Responses | 272,000 | 128,000 | $1.38 | $11.00 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/us/gpt-5.1-codex-max | Responses | $1.38 | $11.00 | ||||
azure/us/gpt-5.1-codex-mini | Responses | 272,000 | 128,000 | $0.275 | $2.20 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/us/gpt-5.2 | Chat | $1.93 | $15.40 | ||||
azure/us/gpt-5.2-chat | Chat | 111,616 | 16,384 | $1.93 | $15.40 | tools, prompt caching, structured output | |
azure/us/gpt-5.2-codex | Responses | $1.93 | $15.40 | ||||
azure/us/gpt-5.2-pro | Responses | $23.10 | $184.80 | ||||
azure/us/gpt-5.3-chat | Chat | 111,616 | 16,384 | $1.93 | $15.40 | tools, prompt caching, structured output | |
azure/us/gpt-5.3-codex | Responses | $1.93 | $15.40 | ||||
azure/us/gpt-5.4 | Chat | 922,000 | 128,000 | $2.75 | $16.50 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/us/gpt-5.4-2026-03-05 | Chat | 922,000 | 128,000 | $2.75 | $16.50 | tools, vision, reasoning, prompt caching, structured output, PDF input | |
azure/us/gpt-5.4-mini | Chat | $0.825 | $4.95 | ||||
azure/us/gpt-5.4-nano | Chat | $0.22 | $1.38 | ||||
azure/us/gpt-5.4-pro | Responses | $33.00 | $198.00 | ||||
azure/us/gpt-5.5 | Chat | 922,000 | 128,000 | $5.50 | $33.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/us/gpt-5.5-2026-04-23 | Chat | 922,000 | 128,000 | $5.50 | $33.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/us/gpt-5.5-2026-04-24 | Chat | 922,000 | 128,000 | $5.50 | $33.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/us/gpt-5.6 | Chat | 922,000 | 128,000 | $4.40 | $22.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/us/gpt-5.6-luna | Chat | 922,000 | 128,000 | $0.22 | $1.32 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/us/gpt-5.6-sol | Chat | 922,000 | 128,000 | $4.40 | $22.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/us/gpt-5.6-terra | Chat | 922,000 | 128,000 | $2.20 | $13.20 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/us/gpt-6-astra | Chat | 922,000 | 128,000 | $11.00 | $55.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/us/gpt-6-luna | Chat | 922,000 | 128,000 | $0.11 | $0.55 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/us/gpt-6-sol | Chat | 922,000 | 128,000 | $2.20 | $11.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/us/gpt-6.1-sol | Chat | 922,000 | 128,000 | $2.20 | $11.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input, computer use | |
azure/us/gpt-chat-latest | Chat | 272,000 | 128,000 | $5.50 | $33.00 | tools, vision, reasoning, prompt caching, structured output, web search, PDF input | |
azure/us/o1-2024-12-17 | Chat | 200,000 | 100,000 | $16.50 | $66.00 | tools, vision, prompt caching | |
azure/us/o1-mini | Chat | $1.21 | $4.84 | ||||
azure/us/o1-mini-2024-09-12 | Chat | 128,000 | 65,536 | $1.21 | $4.84 | tools, prompt caching | |
azure/us/o1-preview | Chat | 128,000 | 32,768 | $16.50 | $66.00 | prompt caching | |
azure/us/o3-2025-04-16 | Chat | 200,000 | 100,000 | $2.20 | $8.80 | tools, vision, reasoning, prompt caching, structured output | |
azure/us/o3-deep-research | Chat | $11.00 | $44.00 | ||||
azure/us/o3-mini-2025-01-31 | Chat | 200,000 | 100,000 | $1.21 | $4.84 | reasoning, prompt caching | |
azure/us/o4-mini-2025-04-16 | Chat | 200,000 | 100,000 | $1.21 | $4.84 | tools, vision, reasoning, prompt caching, structured output | |
azure/us/text-embedding-3-large | Embedding | $0.143 | |||||
azure/us/text-embedding-3-small | Embedding | $0.022 | |||||
azure/us/text-embedding-ada-002 | Embedding | $0.11 | |||||
azure/whisper | Transcription | $0.0001 per input second, $0.0001 per output second | |||||
azure/whisper-1 | Transcription | $0.0001 per input second, $0.0001 per output second |