Qwen-Embedding
Copy success!
Overview
This is a multilingual unified text vector model trained by Tongyi Lab based on Qwen3.7. Compared to text-embedding-v4, it has significantly improved performance in text retrieval, clustering, and classification. It achieves a 20% improvement on evaluation tasks such as MTEB multilingual, Chinese-English, and code retrieval. It supports user-defined vector dimensions ranging from 256 to 2560.
Input
Text
Output
Text
Features
Prefix Completion
Enable Partial Mode when calling the Qwen API to make the model continue strictly from your provided prefix text.View docsFunction Calling
Use function calling to connect large language models with external tools and systems.View docsCache
Context Cache stores shared prefixes for long-context requests to reduce repeated computation, improve latency, and lower cost.View docsStructured Outputs
Structured Outputs help ensure the model returns a JSON string in the expected format.View docsPricing
- Text Input$0.07Per 1M tokens
Rate Limits & Context
- Max Input128K
- Context128K
- TPMTokens Per Minute1000000
- RPMRequests Per Minute2000
API Reference
Call APICopy success!
123456789101112
import dashscope
from http import HTTPStatus
dashscope.base_http_api_url = "https://ap-southeast-1.maas.qwencloudapi.com/api/v1"
input_texts = "The quality of this shirt is great, looks really nice, worth the wait"
resp = dashscope.TextEmbedding.call(
model="qwen3.7-text-embedding",
input=input_texts
)
print(resp)