Baltor Get started

Models

Qwen3.5-9B

By Qwen. 9.7 billion parameters, a context window of 262,144 tokens and the licence apache-2.0.

Facts

Released
2026-02-27 the day the repository was first published on Hugging Face Hugging Face, read
Licence
apache-2.0 the licence the model card declares Hugging Face, read
Open weights
Yes the weights are published in this Hugging Face repository Hugging Face, read
Parameters
9.7 billion counted from the safetensors weight files Hugging Face, read
Active parameters
Unknown
Knowledge cutoff
Unknown
Context window
  • 262,144 tokens the maximum position embeddings in the model configuration model configuration, read
  • 262,144 tokens the context length OpenRouter lists OpenRouter, read
Longest output
  • 32,768 tokens the largest output OpenRouter's first provider allows OpenRouter, read
Tool calling
  • Yes the chat template in the tokenizer configuration accepts tool definitions Hugging Face, read
  • Yes OpenRouter lists tools among the supported parameters OpenRouter, read
Structured output
  • Yes OpenRouter lists structured outputs among the supported parameters OpenRouter, read
Reasoning controls
  • Yes OpenRouter lists reasoning controls OpenRouter, read
Inputs and outputs
text, image in, text out Hugging Face, read
Good for
  • Vision: Hugging Face files it under image-text-to-text Hugging Face, read
  • Reasoning: OpenRouter lists reasoning controls for it OpenRouter, read

Prices

Prices in US dollars per million tokens, as each source lists them
ProviderInputOutputContextAs ofSource
NanoGPT direct0.050 USD0.150 USD256,000 older than 30 days; check the providermodels.dev, read
Darkbloom through OpenRouter0.080 USD0.130 USD262,144OpenRouter endpoints, read
Merge Gateway direct0.090 USD0.130 USD262,144 older than 30 days; check the providermodels.dev, read
Deep Infra direct0.100 USD0.150 USD262,144 older than 30 days; check the providermodels.dev, read
DeepInfra through OpenRouter0.100 USD0.150 USD262,144OpenRouter endpoints, read
Kilo Gateway direct0.100 USD0.150 USD256,000 older than 30 days; check the providermodels.dev, read
OpenRouter direct0.100 USD0.150 USD262,144 older than 30 days; check the providermodels.dev, read
SiliconFlow direct0.100 USD0.150 USD262,144 older than 30 days; check the providermodels.dev, read
SiliconFlow through OpenRouter0.100 USD0.150 USD262,144OpenRouter endpoints, read
Venice through OpenRouter0.100 USD0.150 USD256,000OpenRouter endpoints, read
Parasail through OpenRouter0.100 USD0.250 USD262,144OpenRouter endpoints, read
Mixlayer direct0.100 USD0.400 USD262,144 older than 30 days; check the providermodels.dev, read
TensorX direct0.150 USD0.200 USD262,144 older than 30 days; check the providermodels.dev, read
Hugging Face direct0.170 USD0.250 USD262,144 older than 30 days; check the providermodels.dev, read
Together through OpenRouter0.170 USD0.250 USD262,144OpenRouter endpoints, read
Together AI direct0.170 USD0.250 USD262,144 older than 30 days; check the providermodels.dev, read
SiliconFlow (China) direct0.220 USD1.74 USD262,144 older than 30 days; check the providermodels.dev, read
Pioneer direct0.300 USD0.300 USD32,768 older than 30 days; check the providermodels.dev, read

Run it on your own hardware

Weights are the sizes of the files a source lists, or an estimate from the parameter count where none does. Memory is an estimate: weights plus KV cache plus 512 MiB and 5 percent of the weights for runtime buffers. Check it against your hardware.

QuantizationWeightsMemory at 8,192 tokensMemory at 32,768 tokens
UD-IQ2_XXS3.0 GiB3.9 GiB4.6 GiB
UD-IQ2_M3.4 GiB4.3 GiB5.1 GiB
UD-IQ3_XXS3.7 GiB4.7 GiB5.4 GiB
UD-Q2_K_XL3.8 GiB4.8 GiB5.5 GiB
Q3_K_S4.0 GiB5.0 GiB5.7 GiB
Q3_K_M4.4 GiB5.3 GiB6.1 GiB
UD-Q3_K_XL4.7 GiB5.7 GiB6.4 GiB
IQ4_XS4.8 GiB5.8 GiB6.6 GiB
IQ4_NL5.0 GiB6.0 GiB6.8 GiB
Q4_05.0 GiB6.0 GiB6.8 GiB
Q4_K_S5.0 GiB6.0 GiB6.8 GiB
Q4_K_M5.3 GiB6.3 GiB7.1 GiB
Q4_15.4 GiB6.5 GiB7.2 GiB
UD-Q4_K_XL5.6 GiB6.6 GiB7.3 GiB
Q5_K_S5.9 GiB7.0 GiB7.7 GiB
Q5_K_M6.1 GiB7.2 GiB7.9 GiB
UD-Q5_K_XL6.3 GiB7.3 GiB8.1 GiB
Q6_K6.9 GiB8.0 GiB8.8 GiB
UD-Q6_K_XL8.2 GiB9.3 GiB10.1 GiB
Q8_08.9 GiB10.1 GiB10.8 GiB
BF1616.7 GiB18.3 GiB19.0 GiB

Start it with a local runtime

  • Ollama
    ollama run hf.co/unsloth/Qwen3.5-9B-GGUF:Q4_0
  • LM Studio
    lms get unsloth/Qwen3.5-9B-GGUF
    lms server start
  • llama.cpp server
    llama-server -hf unsloth/Qwen3.5-9B-GGUF:Q4_0 --jinja
  • vLLM
    vllm serve Qwen/Qwen3.5-9B
  • SGLang
    sglang serve --model-path Qwen/Qwen3.5-9B --port 30000

Use it from your harness

Set up for DeepInfra with the model Qwen/Qwen3.5-9B. Each endpoint page has the same setup for its own address.

OpenCode

Put this in opencode.json in your project folder:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "deepinfra": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "DeepInfra",
      "options": {
        "baseURL": "https://api.deepinfra.com/v1/openai",
        "apiKey": "{env:DEEPINFRA_TOKEN}"
      },
      "models": {
        "Qwen/Qwen3.5-9B": {
          "name": "Qwen3.5-9B",
          "limit": {
            "context": 262144,
            "output": 32768
          }
        }
      }
    }
  }
}
  • 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": {
    "deepinfra": {
      "baseUrl": "https://api.deepinfra.com/v1/openai",
      "api": "openai-completions",
      "apiKey": "$DEEPINFRA_TOKEN",
      "models": [
        {
          "id": "Qwen/Qwen3.5-9B"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and DeepInfra 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

Put this in ~/.claude/settings.json, or variables in your shell:

export ANTHROPIC_BASE_URL="https://api.deepinfra.com/anthropic"
export ANTHROPIC_AUTH_TOKEN="$DEEPINFRA_TOKEN"
export ANTHROPIC_MODEL="Qwen/Qwen3.5-9B"
claude
  • 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 .

Other ways to reach it

Published results

These are results other people published. Baltor did not run them and does not rank models by them.