API call price5% OFF
Input
$4.75Output
$23.75Cache write
$5.9375Cache read
$0.475| Compatible format | Anthropic |
|---|---|
| Routes | POST /v1/messages POST /v1/messages/count_tokens |
| Features | Streaming · Prompt caching · Function calling · System messages |
| Request parameters | model, messages, system, tools, stream, metadata |
cURL Example
curl -X POST https://api.openmodel.ai/v1/messages \
-H "Content-Type: application/json" \
-H "x-api-key: $API_KEY" \
-H "anthropic-version: 2023-06-01" \
-d '{
"model": "claude-opus-4-8",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "Hello"}
]
}'Context window
1M
Max output tokens
128K
Success Rate
100.00%
Avg Latency
16.2s
Throughput
87.6tok/s
Based on billed requests over the past 24 hours.