Baltor Get started

Endpoints

OpenCode Go

A hosted service with its own key and prices. This page lists the addresses it answers, the facts its documentation states, and the setup of each harness.

Addresses and facts

  • OpenAI Chat Completions: https://opencode.ai/zen/go/v1 models.dev, read
Authentication
Authorization: Bearer, with the key in OPENCODE_API_KEY models.dev, read
Structured output
Unknown
Tool calling
41 of 41 listed models The share of this provider's models that models.dev records with tool calling. models.dev, read
Rate limits
Unknown
Prices
Unknown
Data retention
Unknown
Documentation
Read the page models.dev, read
Output limits Baltor recorded
Unknown

Harness setup

Replace deepseek-v4-flash with the model you want.

OpenCode

Put this in opencode.json in your project folder:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "opencode-go": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "OpenCode Go",
      "options": {
        "baseURL": "https://opencode.ai/zen/go/v1",
        "apiKey": "{env:OPENCODE_API_KEY}"
      },
      "models": {
        "deepseek-v4-flash": {
          "name": "deepseek-v4-flash"
        }
      }
    }
  }
}
  • OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.

From OpenCode documentation, read .

Pi

Put this in ~/.pi/agent/models.json:

{
  "providers": {
    "opencode-go": {
      "baseUrl": "https://opencode.ai/zen/go/v1",
      "api": "openai-completions",
      "apiKey": "$OPENCODE_API_KEY",
      "models": [
        {
          "id": "deepseek-v4-flash"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and OpenCode Go documents no Responses address. A gateway that offers one can sit in between.

  • Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.

From Codex documentation, read .

Claude Code

Claude Code sends Anthropic Messages requests, and OpenCode Go documents no such address. A gateway that translates to that API can sit in between.

  • Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.

From Claude Code documentation, read .

Models it lists

Prices in US dollars per million tokens, input and output, as models.dev, read records them.

ModelInputOutputContextAs of
DeepSeek V4 Flash deepseek-v4-flash0.150 USD0.600 USD1,000,000 older than 30 days
DeepSeek V4 Flash Vision Exp deepseek-v4-flash-vision-exp0.150 USD0.600 USD1,000,000
DeepSeek V4 Pro (New) deepseek-v4-pro0.660 USD1.98 USD1,000,000 older than 30 days
DeepSeek V4.1 Flash deepseek-v4.1-flash0.150 USD0.600 USD1,000,000
GLM-5 glm-51.00 USD3.20 USD202,752 older than 30 days
GLM-5.1 glm-5.11.40 USD4.40 USD202,752 older than 30 days
GLM-5.2 glm-5.21.40 USD4.40 USD1,000,000 older than 30 days
GLM-5.3 glm-5.31.40 USD4.40 USD1,000,000 older than 30 days
GLM-5.3-Flash glm-5.3-flash0.150 USD0.500 USD1,000,000
GPT-5.6 Luna gpt-5.6-luna0.200 USD1.20 USD1,050,000 older than 30 days
GPT-6 Luna gpt-6-luna0.100 USD0.500 USD1,050,000
Grok 4.5 grok-4.52.00 USD6.00 USD500,000 older than 30 days
Grok 4.6 grok-4.62.00 USD6.00 USD500,000 older than 30 days
Grok 4.7 grok-4.72.00 USD6.00 USD500,000
Hy3 hy30.140 USD0.580 USD256,000 older than 30 days
Hy4 preview hy4-preview0.834 USD2.50 USD1,024,000
Kimi K2.5 kimi-k2.50.600 USD3.00 USD262,144 older than 30 days
Kimi K2.6 kimi-k2.60.950 USD4.00 USD262,144 older than 30 days
Kimi K2.7 Code kimi-k2.7-code0.950 USD4.00 USD262,144 older than 30 days
Kimi K3 kimi-k33.00 USD15.00 USD1,048,576 older than 30 days
LongCat-2.0 longcat-2.00.300 USD1.20 USD1,000,000 older than 30 days
MiMo V2 Omni mimo-v2-omni0.400 USD2.00 USD262,144 older than 30 days
MiMo V2 Pro mimo-v2-pro1.00 USD3.00 USD1,048,576 older than 30 days
MiMo V2.5 mimo-v2.50.140 USD0.280 USD1,000,000 older than 30 days
MiMo V2.5 Pro mimo-v2.5-pro0.435 USD0.870 USD1,048,576 older than 30 days
MiMo-V2.6-Flash mimo-v2.6-flash0.140 USD0.280 USD1,048,576
MiMo-V2.6-Pro mimo-v2.6-pro0.435 USD0.870 USD1,048,576
MiniMax-M2.5 minimax-m2.50.300 USD1.20 USD204,800 older than 30 days
MiniMax-M2.7 minimax-m2.70.300 USD1.20 USD204,800 older than 30 days
MiniMax-M3 minimax-m30.300 USD1.20 USD1,000,000 older than 30 days
Muse Spark 1.2 Contributor muse-spark-1.2-contributor0.100 USD0.200 USD1,048,576 older than 30 days
Muse Spark 1.3 Contributor muse-spark-1.3-contributor0.100 USD0.200 USD1,048,576
Omen Alpha omen-alpha0.200 USD0.660 USD500,000
Ox Alpha Free (Unlimited) ox-alpha-free0 USD0 USD1,000,000 older than 30 days
Qwen3.5 Plus qwen3.5-plus0.200 USD1.20 USD262,144 older than 30 days
Qwen3.6 Plus qwen3.6-plus0.500 USD3.00 USD1,000,000 older than 30 days
Qwen3.7 Max qwen3.7-max2.50 USD7.50 USD1,000,000 older than 30 days
Qwen3.7 Plus qwen3.7-plus0.400 USD1.60 USD1,000,000 older than 30 days
Qwen3.8 Flash qwen3.8-flash0.150 USD0.470 USD1,000,000
Qwen3.8 Max qwen3.8-max2.00 USD6.00 USD1,000,000 older than 30 days
Space Bunny Free space-bunny-free0 USD0 USD1,048,576

Sources of this page