o1
o1
StreamingTool callingVisionReasoningJSON mode
Overview
o1 is available on MAX API through the OpenAI-compatible API.
Pricing
Official list prices in USD. Token prices are per 1M tokens.All requests
- Input
- $15
- Output
- $60
- Cache read
- $7.5
| Tier | Input | Output | Cache read |
|---|---|---|---|
| All requests | $15 | $60 | $7.5 |
Cache read applies to prompt tokens served from the prompt cache; cache write applies to tokens written into it.
Example request
curl https://<your-endpoint>/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "o1",
"messages": [{"role": "user", "content": "Hello!"}]
}'https://<your-endpoint> is a placeholder. Your endpoint is shown in the console after you sign in.