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": "deepinfra",
"model_id": "deepinfra/glm-4-7" },
"weight": 33
},
{
"variant": {
"variant_id": "deepinfra",
"model_id": "deepinfra/glm-4-7-flash"
},
"weight": 33
},
{
"variant": {
"variant_id": "fireworks",
"model_id": "fireworks/glm-5"
},
"weight": 34
}
]
}
}'| Capabilities | Input modalities | Output modalities | |||||
|---|---|---|---|---|---|---|---|
| — | — | $0.40 | $1.75 | — |
| Capabilities | Input modalities | Output modalities | Inference provider | |||||
|---|---|---|---|---|---|---|---|---|
| Glm 4.7 Flash | — | — | $0.06 | $0.40 | — | |||
| Glm 5 | — | — | $0.80 | $2.56 | — | |||
| Zai Org/GLM 4.6 | — | — | $0.43 | $1.74 | — | |||
| Zai Org/GLM 4.6V | — | — | $0.30 | $0.90 | — |
