# Qwen3 Embedding 4B

> Qwen3 Embedding 4B is the 4B size in the Qwen3 embedding and reranking family, between the 0.6B and 8B cuts. It embeds text over a 32,768-token window at 2,560 dimensions, supports 100+ languages, is instruction-aware for task prefixes, and supports Matryoshka truncation from 32 to 2,560 dimensions. It ranks below the 8B cut on MTEB multilingual but well above the 0.6B cut, at a much lower cost.

**ID**: `qwen/qwen3-embedding-4b`  
**Creator**: Qwen  
**Category**: embedding  
**Context**: 33K tokens  
**Input**: $0.02/M  
**Output**: $0  
**Released**: 2025-10-28  
**Web page**: https://anyrouter.dev/model/qwen/qwen3-embedding-4b

**Input modalities**: text  
**Output modalities**: embeddings  

**Tokenizer**: Qwen

**Capabilities**: embedding

**Supported parameters**: input, model, dimensions, encoding_format

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/embeddings`

```bash
curl https://anyrouter.dev/api/v1/embeddings \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen/qwen3-embedding-4b",
  "input": "The quick brown fox jumps over the lazy dog"
}'
```

Pass `input` as a string or an array of strings to embed a batch in one call.

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| openrouter-byok | $0 | $0 |

## Source

- Upstream docs: https://openrouter.ai/qwen/qwen3-embedding-4b
