# Qwen3 4B Instruct 2507 API Pricing

As of October 10, 2026, Qwen3 4B Instruct 2507 costs $0.20 per 1M input tokens and $0.20 per 1M output tokens on Fireworks AI. It has a 262,144-token context window and returns up to 262,144 tokens per response.

- Page: https://models.litellm.ai/models/qwen3-4b-instruct-2507
- Lab: Alibaba
- LiteLLM model name: `fireworks_ai/accounts/fireworks/models/qwen3-4b-instruct-2507`
- Context window: 262,144 tokens
- Max output: 262,144 tokens
- Added to LiteLLM: October 2025
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| Fireworks AI | `fireworks_ai/accounts/fireworks/models/qwen3-4b-instruct-2507` | $0.20 | $0.20 | – | – | – | 256K |
| Lemonade (gguf) | `lemonade/Qwen3-4B-Instruct-2507-GGUF` | $0 | $0 | – | – | – | 256K |

## Cost examples

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

- Fireworks AI: $0.50

100 long-document requests with 100,000 input and 2,000 output tokens each:

- Fireworks AI: $2.04

## Features

Supported: Function calling, Structured output.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="fireworks_ai/accounts/fireworks/models/qwen3-4b-instruct-2507",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## FAQ

### How much does Qwen3 4B Instruct 2507 cost?

Qwen3 4B Instruct 2507 costs $0.20 per 1M input tokens and $0.20 per 1M output tokens on Fireworks AI.

### What is the context window of Qwen3 4B Instruct 2507?

Qwen3 4B Instruct 2507 has a 262,144-token context window and returns up to 262,144 tokens per response.

### Which providers offer Qwen3 4B Instruct 2507?

Qwen3 4B Instruct 2507 is available from 2 providers through LiteLLM: Fireworks AI and Lemonade.

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

Use the LiteLLM Python SDK with model="fireworks_ai/accounts/fireworks/models/qwen3-4b-instruct-2507", 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 Instruct 2507 support?

Qwen3 4B Instruct 2507 supports function calling and structured output.

### When did LiteLLM add Qwen3 4B Instruct 2507?

Qwen3 4B Instruct 2507 was added to LiteLLM's model price file in October 2025.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
