Baltor Get started

Endpoints

Alibaba

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://dashscope-intl.aliyuncs.com/compatible-mode/v1 models.dev, read
Authentication
Authorization: Bearer, with the key in DASHSCOPE_API_KEY models.dev, read
Structured output
Unknown
Tool calling
51 of 56 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-0731 with the model you want.

OpenCode

Put this in opencode.json in your project folder:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "alibaba": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Alibaba",
      "options": {
        "baseURL": "https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
        "apiKey": "{env:DASHSCOPE_API_KEY}"
      },
      "models": {
        "deepseek-v4-flash-0731": {
          "name": "deepseek-v4-flash-0731"
        }
      }
    }
  }
}
  • 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": {
    "alibaba": {
      "baseUrl": "https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
      "api": "openai-completions",
      "apiKey": "$DASHSCOPE_API_KEY",
      "models": [
        {
          "id": "deepseek-v4-flash-0731"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and Alibaba 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 Alibaba 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 0731 deepseek-v4-flash-07310.200 USD0.400 USD1,000,000 older than 30 days
GLM-5.2 glm-5.21.40 USD4.40 USD1,000,000 older than 30 days
Kimi K3 kimi-k33.00 USD15.00 USD1,048,576 older than 30 days
QVQ Max qvq-max1.20 USD4.80 USD131,072 older than 30 days
Qwen Flash qwen-flash0.050 USD0.400 USD1,000,000 older than 30 days
Qwen Max qwen-max1.60 USD6.40 USD32,768 older than 30 days
Qwen-MT Plus qwen-mt-plus2.46 USD7.37 USD16,384
Qwen-MT Turbo qwen-mt-turbo0.160 USD0.490 USD16,384
Qwen-Omni Turbo qwen-omni-turbo0.070 USD0.270 USD32,768 older than 30 days
Qwen-Omni Turbo Realtime qwen-omni-turbo-realtime0.270 USD1.07 USD32,768 older than 30 days
Qwen Plus qwen-plus0.400 USD1.20 USD1,000,000 older than 30 days
Qwen Plus Character (Japanese) qwen-plus-character-ja0.500 USD1.40 USD8,192
Qwen Turbo qwen-turbo0.050 USD0.200 USD1,000,000 older than 30 days
Qwen-VL Max qwen-vl-max0.800 USD3.20 USD131,072 older than 30 days
Qwen-VL OCR qwen-vl-ocr0.720 USD0.720 USD34,096 older than 30 days
Qwen-VL Plus qwen-vl-plus0.210 USD0.630 USD131,072 older than 30 days
Qwen2.5 14B Instruct qwen2-5-14b-instruct0.350 USD1.40 USD131,072
Qwen2.5 32B Instruct qwen2-5-32b-instruct0.700 USD2.80 USD131,072
Qwen2.5 72B Instruct qwen2-5-72b-instruct1.40 USD5.60 USD131,072
Qwen2.5 7B Instruct qwen2-5-7b-instruct0.175 USD0.700 USD131,072
Qwen2.5-Omni 7B qwen2-5-omni-7b0.100 USD0.400 USD32,768
Qwen2.5-VL 72B Instruct qwen2-5-vl-72b-instruct2.80 USD8.40 USD131,072
Qwen2.5-VL 7B Instruct qwen2-5-vl-7b-instruct0.350 USD1.05 USD131,072
Qwen3 14B qwen3-14b0.350 USD1.40 USD131,072
Qwen3 235B-A22B qwen3-235b-a22b0.700 USD2.80 USD131,072
Qwen3 32B qwen3-32b0.700 USD2.80 USD131,072
Qwen3 8B qwen3-8b0.180 USD0.700 USD131,072
Qwen3-ASR Flash qwen3-asr-flash0.035 USD0.035 USD53,248 older than 30 days
Qwen3-Coder 30B-A3B Instruct qwen3-coder-30b-a3b-instruct0.450 USD2.25 USD262,144
Qwen3-Coder 480B-A35B Instruct qwen3-coder-480b-a35b-instruct1.50 USD7.50 USD262,144
Qwen3 Coder Flash qwen3-coder-flash0.300 USD1.50 USD1,000,000 older than 30 days
Qwen3 Coder Plus qwen3-coder-plus1.00 USD5.00 USD1,048,576 older than 30 days
Qwen3-LiveTranslate Flash Realtime qwen3-livetranslate-flash-realtime10.00 USD10.00 USD53,248 older than 30 days
Qwen3 Max qwen3-max1.20 USD6.00 USD262,144 older than 30 days
Qwen3-Next 80B-A3B Instruct qwen3-next-80b-a3b-instruct0.500 USD2.00 USD131,072
Qwen3-Next 80B-A3B (Thinking) qwen3-next-80b-a3b-thinking0.500 USD6.00 USD131,072
Qwen3-Omni Flash qwen3-omni-flash0.430 USD1.66 USD65,536 older than 30 days
Qwen3-Omni Flash Realtime qwen3-omni-flash-realtime0.520 USD1.99 USD65,536 older than 30 days
Qwen3-VL 235B-A22B qwen3-vl-235b-a22b0.700 USD2.80 USD131,072
Qwen3-VL 30B-A3B qwen3-vl-30b-a3b0.200 USD0.800 USD131,072
Qwen3-VL Plus qwen3-vl-plus0.200 USD1.60 USD262,144 older than 30 days
Qwen3.5 122B-A10B qwen3.5-122b-a10b0.400 USD3.20 USD262,144 older than 30 days
Qwen3.5 27B qwen3.5-27b0.300 USD2.40 USD262,144 older than 30 days
Qwen3.5 35B-A3B qwen3.5-35b-a3b0.250 USD2.00 USD262,144 older than 30 days
Qwen3.5 397B-A17B qwen3.5-397b-a17b0.600 USD3.60 USD262,144 older than 30 days
Qwen3.5 Plus qwen3.5-plus0.400 USD2.40 USD1,000,000 older than 30 days
Qwen3.6 27B qwen3.6-27b0.600 USD3.60 USD262,144 older than 30 days
Qwen3.6 35B-A3B qwen3.6-35b-a3b0.248 USD1.49 USD262,144 older than 30 days
Qwen3.6 Flash qwen3.6-flash0.188 USD1.12 USD1,000,000 older than 30 days
Qwen3.6 Max Preview qwen3.6-max-preview1.30 USD7.80 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.500 USD3.00 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
QwQ Plus qwq-plus0.800 USD2.40 USD131,072 older than 30 days

Sources of this page