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
- Create a RouterHub account.
- Add credits.
- 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: gpt-6.1-sol (responses). Check the selected model's exact API before sending requests.
curl https://routerhub.si/v1/responses \
-H "Authorization: Bearer $ROUTERHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-6.1-sol","input":"Reply with OK."}'Read the complete agent quickstart · Download models.json · OpenAPI