← One model. More ways to save.

Apixly · API pricing

gemini-3.1-flash-lite

gemini-3.1-flash-lite · Text generation. Chat, writing and code

Gateway price for gemini-3.1-flash-lite ↓

API integration · Text generation

Use a text model to produce responses from messages. Start with plain text; test tools, images, streaming and other optional features on your selected group before enabling them in an application.

Request model ID
gemini-3.1-flash-lite
Public groups
gemini aistudio · gemini vertex

Create an Apixly API key, bind a group that lists this exact model, and keep the key in a server-side environment variable. Public prices exclude personal discounts; check the selected group before sending a request.

curl --fail-with-body --max-time 120 'https://apixly.ai/v1/chat/completions' \
  -H "Authorization: Bearer $APIXLY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary '{
  "model": "gemini-3.1-flash-lite",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "stream": false
}'

Start with one small request. Check the complete result and reported usage, then match the request to its charge in the console. For chat, inspect choices[0].message.content; embeddings return data and reranking returns results. A successful HTTP status alone is insufficient. This example makes no automatic retry.

Compare related models

Loading model prices…
Public quotes

Public prices

Providers

gemini aistudio
Input/ 1M tokens
Official$0.25$0.125
Output/ 1M tokens
Official$1.5$0.75
Cache read/ 1M tokens
Official$0.025$0.0125
Cache write/ 1M tokens
$0.125
50% off

/ 1M tokens

Channel: gemini aistudio / gemini vertex

Use this provider
gemini vertex
Input/ 1M tokens
Official$0.25$0.125
Output/ 1M tokens
Official$1.5$0.75
Cache read/ 1M tokens
Official$0.025$0.0125
Cache write/ 1M tokens
$0.125
50% off

/ 1M tokens

Channel: gemini aistudio / gemini vertex

Use this provider

Official prices and discounts use the same billing unit and tier.

Each price shows its own billing unit. Input, output, cache and reference media are charged separately where listed.