Opening RouterHub
RouterHub

RouterHub setup

OpenCode

Use one RouterHub API key with a model that supports the API your tool sends. The public catalogue lists exact model IDs, protocols, and token rates.

Before setup

  1. Create a RouterHub account.
  2. Add credits.
  3. Create an API key and store it privately. Never share it in a public chat or repository.

Choose a guide

Provider API tutorials

API example

API base: https://routerhub.si/v1. Example model: deepseek-v4.1-flash (chat). Check the selected model's exact API before sending requests.

curl https://routerhub.si/v1/chat/completions \
  -H "Authorization: Bearer $ROUTERHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-v4.1-flash","messages":[{"role":"user","content":"Reply with OK."}]}'

Read the complete agent quickstart · Download models.json · OpenAPI