Back to Models

Embedding 2

zhipuzhipu/embedding-2

Zhipu AI Embedding 2 β€” text embedding model with fixed 1024-dim output.

Context Length
512
Max Output
--
Input Priceper 1M tokens
$0.120/ 1M tokens

Modalities

text→embedding

Pricing Breakdown

TypeRate
Input$0.120 / 1M tokens

Supported Parameters

inputencoding_formatuser

API Usage Examples

Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "zhipu/embedding-2",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'
Customer Support