curl --location 'https://api.inworld.ai/router/v1/routers' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <your-api-key>' \
--data '{
"name": "compare-frontier-models",
"default_route": {
"route_id": "default",
"variants": [
{
"variant": { "variant_id": "xai",
"model_id": "xai/grok-4-fast-reasoning" },
"weight": 33
},
{
"variant": {
"variant_id": "xai",
"model_id": "xai/grok-3"
},
"weight": 33
},
{
"variant": {
"variant_id": "xai",
"model_id": "xai/grok-3-beta"
},
"weight": 34
}
]
}
}'| Capabilities | Input modalities | Output modalities | |||||
|---|---|---|---|---|---|---|---|
| 2M | 2M | $0.20 | $0.50 |
| Capabilities | Input modalities | Output modalities | Inference provider | |||||
|---|---|---|---|---|---|---|---|---|
| 131.1K | 131.1K | $3.00 | $15.00 | |||||
| 131.1K | 131.1K | $3.00 | $15.00 | |||||
| — | — | $3.00 | $15.00 | — | ||||
| 131.1K | 131.1K | $3.00 | $15.00 | |||||
| 131.1K | 131.1K | $3.00 | $15.00 | |||||
| 131.1K | 131.1K | $3.00 | $15.00 | |||||
| 131.1K | 131.1K | $0.30 | $0.50 | |||||
| 131.1K | 131.1K | $0.30 | $0.50 | |||||
| 131.1K | 131.1K | $0.30 | $0.50 | |||||
| 131.1K | 131.1K | $0.30 | $0.50 | |||||
| 256K | 256K | $3.00 | $15.00 | |||||
| 256K | 256K | $3.00 | $15.00 | |||||
| — | — | $0.20 | $0.50 | — | ||||
| 2M | 2M | $0.20 | $0.50 | |||||
| — | — | $0.20 | $0.50 | — | ||||
| — | — | $0.20 | $0.50 | — | ||||
| 256K | 256K | $3.00 | $15.00 | |||||
| 2M | 2M | $0.20 | $0.50 | +2 | ||||
| 2M | 2M | $0.20 | $0.50 | +1 | ||||
| 2M | 2M | $0.20 | $0.50 | +1 | ||||
| 2M | 2M | $0.20 | $0.50 | +2 | ||||
| 2M | 2M | $0.20 | $0.50 | +2 | ||||
| 256K | 256K | $0.20 | $1.50 | |||||
| 256K | 256K | $0.20 | $1.50 | |||||
| 256K | 256K | $0.20 | $1.50 |
