Step 1 — Create Router
curl --location 'https://api.inworld.ai/router/v1/routers' \
--header 'Authorization: Basic <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "compare-frontier-models",
"defaultRoute": {
"route_id": "default",
"variants": [
{
"variant": {
"variant_id": "deepinfra/Qwen/Qwen3-Max-a",
"model_id": "deepinfra/Qwen/Qwen3-Max"
},
"weight": 33
},
{
"variant": {
"variant_id": "deepinfra/Qwen/Qwen2.5-VL-32B-Instruct-b",
"model_id": "deepinfra/Qwen/Qwen2.5-VL-32B-Instruct"
},
"weight": 33
},
{
"variant": {
"variant_id": "deepinfra/Qwen/Qwen3-235B-A22B-Thinking-2507-c",
"model_id": "deepinfra/Qwen/Qwen3-235B-A22B-Thinking-2507"
},
"weight": 34
}
]
}
}'Step 2 — Chat Completion
curl --location 'https://api.inworld.ai/v1/chat/completions' \
--header 'Authorization: Basic <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"model": "inworld/compare-frontier-models",
"messages": [{"role": "user", "content": "Hello!"}]
}'| Capabilities | Input modalities | Output modalities | |||||
|---|---|---|---|---|---|---|---|
| — | — | $1.20 | $6.00 | — |
| Capabilities | Input modalities | Output modalities | Inference provider | |||||
|---|---|---|---|---|---|---|---|---|
| 128K | 128K | $0.20 | $0.60 | |||||
| 262.1K | 262.1K | $0.23 | $2.30 | |||||
| — | — | $1.20 | $6.00 | — | ||||
| — | — | $0.01 | $0.05 | — | ||||
| — | — | $0.29 | $2.90 | — | ||||
| — | — | $0.26 | $2.60 | — | ||||
| — | — | $0.02 | $0.10 | — | ||||
| — | — | $0.22 | $2.20 | — | ||||
| — | — | $0.54 | $3.40 | — | ||||
| — | — | $0.03 | $0.15 | — | ||||
| — | — | $0.04 | $0.20 | — | ||||
| 32.8K | 32.8K | $0.12 | $0.39 | |||||
| 41K | 41K | $0.12 | $0.24 | |||||
| 262.1K | 262.1K | $0.071 | $0.10 | |||||
| 41K | 41K | $0.08 | $0.28 | |||||
| 131K | 131K | $0.08 | $0.28 | |||||
| 262.1K | 262.1K | $0.40 | $1.60 | |||||
| 262.1K | 262.1K | $0.22 | $1.00 | |||||
| 262.1K | 262.1K | $0.09 | $1.10 | |||||
| — | — | $0.20 | $0.88 | — | ||||
| — | — | $0.15 | $0.60 | — |
