Build semantic search
Embed document chunks and queries with the same configuration, then compare them in your vector index.
qwen3-embedding-8bby Alibaba Qwen Open weightsapache-2.0
From€0.0081Input / 1M tokens
Qwen3 Embedding 8B turns text into vectors for semantic search and retrieval. Use it to find relevant passages before a separate language model writes an answer.
Embed document chunks and queries with the same configuration, then compare them in your vector index.
Retrieve useful passages for a user’s question and send those passages to a chat model. Embeddings retrieve; they do not generate the answer.
Explore document clustering or duplicate detection using vector similarity. Evaluate thresholds on your own collection.
BLADE_API_KEY in your server environment.import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.models.blade.sh/v1",
api_key=os.environ["BLADE_API_KEY"],
timeout=120.0,
)
model_id = "qwen3-embedding-8b"
models = client.models.list()
match = next(
(item for item in models.data
if item.id == model_id),
None,
)
if match is None:
raise RuntimeError("Model not listed for this account")
print(match.model_dump_json(indent=2))import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.models.blade.sh/v1",
apiKey: process.env.BLADE_API_KEY,
});
const models = await client.models.list();
const model = models.data.find(item => item.id === "qwen3-embedding-8b");
if (!model) throw new Error("Model not listed for this account");
console.log(model.id);# Requires jq
curl --fail-with-body "https://api.models.blade.sh/v1/models" \
-H "Authorization: Bearer ${BLADE_API_KEY}" | jq -e --arg id "qwen3-embedding-8b" '.data[] | select(.id == $id)'Set BLADE_API_KEY before running the example. This checks the account’s model list; it does not run inference. Copy the confirmed model-specific inference request from the console before integrating.
Open the console example ↗These starting rates are the lowest catalogue prices. The active rate may vary with GPU availability.
Catalogue updated 2026-12-06.
View the rate card ↗100,000 input tokens = €0.000810 at the displayed rate.
Qwen3 Embedding 8B turns text into vectors for semantic search and retrieval. Use it to find relevant passages before a separate language model writes an answer.
Input / 1M tokens: from €0.0081.
Blade lists a 7k context limit, which differs from the upstream model’s maximum. The current public API reference does not document an embeddings route; confirm request format, dimensions and normalization in the console.