Alibaba Text Embedding v4
alibaba/text-embedding-v4Alibaba 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.
- 基础价格
- 不适用
- 执行
- sync
- 模型类型
- embedding
- 输入字段
- 3
试用该模型
Playground
您的输出将显示在这里
完成输入,然后点击运行。
模型卡片
规格
定价
- 输入
- $0.10 / 100 万 token
- 输出
- $0 / 100 万 token
上下文与模态
- 上下文窗口
- 8,192 个 token
- 支持的模式
- sync
- 输入
- 由 schema 定义
- 输出
- embedding
能力
- 聊天
- 不支持
- 视觉
- 不支持
- 推理
- 不支持
- 结构化输出
- 不支持
- 函数调用
- 不支持
- 音频输入
- 不支持
访问
- 提供方
- Alibaba
- 模型 ID
- alibaba/text-embedding-v4
- 执行
- sync
- 基础 URL
- https://api.sandbase.ai
- API
- Embeddings API
- 端点
- /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.
开始构建
发送您的第一条请求
具备统一身份验证和使用情况跟踪的 OpenAI 兼容端点。
curl -X POST "https://api.sandbase.ai/v1/embeddings" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "alibaba/text-embedding-v4",
"input": "SandBase provides a unified API for AI models, agents, and developer tools.",
"dimensions": 1024,
"encoding_format": "float"
}'输入 Schema
3 个参数 · 1 个必填 · 2 个可选
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
input | union | 必填 | Text or list of texts to embed. Each item supports up to 8192 tokens. |
dimensions | integer | 可选 | Output embedding dimension. · 选项:2048, 1536, 1024, 768, 512, 256, 128, 64 · 默认值:1024 20481536102476851225612864 |
encoding_format | string | 可选 | 选项:float · 默认值:"float" float |
输出 Schema
| 字段 | 类型 | 说明 |
|---|---|---|
object | string | 对象类型:"list" |
data | array | embedding 对象数组 |
data[].embedding | number[] | embedding 向量 |
data[].index | integer | 输入文本的索引 |
model | string | 使用的模型 |
usage.prompt_tokens | integer | 输入中的 token 数 |
usage.total_tokens | integer | 使用的 token 总数 |
选择您的模型
比较模型
| 模型 | 上下文 | 输入 / 100万 | 输出 / 100万 | 发布于 |
|---|---|---|---|---|
Alibaba | 8K | $0.10 | $0.00 | 2026年7月7日 |
Alibaba | — | — | — | 2026年11月14日 |
Alibaba | — | — | — | 2026年11月14日 |
Alibaba | — | — | — | 2026年11月14日 |
Alibaba | — | — | — | 2026年11月14日 |
Alibaba | — | — | — | 2026年11月14日 |
问题
常见问题
如何通过 SandBase 调用 Alibaba Text Embedding v4?
先创建一个 SandBase API key,然后向 https://api.sandbase.ai 的 Embeddings API (/v1/embeddings) 发送请求,模型 ID 使用“alibaba/text-embedding-v4”。本页的请求示例展示了准确的请求负载。
Alibaba Text Embedding v4 的价格是多少?
每 100 万输入 token $0.10、每 100 万输出 token $0,按请求从您的 SandBase 余额中扣费。若有折扣,会在本页的定价中显示。
Alibaba Text Embedding v4 的上下文窗口是多少?
上下文为 8.2K 个 token。
我需要单独的 Alibaba 账户吗?
不需要。一个 SandBase API key 和余额即可让您使用 Alibaba Text Embedding v4 以及目录中的其他模型;您无需单独注册 Alibaba。
