inference-providers

Gemini 3.5 Flash-Lite

by google · family gemini

Facts

Release date2026-07-21
Retired date
Knowledge cutoff
Context (max)1,048,576
Max output65,536
Modalitiestext, image → text
Aliases
Open weightsno
DescriptionCheapest tier; default minimal — docs recommend medium/high for multi-step subagent work; temperature/top_p/top_k deprecated (3.6/3.7).

Unknown values are shown as —.

Intelligence Index v4.1.1: 37 · base · Source: Artificial Analysis (accessed 2026-08-20)

Offerings

ProviderWire IDVariantEndpointProtocolStatusPrice (USD / Mtok)Reasoning
Google Gemini APIgemini-3.5-flash-liteflashgenerate-contentgoogle-generate-contentga0.30 / 2.50effort · default on · returns thought_parts · round-trips thought_signature
Google Vertex AIgemini-3.5-flash-liteflashgenerate-contentgoogle-generate-contentga0.30 / 2.50effort · default on · returns thought_parts · round-trips thought_signature
OpenCode Zengemini-3.5-flash-liteflashchat-completionsopenai-chatga0.30 / 2.50effort · default on · returns reasoning_content · round-trips reasoning_content
OpenRoutergoogle/gemini-3.5-flash-liteflashchat-completionsopenai-chatga0.30 / 2.50effort · default on · returns reasoning_content · round-trips reasoning_content

Reasoning controls

Google Gemini API· gemini-3.5-flash-lite· generate-content effort

generationConfig.thinkingConfig.thinkingLevel minimal●lowmediumhigh

effort · default on · returns thought_parts · round-trips thought_signature

Google Vertex AI· gemini-3.5-flash-lite· generate-content effort

generationConfig.thinkingConfig.thinkingLevel minimal●lowmediumhigh

effort · default on · returns thought_parts · round-trips thought_signature

OpenCode Zen· gemini-3.5-flash-lite· chat-completions effort

reasoning.effort nonelowmedium●highxhighmax

effort · default on · returns reasoning_content · round-trips reasoning_content

OpenRouter· google/gemini-3.5-flash-lite· chat-completions effort

reasoning.effort nonelowmedium●highxhighmax

effort · default on · returns reasoning_content · round-trips reasoning_content

Example requests

Google Gemini API · google-generate-content · gemini-3.5-flash-lite

curl 'https://generativelanguage.googleapis.com/v1beta/models/gemini-3.5-flash-lite:generateContent' \
  -H 'Content-Type: application/json' \
  -H 'x-goog-api-key: <YOUR_API_KEY>' \
  -d '{
  "contents": [
    {
      "parts": [
        {
          "text": "Tell me about the weather."
        }
      ]
    }
  ],
  "generationConfig": {
    "thinkingConfig": {
      "thinkingLevel": "minimal"
    }
  }
}'
Python (requests)
import requests

resp = requests.post(
    "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.5-flash-lite:generateContent",
    headers={
      "Content-Type": "application/json",
      "x-goog-api-key": "<YOUR_API_KEY>"
    },
    json={
      "contents": [
        {
          "parts": [
            {
              "text": "Tell me about the weather."
            }
          ]
        }
      ],
      "generationConfig": {
        "thinkingConfig": {
          "thinkingLevel": "minimal"
        }
      }
    },
)
print(resp.json())
TypeScript (fetch)
const resp = await fetch("https://generativelanguage.googleapis.com/v1beta/models/gemini-3.5-flash-lite:generateContent", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-goog-api-key": "<YOUR_API_KEY>"
  },
  body: JSON.stringify({
    "contents": [
      {
        "parts": [
          {
            "text": "Tell me about the weather."
          }
        ]
      }
    ],
    "generationConfig": {
      "thinkingConfig": {
        "thinkingLevel": "minimal"
      }
    }
  }),
})
console.log(await resp.json())
  • ⚠ Responses include thought_signature artifacts — pass them back unmodified on subsequent turns (dropping them triggers 400s or quality loss).

Google Vertex AI · google-generate-content · gemini-3.5-flash-lite

curl 'https://{region}-aiplatform.googleapis.com/v1/projects/{project}/locations/{region}/publishers/google/models/gemini-3.5-flash-lite:generateContent' \
  -H 'Authorization: Bearer <YOUR_API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
  "contents": [
    {
      "parts": [
        {
          "text": "Tell me about the weather."
        }
      ]
    }
  ],
  "generationConfig": {
    "thinkingConfig": {
      "thinkingLevel": "minimal"
    }
  }
}'
Python (requests)
import requests

