品牌
Gemini
模型详情
通过无限星河AI(Infistar)调用 Gemini 的 gemini-3.1-pro-preview-customtools:查看精确模型 ID、兼容端点(openai-response · anthropic · gemini)、透明人民币价格与快速接入示例。
精确模型 IDgemini-3.1-pro-preview-customtools
Gemini
openai-response · anthropic · gemini
text
按实际 Token 用量结算
使用统一 API Key 通过 POST /v1/messages 调用 gemini-3.1-pro-preview-customtools:
curl https://infistar.cc/v1/messages \
-H "x-api-key: $INFISTAR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model":"gemini-3.1-pro-preview-customtools","max_tokens":512,"messages":[{"role":"user","content":"Hello"}]}'import anthropic
client = anthropic.Anthropic(api_key="YOUR_INFISTAR_KEY", base_url="https://infistar.cc")
msg = client.messages.create(model="gemini-3.1-pro-preview-customtools", max_tokens=512, messages=[{"role": "user", "content": "Hello"}])
print(msg.content[0].text)模型和价格可能调整。请登录账户确认可用模型,并在调用前查看当前价格。