Gemini 3.5 Flash Lite

GoogleChat & reasoningper-tokensave 70% vs official

Lowest-cost Gemini for high-volume, latency-sensitive tasks.

Price

$0.09 Input · $0.75 Output / 1M

Endpoint

/chat

Delivery pattern

Direct request-response

Context window

1M

API documentation

Build and copy the request

Choose the options this model accepts. The code below updates as you choose.

Step-by-step in the docs
POSThttps://www.aisplice.store/v1/chat/completionsBearer API keyReturns directly
API_KEY="${API_KEY:-YOUR_API_KEY}"

curl --fail-with-body -sS https://www.aisplice.store/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "Gemini 3.5 Flash Lite",
  "messages": [
    {
      "role": "user",
      "content": "Say hello."
    }
  ],
  "stream": false
}'

Parameter reference

model
stringrequired

Exact model identifier for this request.

messages
arrayrequired

OpenAI-compatible conversation messages.

Response lifecycle

Successful response example for this endpoint.

Response
{
  "id": "chatcmpl_xxx",
  "choices": [
    {
      "message": {
        "role": "assistant",
        "content": "Hello!"
      }
    }
  ]
}

Errors and production

Retry rules, idempotency, and the minimum production checklist.

400 / 422

Fix the request fields or unsupported option; do not retry unchanged.

401

Check that the API key is present, active, and sent as a Bearer token.

402

The account balance is insufficient.

409

The Idempotency-Key is processing or was reused with another body.

429

Back off according to Retry-After before retrying.

5xx

Retry with exponential backoff and keep the original Idempotency-Key.

  • Keep API keys on your server for public mobile and browser applications.
  • Set a unique Idempotency-Key for every billable async operation.
  • Persist task_id so polling can resume after a restart.
  • Use a timeout for every HTTP request and surface the request ID in support reports.
  • Read live model metadata instead of hard-coding prices and supported options.

Price and tiers

save 70% vs official

Input

$0.09/ 1M tokens

$0.30

Output

$0.75/ 1M tokens

$2.50

Cache read $0.009 / 1M tokens

The price shown here is exactly what you are billed — failed calls are refunded automatically.

Related models