Qwen-Embedding
Copy success!
Overview
The General Text Vector V4 version is a multi-language text vector model developed by the Tongyi Lab based on Qwen3. Compared to the V3 version, it significantly improves performance in text retrieval, clustering, and classification tasks. It achieves a 15% to 40% improvement in evaluation tasks such as MTEB multilingual, Chinese-English, and code retrieval. Additionally, it supports user-defined vector dimensions ranging from 64 to 2048.
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
- TPMTokens Per Minute1M
- RPMRequests Per Minute1K
API Reference
Call APICopy success!
123456789
import dashscope
from http import HTTPStatus
input_texts = "The quality of the clothes is excellent, very beautiful. It was worth the long wait. I like it and will come back to buy here again"
resp = dashscope.TextEmbedding.call(
model="text-embedding-v4",
input=input_texts
)
print(resp)