LiteLLMModels

Qwen3 4B API Pricing

As of October 10, 2026, Qwen3 4B costs $0.08 per 1M input tokens and $0.24 per 1M output tokens from Nebius AI Studio, the lowest of 3 providers. It has a 32,768-token context window and returns up to 32,768 tokens per response.

By AlibabaModel ID nebius/Qwen/Qwen3-4BPrices updated Checked
Input
$0.08 / 1M tokens
Output
$0.24 / 1M tokens
Context window
32,768 tokens
Max output
32,768 tokens
Providers
3
Added to LiteLLM
July 2025

Qwen3 4B pricing by provider

3 listings across 3 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

ProviderModel name in LiteLLMInputOutputContext
Nebius AI Studionebius/Qwen/Qwen3-4B$0.08$0.2432K
Fireworks AIfireworks_ai/accounts/fireworks/models/qwen3-4b$0.20$0.2040K
Novita AIfp8novita/qwen/qwen3-4b-fp8$0.03$0.03128K

What Qwen3 4B costs in practice

1,000 requests with 2,000 input and 500 output tokens each

Nebius AI Studio$0.28
Fireworks AI$0.50

Qwen3 4B features

Use Qwen3 4B with LiteLLM

Call Qwen3 4B through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import completion

response = completion(
    model="nebius/Qwen/Qwen3-4B",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: qwen3-4b
    litellm_params:
      model: nebius/Qwen/Qwen3-4B
      # credentials: see the provider's LiteLLM docs page
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-1234" \
  -d '{
    "model": "qwen3-4b",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Qwen3 4B FAQ

How much does Qwen3 4B cost?

Qwen3 4B costs $0.08 per 1M input tokens and $0.24 per 1M output tokens from Nebius AI Studio, the lowest of 3 providers.

What is the context window of Qwen3 4B?

Qwen3 4B has a 32,768-token context window and returns up to 32,768 tokens per response.

Which providers offer Qwen3 4B?

Qwen3 4B is available from 3 providers through LiteLLM: Nebius AI Studio, Fireworks AI and Novita AI. The lowest price is on Nebius AI Studio.

How do I call Qwen3 4B with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="nebius/Qwen/Qwen3-4B", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

What features does Qwen3 4B support?

Qwen3 4B supports function calling and reasoning.

When did LiteLLM add Qwen3 4B?

Qwen3 4B was added to LiteLLM's model price file in July 2025.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Provider pricing pages:

LiteLLM docs: Nebius AI Studio, Fireworks AI.

Provider pages: Nebius AI Studio, Fireworks AI, Novita AI.