Model family
智谱 GLM
Model details
Call 智谱 GLM embedding-2 via Infistar: inspect the exact model ID, declared endpoints (embeddings), transparent CNY pricing, and ready-to-run examples.
Exact model IDembedding-2
智谱 GLM
embeddings
embedding
Settled by actual token usage
Input ¥0.5 / Output ¥0.5 per 1M tokens, cache read ¥0.5
Official: input ¥0.5
Call embedding-2 via POST /v1/embeddings using your Infistar API key:
curl https://infistar.ai/v1/embeddings \
-H "Authorization: Bearer $INFISTAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"embedding-2","input":"Unified multi-model AI API gateway"}'from openai import OpenAI
client = OpenAI(api_key="YOUR_INFISTAR_KEY", base_url="https://infistar.ai/v1")
res = client.embeddings.create(model="embedding-2", input="Unified multi-model AI API gateway")
print(len(res.data[0].embedding))Models and prices may change. Sign in to check available models and review current pricing before calling.