https://api.nusabasedigital.com/v1.
When To Use This
- You want project-level model configuration.
- You want to use Nusabase through an OpenAI-compatible endpoint.
- You want different repositories to use different models or API keys.
Prerequisites
- OpenCode is installed.
- You have a Nusabase API key:
sk-.... - Your machine can reach
https://api.nusabasedigital.com. - The example model
qwen3.5-flashappears in the current pricing docs. UseGET /v1/modelsas the source of truth for your account.
Verify Nusabase First
Configure OpenCode
OpenCode uses theprovider config key, not providers. Create or update opencode.json in your project root:
Start And Verify
curl /v1/modelsreturns a model list.curl /v1/chat/completionsreturns valid JSON.- OpenCode can use
nusabase/qwen3.5-flashfor the first reply.
Troubleshooting
Next, see First Request Example for the underlying API format.