Model details

gemini-3.1-flash-lite-preview API Model & Pricing

Call Gemini gemini-3.1-flash-lite-preview via Infistar: inspect the exact model ID, declared endpoints (openai-response · anthropic · gemini), transparent CNY pricing, and ready-to-run examples.

Exact model IDgemini-3.1-flash-lite-preview

Endpoints and pricing

Model family

Gemini

Compatible endpoint

openai-response · anthropic · gemini

Task type

text

Settlement

Settled by actual token usage

Lowest price (CNY)

Input ¥0.1429 / Output ¥0.8572 per 1M tokens, cache read ¥0.0143

Official reference price

Official: input ¥1.6703 / output ¥10.022

Estimated savings

Up to 91% below official reference (never above official pricing)

Quickstart API example

Call gemini-3.1-flash-lite-preview via POST /v1/messages using your Infistar API key:

curl https://infistar.ai/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-flash-lite-preview","max_tokens":512,"messages":[{"role":"user","content":"Hello"}]}'
import anthropic

client = anthropic.Anthropic(api_key="YOUR_INFISTAR_KEY", base_url="https://infistar.ai")
msg = client.messages.create(model="gemini-3.1-flash-lite-preview", max_tokens=512, messages=[{"role": "user", "content": "Hello"}])
print(msg.content[0].text)

Before you use this model

Models and prices may change. Sign in to check available models and review current pricing before calling.

Related models and guides