Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Alibaba Cloud - API - verified

Text Embedding V4 embeddings

Text Embedding V4 is a current embedding model from Alibaba Cloud, called by API as text-embedding-v4. It returns 1,024-dimension vectors by default and accepts up to 8,192 input tokens, for text and code input. The first-party list price is $0.07 per 1M input tokens.

CurrentModel id: text-embedding-v4

Default dims
1,024
Max input
8,192 tok
Price / 1M
$0.07
Inputs
Text, Code

Dimensions

Flexible output size
  • 2,048
  • 1,536
  • 1,024default
  • 768
  • 512
  • 256
  • 128
  • 64

Default output: 1,024 dimensions.

Listed sizes: 2,048, 1,536, 1,024, 768, 512, 256, 128 and 64.

Alibaba Cloud documents shorter output vectors for this model (Matryoshka-style), so you can store smaller embeddings by asking for fewer dimensions instead of re-embedding with another model.

Pricing

Per 1M input tokens
$0.07
Batch, per 1M
Not stated

Singapore (International) price; China (Beijing) is $0.072 and Hong Kong (China) is $0.07; 1 million free tokens for 90 days.

Source: alibabacloud.com/help/en/model-studio/model-pricing

Usage

The sources read for this directory publish no copyable snippet for Text Embedding V4. Call it with the model id text-embedding-v4 as shown in the provider docs linked under Sources.

Worth knowing

Part of the Qwen3-Embedding series, covering 100+ languages and multiple programming languages, with up to 10 texts of 8,192 tokens each per request and task instruction support.

Release date not stated in the sources. Multilingual: yes.

FAQ

How many dimensions does Text Embedding V4 output?

Default output: 1,024 dimensions. Listed sizes: 2,048, 1,536, 1,024, 768, 512, 256, 128 and 64. Alibaba Cloud documents shorter output vectors for this model (Matryoshka-style), so you can store smaller embeddings by asking for fewer dimensions instead of re-embedding with another model.

What is the max input length of Text Embedding V4?

8,192 tokens per input, per Alibaba Cloud's documentation. Longer text has to be chunked before you embed it.

How much does Text Embedding V4 cost?

The first-party list price is $0.07 per 1M input tokens. Singapore (International) price; China (Beijing) is $0.072 and Hong Kong (China) is $0.07; 1 million free tokens for 90 days. Source: https://www.alibabacloud.com/help/en/model-studio/model-pricing.

What can Text Embedding V4 embed?

Text and code input, per the provider. It is documented as multilingual.

Sources

Last verified from the pages below.

More Alibaba Cloud embedding models

Default dimensions, max input tokens and list price per 1M tokens.

Alibaba Cloud (Qwen) API modelsPrices per 1M tokens, context windows and specs for every Alibaba Cloud (Qwen) model in the API registry.

All embedding models

Newsletter

New models, every week

One email per week. New model releases, embedding and retrieval updates and what they mean for what you build.