Qwen3 Embedding 8B

QWEN3_EMBEDDING_8B

High-accuracy multilingual text and code embeddings for search and retrieval in over 100 languages, Azerbaijani included.

Embeddingsembeddingsmultilingualcodesearchragqwenapache-2.0Fine-tunable
Qwen3 Embedding 8B: Embeddings model on Kainguru

About Qwen3 Embedding 8B

Capabilities

  • 100+ languages and code — one vector space for text in many languages and for source code
  • Search-ready — query mode adds the web-search instruction the model was trained with
  • 4096-dimensional vectors — unit length by default, ready for cosine similarity

Good to know

  • Its 4096-dimensional vectors allow at most 16 texts per request.
  • The vectors are Matryoshka-trained, so their first 32 to 4,096 numbers, re-normalised, still work as smaller vectors.
  • Texts longer than 8,192 tokens are truncated. Fine-tuning trains a LoRA adapter on the first 512 tokens of each text.
  • Query mode adds the instruction "Given a web search query, retrieve relevant passages that answer the query"; passages need none.
  • Texts may not contain the model's control tokens, such as <|im_start|> or <|endoftext|>.

Qwen3 Embedding 8B inputs and output

NameTypeRequiredDefaultDetails
textstextYes—One text, or a JSON array of up to 64 texts (fewer for models with large vectors: at most 65,536 numbers per response).
1–200130 characters
modetextNopassagequery for search queries, passage for the documents being searched (adds the model's prefixes where it has them).
Allowed: query, passage
normalizebooleanNotrueReturn unit-length vectors, ready for cosine similarity.

Output. JSON: {"embeddings": [[...], ...], "dimensions": n}.

Run Qwen3 Embedding 8B with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=QWEN3_EMBEDDING_8B" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "texts": "example",
    "mode": "passage",
    "normalize": true
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "QWEN3_EMBEDDING_8B",
        {
          "texts": "example",
          "mode": "passage",
          "normalize": True
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune Qwen3 Embedding 8B

You can fine-tune Qwen3 Embedding 8B on your own data and run the tuned model through the same API. Dataset: Up to 10 JSONL files, 256 MiB in total, one {"anchor": "...", "positive": "..."} object per line: a text and one that belongs with it, such as a question and its answer. 8 to 200,000 pairs.

The steps are in the docs.

Qwen3 Embedding 8B pricing

Price per 1M tokens: 13.8 credits ($0.138). The price is shown again before every run; all prices are on the pricing page.

Licence and source

Qwen3 Embedding 0.6B: Embeddings model on Kainguru
Embeddings

Qwen3 Embedding 0.6B

Multilingual text and code embeddings for search, retrieval and clustering in over 100 languages, Azerbaijani included.

Fine-tunable
Qwen3 Reranker 4B: Embeddings model on Kainguru
Embeddings

Qwen3 Reranker 4B

Multilingual reranker that scores how well each of up to 100 documents answers a query, in over 100 languages and code.

Fine-tunable
Qwen3-VL Embedding 2B: Embeddings model on Kainguru
Embeddings

Qwen3-VL Embedding 2B

Qwen3-VL Embedding 2B turns text, pictures and a text with its picture into vectors in one space, to search pages and…

Fine-tunable
BGE-M3: Embeddings model on Kainguru
Embeddings

BGE-M3

Multilingual embeddings for search and retrieval in over 100 languages, for texts up to 8,192 tokens.

Fine-tunable
Nomic Embed Text v1: Embeddings model on Kainguru
Embeddings

Nomic Embed Text v1

English text embeddings for search, clustering and classification, for texts up to 8,192 tokens long.

Fine-tunable