Skip to content

Qwen

Text Embedding v4

Converts multilingual text into search vectors with configurable dimensions.

qwen/text-embedding-v4
Input → Output
Text/Text → Embeddings (vectors)
Maximum input
8.2K tokens
Provider
1
Tool invocation
-

Price per million tokens

Input
113.4 credits

Provider

Several providers serve the same model. Performance is measured on actual AlpRouter requests over the last seven days, and uptime over the last three.

ProviderInput / 1MOutput / 1MCache readFirst tokenThroughputUptime
Alibaba Cloud113.4 credits-----

Time to first token and throughput are medians (P50). Values are hidden for fewer than 10 requests.

Performance

The “throughput” refers to the speed at which answers are written (the higher the better). The “first token” refers to the time it takes for the first character of the answer to appear (the lower the better). The “total time” refers to the time it takes for one request to be processed completely. The average value is calculated based on the last 7 requests of the user with ID 128.

Duration
0.20 seconds
Alibaba Cloud

Use the API

from openai import OpenAI

client = OpenAI(
    base_url="https://alprouter.com/api/v1",
    api_key="alp-your-key",
)

result = client.embeddings.create(
    model="qwen/text-embedding-v4",
    input="Text to search for",
)
print(result.data[0].embedding)

Details

Maximum input
8.2K tokens
Supported input
Text/Text
Provider
Alibaba Cloud
Supported parameters
dimensions, encoding_format, input

Frequently asked questions

What kind of model is Text Embedding v4?

A model from Qwen. Converts multilingual text into search vectors with configurable dimensions. Model ID on AlpRouter: qwen/text-embedding-v4

How much does Text Embedding v4 cost?

113.4 credits per million input tokens. One credit equals ₩1. Only usage is deducted from your balance. There is no monthly subscription.

How much input does Text Embedding v4 accept?

Each request accepts up to 8.2K tokens.

What input and output does Text Embedding v4 support?

Send Text/Text to receive Embeddings (vectors).

Which providers handle Text Embedding v4 requests?

Alibaba Cloud handles these requests.

How do I call Text Embedding v4 from code?

Just replace the base_url in the OpenAI SDK with https://alprouter.com/api/v1. Also, specify the name of the model in the model field (qwen/text-embedding-v4). There’s an example of how to do this in the “Using the API” section above.

Other models from Qwen