Alibaba Text Embedding v4

alibaba/text-embedding-v4

Alibaba Cloud Model Studio text-embedding-v4 is a Qwen3-Embedding series text embedding model for semantic search, retrieval-augmented generation, clustering, classification, and multilingual code/text retrieval. It supports configurable output dimensions and OpenAI-compatible embeddings requests.

Base price
N/A
Execution
sync
Model type
embedding
Input fields
3
Production route

Try the model

Playground

Open playground
Input
Text or list of texts to embed. Each item supports up to 8192 tokens.
Output embedding dimension. Allowed values: 2048, 1536, 1024, 768, 512, 256, 128, 64.
Allowed values: float.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

Model card

Specifications

Pricing

Input
$0.10 / 1M tokens
Output
$0 / 1M tokens

Context & modalities

Context window
8,192 tokens
Supported modes
sync
Input
Schema-defined
Output
embedding

Capabilities

Chat
Not supported
Vision
Not supported
Reasoning
Not supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
Alibaba
Model ID
alibaba/text-embedding-v4
Execution
sync
Base URL
https://api.sandbase.ai
API
Embeddings API
Endpoint
/v1/embeddings

API README

Alibaba text-embedding-v4 converts text into dense vectors for semantic search, RAG, clustering, classification, and multilingual retrieval. It belongs to the Qwen3-Embedding series and supports configurable output dimensions: 2048, 1536, 1024, 768, 512, 256, 128, and 64.

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Embeddings API endpoint
https://api.sandbase.ai/v1/embeddings
Model ID
alibaba/text-embedding-v4
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/embeddings" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "alibaba/text-embedding-v4",
  "input": "SandBase provides a unified API for AI models, agents, and developer tools.",
  "dimensions": 1024,
  "encoding_format": "float"
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Choose your model

Compare models

All language models
ModelContextInput / 1MOutput / 1MReleased
Alibaba8K$0.10$0.00Jul 7, 2026
Alibaba———Oct 4, 2026
Alibaba———Oct 4, 2026
Alibaba———Oct 4, 2026
Alibaba———Oct 4, 2026
Alibaba1M$4.00$12.00Sep 23, 2026

Questions

FAQ

How do I call Alibaba Text Embedding v4 through SandBase?

Create a SandBase API key, then send requests with the model ID "alibaba/text-embedding-v4" to Embeddings API (/v1/embeddings) at https://api.sandbase.ai. The request examples on this page show the exact payload.

How much does Alibaba Text Embedding v4 cost?

$0.10 per 1M input tokens and $0 per 1M output tokens, billed per request from your SandBase balance. Discounts, when available, are shown in the pricing on this page.

What is the context window of Alibaba Text Embedding v4?

8.2K tokens of context.

Do I need a separate Alibaba account?

No. One SandBase API key and balance gives you access to Alibaba Text Embedding v4 and the other models in the catalog; you do not need to sign up with Alibaba separately.