Qwen Text Embedding V4
Embeddingbailian/text-embedding-v4Alibaba Text Embedding V4 via Dashscope. Latest embedding model with improved accuracy, 1024 dimensions, and 8K context support.
8K context window
0 max output tokens
Released: 2025-01-01
Supported Protocols:openai
Available Providers:Aliyun
Pricing
| Type | Price |
|---|---|
| Input Tokens | $0.072/M |
| Output Tokens | $0/M |
Code 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.