Alibaba

Alibaba

Qwen3 Embedding 4B

2560-dimension embeddings — the middle of the Qwen3 retrieval line. Recall lands between the 0.6B and the 8B, and so does the price. Use it when the 0.6B misses too much and the 8B's 4096-dimension vectors cost too much to store.

Modalities

Text → Text

Input

$0.027 /1M

Output

$0.00 /1M

Cached input

$0.0027 /1M90% off

Context

33K

Speed

medium

Pricing

Pay per token. Cached input is billed at 10% of the input rate.

$0.027 /1M input$0.00 /1M output
Hobby10 req/day · 2K in / 500 out
~$0.02/mo
Production1,000 req/day · 2K in / 500 out
~$1.62/mo
Scale20,000 req/day · 2K in / 500 out
~$32.40/mo
+ Estimate your workload
1,000
2,000
500
30%

Estimated monthly cost

$1.18

$0.0394 / day on Qwen3 Embedding 4B

Same workload on:

Qwen 3.7 Flash$5.73+384%
Qwen 3.7 Max$269+22625%

Estimates use list pricing with cached input billed at the 90%-discount rate. Actual bills depend on real token counts — every response includes its exact cost.

How it compares

Against the peers people actually weigh it against.

SpecQwen3 Embedding 4BQwen 3.7 FlashQwen 3.7 Max
Input /1M$0.027$0.0458$2.56
Output /1M$0.00$0.1987$7.676
Context33K1M1M
ToolsYesYesYes
ReasoningNoYesYes
Speedmediumfastmedium

Quick start

Up and running in under two minutes.

  1. 1

    Create an API key

    Sign up and grab a key from the dashboard — $0.50 free credit, no card required.

    Get API key →
  2. 2

    Make your first request

    Drop in your key and send a chat completion — fully OpenAI-compatible.

    curl https://kymaapi.com/v1/chat/completions \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "qwen3-embedding-4b",
        "messages": [
          {"role": "user", "content": "Explain prompt caching in one paragraph."}
        ]
      }'
  3. 3

    Stream responses

    Add "stream": true to receive tokens as they arrive.

    curl https://kymaapi.com/v1/chat/completions \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "qwen3-embedding-4b",
        "stream": true,
        "messages": [{"role": "user", "content": "Hello!"}]
      }'

FAQ

Common questions about this model.

What is the context window of Qwen3 Embedding 4B?

Qwen3 Embedding 4B has a 33K-token context window — roughly 48 pages of text in a single request.

How much does the Qwen3 Embedding 4B API cost?

$0.027 per 1M input tokens and $0.00 per 1M output tokens, with cached input at $0.0027/1M — a 90% discount on repeated prompt prefixes. No subscription; you pay only for what you use.

Does Qwen3 Embedding 4B support function calling?

Yes — Qwen3 Embedding 4B supports tool/function calling and structured outputs (JSON mode), so it works with agent frameworks out of the box.

How do I use Qwen3 Embedding 4B?

Kyma is OpenAI-compatible: point your SDK's base URL at https://kymaapi.com/v1, use your Kyma API key, and set the model to qwen3-embedding-4b. Signing up is free and includes $0.50 of credit — no card required.

Start with $0.50 free credit — no card required.Create account →

More models by Alibaba

See all 10
ModelContextInputOutput
AlibabaQwen 3.7 Flash1M$0.0458$0.1987
AlibabaQwen 3.7 Plus1M$0.4482$1.793
AlibabaQwen 3.7 Max1M$2.56$7.676
AlibabaQwen 3.6 Plus131K$0.4388$2.633
AlibabaQwen 3 Coder131K$0.297$1.35
AlibabaQwen3 Reranker 8B41K$0.135$0.00
AlibabaQwen3 Embedding 0.6B33K$0.0135$0.00
AlibabaQwen3 Embedding 8B33K$0.0135$0.00