resp = requests.post(
    "https://{region}-aiplatform.googleapis.com/v1/projects/{project}/locations/{region}/publishers/google/models/gemini-3.5-flash-lite:generateContent",
    headers={
      "Authorization": "Bearer <YOUR_API_KEY>",
      "Content-Type": "application/json"
    },
    json={
      "contents": [
        {
          "parts": [
            {
              "text": "Tell me about the weather."
            }
          ]
        }
      ],
      "generationConfig": {
        "thinkingConfig": {
          "thinkingLevel": "minimal"
        }
      }
    },
)
print(resp.json())
TypeScript (fetch)
const resp = await fetch("https://{region}-aiplatform.googleapis.com/v1/projects/{project}/locations/{region}/publishers/google/models/gemini-3.5-flash-lite:generateContent", {
  method: "POST",
  headers: {
    "Authorization": "Bearer <YOUR_API_KEY>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "contents": [
      {
        "parts": [
          {
            "text": "Tell me about the weather."
          }
        ]
      }
    ],
    "generationConfig": {
      "thinkingConfig": {
        "thinkingLevel": "minimal"
      }
    }
  }),
})
console.log(await resp.json())
  • ⚠ Responses include thought_signature artifacts — pass them back unmodified on subsequent turns (dropping them triggers 400s or quality loss).

OpenCode Zen · openai-chat · gemini-3.5-flash-lite

curl 'https://opencode.ai/zen/v1/chat/completions' \
  -H 'Authorization: Bearer <YOUR_API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "gemini-3.5-flash-lite",
  "messages": [
    {
      "role": "user",
      "content": "Tell me about the weather."
    }
  ],
  "reasoning": {
    "effort": "medium"
  }
}'
Python (requests)
import requests

resp = requests.post(
    "https://opencode.ai/zen/v1/chat/completions",
    headers={
      "Authorization": "Bearer <YOUR_API_KEY>",
      "Content-Type": "application/json"
    },
    json={
      "model": "gemini-3.5-flash-lite",
      "messages": [
        {
          "role": "user",
          "content": "Tell me about the weather."
        }
      ],
      "reasoning": {
        "effort": "medium"
      }
    },
)
print(resp.json())
TypeScript (fetch)
const resp = await fetch("https://opencode.ai/zen/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": "Bearer <YOUR_API_KEY>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "model": "gemini-3.5-flash-lite",
    "messages": [
      {
        "role": "user",
        "content": "Tell me about the weather."
      }
    ],
    "reasoning": {
      "effort": "medium"
    }
  }),
})
console.log(await resp.json())
  • ⚠ Responses include reasoning_content artifacts — pass them back unmodified on subsequent turns (dropping them triggers 400s or quality loss).

OpenRouter · openai-chat · google/gemini-3.5-flash-lite

curl 'https://openrouter.ai/api/v1/chat/completions' \
  -H 'Authorization: Bearer <YOUR_API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "google/gemini-3.5-flash-lite",
  "messages": [
    {
      "role": "user",
      "content": "Tell me about the weather."
    }
  ],
  "reasoning": {
    "effort": "medium"
  }
}'
Python (requests)
import requests

resp = requests.post(
    "https://openrouter.ai/api/v1/chat/completions",
    headers={
      "Authorization": "Bearer <YOUR_API_KEY>",
      "Content-Type": "application/json"
    },
    json={
      "model": "google/gemini-3.5-flash-lite",
      "messages": [
        {
          "role": "user",
          "content": "Tell me about the weather."
        }
      ],
      "reasoning": {
        "effort": "medium"
      }
    },
)
print(resp.json())
TypeScript (fetch)
const resp = await fetch("https://openrouter.ai/api/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": "Bearer <YOUR_API_KEY>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "model": "google/gemini-3.5-flash-lite",
    "messages": [
      {
        "role": "user",
        "content": "Tell me about the weather."
      }
    ],
    "reasoning": {
      "effort": "medium"
    }
  }),
})
console.log(await resp.json())
  • ⚠ Responses include reasoning_content artifacts — pass them back unmodified on subsequent turns (dropping them triggers 400s or quality loss).