Skip to content
Qwen logo

qwen3-embedding-0.6b

Text Embeddings • Qwen

The Qwen3 Embedding model series is the latest proprietary model of the Qwen family, specifically designed for text embedding and ranking tasks.

Model Info
Context Window8,192 tokens
Unit Pricing$0.012 per M input tokens

Usage

export interface Env {
AI: Ai;
}
export default {
async fetch(request, env): Promise<Response> {
// Can be a string or array of strings]
const stories = [
"This is a story about an orange cloud",
"This is a story about a llama",
"This is a story about a hugging emoji",
];
const embeddings = await env.AI.run(
"@cf/qwen/qwen3-embedding-0.6b",
{
text: stories,
}
);
return Response.json(embeddings);
},
} satisfies ExportedHandler<Env>;

Parameters

instruction
stringdefault: Given a web search query, retrieve relevant passages that answer the queryOptional instruction for the task

API Schemas (Raw)

Input
Output