Nexbion

AI CLIENT GUIDES

Use the Nexbion API with OpenCode

Add the Nexbion provider once, then select a Nexbion model from the OpenCode model picker.

Prerequisites

  • OpenCode Desktop is installed
  • An active Nexbion API key
  • HTTPS access to api.nexbion.com

Configuration steps

  1. 1

    Open Connect provider, then choose Custom provider.

  2. 2

    Set the Provider ID to test and use Nexbion API as the display name.

  3. 3

    Enter the public Nexbion Base URL and your API key.

  4. 4

    Add oc/big-pickle, save the provider, then select that model.

OpenCode setup flow
OpenCode
1Connect provider
2Custom provider
3Enter endpoint and key
4Add the model
opencode.jsonc
{
  "model": "test/oc/big-pickle",
  "provider": {
    "test": {
      "name": "test",
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://api.nexbion.com/v1",
        "apiKey": "<NEXBION_API_KEY>"
      },
      "models": { "oc/big-pickle": { "name": "oc/big-pickle" } }
    }
  }
}

Visual walkthrough

Open the Connect provider menu in OpenCode
01Open the Connect provider menu in OpenCode
Choose an OpenAI-compatible custom provider
02Choose an OpenAI-compatible custom provider
Enter the Nexbion provider endpoint and credentials
03Enter the Nexbion provider endpoint and credentials
Add the model and save the provider
04Add the model and save the provider

Validate the connection

PowerShell: GET /v1/models
$headers = @{ Authorization = "Bearer $env:NEXBION_API_KEY" }
Invoke-RestMethod -Uri "https://api.nexbion.com/v1/models" -Headers $headers
Linux/macOS: curl POST /v1/responses
curl https://api.nexbion.com/v1/responses \
  -H "Authorization: Bearer YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.5",
    "input": [
      {
        "role": "user",
        "content": "Reply with exactly pong"
      }
    ],
    "max_output_tokens": 20
  }'
Windows PowerShell: curl.exe POST /v1/responses
$body = @'
{
  "model": "gpt-5.5",
  "input": [
    {
      "role": "user",
      "content": "Reply with exactly pong"
    }
  ],
  "max_output_tokens": 20
}
'@

curl.exe "https://api.nexbion.com/v1/responses" `
  -H "Authorization: Bearer YOUR_API_KEY_HERE" `
  -H "Content-Type: application/json" `
  -d $body

Keep your API key in a local secret or environment variable. Never place it in a repository, screenshot, workspace setting, or application code.