Qwen-Embedding
Copied!
Embedding
Overview
Embedding
The general text vectorization model is a multilingual unified text vectorization model developed by Tongyi Lab based on the large language model (LLM) foundation. This model is designed for multiple mainstream languages worldwide and provides advanced vectorization services to help developers convert text data into high-quality vector data.
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 docsBatches
feature.funeTuning
Pricing
- Embedding(Batch File)$0.035Per 1M tokens
- Text Input$0.07Per 1M tokens
Rate Limits
- RPMRequests Per Minute6K
- TPMTokens Per Minute24M
API Reference
Get API KeyCopied!
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)