Open-weights embedding model from Alibaba Cloud Model Studio. One API key reaches this provider and every other model in the catalog.
No card required. Start with 1 million free tokens.
About Qwen3-Embedding 4B
Qwen3-Embedding 4B is an open-weights embedding model published by Alibaba Cloud Model Studio, with a 32,768-token context window. Through TrustedRouter it runs on 1 provider, from $0.16 per million input tokens. One provider offers zero data retention, and Privatemode also runs it in a confidential enclave.
- Model ID
qwen/qwen3-embedding-4b- Publisher
- Alibaba Cloud Model Studio
- Modes
- embeddings
- Billing
- Credits
Set it up with your agent
Paste this into Claude Code, Cursor or any coding agent.
Use Qwen3-Embedding 4B through TrustedRouter in this project.
1. Read https://trustedrouter.com/llms.txt
2. Point the OpenAI-compatible client at
https://api.trustedrouter.com/v1 and read the key from
TRUSTEDROUTER_API_KEY.
3. Set the model to qwen/qwen3-embedding-4b.
4. Run the tests, then show me the diff before committing.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.trustedrouter.com/v1",
api_key=os.environ["TRUSTEDROUTER_API_KEY"],
)
response = client.embeddings.create(
model="qwen/qwen3-embedding-4b",
input="What is the capital of France?",
)
print(len(response.data[0].embedding))
curl https://api.trustedrouter.com/v1/embeddings \
-H "Authorization: Bearer $TRUSTEDROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "qwen/qwen3-embedding-4b", "input": "What is the capital of France?"}'
Providers
Open the row for retention, location and weight format, or see how we check privacy claims and the live speed leaderboard.
| Provider | Input | Cached | Output | Cost per 1M in + out | Details |
|---|---|---|---|---|---|
|
|
$0.161 | — | $0 | $0.16 | |
|
Retention Confidential compute with end-to-end encryption and zero data retention. Requests and responses are encrypted between TrustedRouter's enclave and release-pinned Privatemode workloads after attestation verification. Verification failures reject the request; there is no plaintext fallback. Privatemode explicitly states that prompts and responses are not stored after a request completes and are not used for training. Transient inference state may remain in a salt-isolated, in-memory prompt cache inside confidential workers until eviction. Operational metadata is retained for up to 90 days; per-key token usage is retained permanently for billing. Cache-routing metadata is visible to the provider edge. ZDR describes prompt/output retention, not metadata. Location Operator country: DE Headquarters / registered office: Not verified. Inference: EU-hosted inference, provider-declared; country and individual worker location unspecified. Privatemode declares EU hosting for its inference service. This does not establish an individual worker's country. Region pinning through TR: Not supported by the current TrustedRouter integration. Reviewed 2026-09-27. Weight format Unknown Price and speed Input $0.161491/1M · Cached input Not published · Output selected route TTFT: insufficient data Speed: insufficient data |
|||||
Questions
What model ID should I use for Qwen3-Embedding 4B?
Use qwen/qwen3-embedding-4b as the model field with the TrustedRouter OpenAI-compatible API. Credits routing and provider fallback happen behind that model ID.
Do you log my prompts or outputs?
No. Prompt and output content are intentionally excluded from the control plane and metadata systems. Optional content export requires explicit destination-level configuration.
Which providers serve Qwen3-Embedding 4B?
TrustedRouter currently lists Privatemode for Qwen3-Embedding 4B. Provider availability and routing eligibility can change as catalog and health data update.
How much does Qwen3-Embedding 4B cost through TrustedRouter?
The current lowest Credits input price is $0.161491/1M and the lowest Credits output price is selected route. Prices are per one million tokens and come from the current route catalog.
How do I require zero data retention for Qwen3-Embedding 4B?
Set provider.min_privacy to zdr on the request. TrustedRouter considers only routes with a recorded zero-data-retention posture and fails closed if no eligible route remains.
Qwen3-Embedding 4B vs other models
Start building with Qwen3-Embedding 4B.
No card required. Start with 1 million free tokens.
