Skip to content
Register

Gemini 3.1 Flash Lite API

No seller is offering Gemini 3.1 Flash Lite right now. It comes back here as soon as one does; until then, see the models that are available.

gemini-3.1-flash-lite

Call Gemini 3.1 Flash Lite

Keep the OpenAI SDK you already use and change the base URL and the key. Anthropic-style /v1/messages calls work too.

python
from openai import OpenAI

client = OpenAI(
    api_key="kv-...",
    base_url="https://api.kyvalt.com/v1",
)

reply = client.chat.completions.create(
    model="gemini-3.1-flash-lite",
    messages=[{"role": "user", "content": "Hello"}],
)
curl
curl https://api.kyvalt.com/v1/chat/completions \
  -H "Authorization: Bearer $KYVALT_API_KEY" \
  -H "X-Min-Discount: 30" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-flash-lite",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
ModelDiscountInput per 1MOutput per 1M
Gemini 3 Flash Preview 75% off $0.121 $0.725
Gemini 3.8 Flash 75% off $0.184 $0.919
Gemini 3.6 Flash 73% off $0.202 $1.012
Gemini 3.5 Flash Lite 73% off $0.081 $0.674
Gemini 4 Hydrogen 58% off $0.628 $3.142
Gemini 2.5 Flash Image 46% off $0.16 $15.975

See every model and price