Qwen Text Embedding V4
Embeddingbailian/text-embedding-v4Qwen Text Embedding V4 is Alibaba's latest text embedding model, served through Dashscope and producing 1024-dimensional vectors with improved accuracy. It is designed for semantic search and retrieval, RAG pipelines, clustering, classification, and similarity comparison. Input context: up to 8K tokens per request. Accessible via the OpenAI-compatible protocol, priced at $0.072/M input tokens.
Context Window
8K
Max Output Tokens
0
Released
2025-01-01
Available Providers
Aliyun
Supported Protocols
openai
Providers
Aliyun
Input Tokens
$0.072/M
Output Tokens
$0/M
Protocols
openai
/v1/embeddingsCode Examples
from openai import OpenAIclient = OpenAI(base_url="https://api.ofox.ai/v1",api_key="YOUR_OFOX_API_KEY",)response = client.embeddings.create(model="bailian/text-embedding-v4",input="Hello, world!",)print(response.data[0].embedding[:5])
Related Models
Frequently Asked Questions
Qwen Text Embedding V4 on Ofox.ai costs $0.072/M per million input tokens and $0 per million output tokens. Pay-as-you-go, no monthly fees.
Qwen Text Embedding V4 supports a context window of 8K tokens with max output of 0 tokens, allowing you to process large documents and maintain long conversations.
Simply set your base URL to https://api.ofox.ai/v1 and use your Ofox API key. The API is OpenAI-compatible โ just change the base URL and API key in your existing code.