Poe API
Gemini 3.1 Flash Lite Preview is the fastest and cheapest model in the Gemini 3.1 family. It provides multimodal understanding and intelligence similar to or better than Gemini 2.5 Flash at a low price that makes it perfect for high volume workloads. Supports 1M tokens of context
Powered by Google: gemini-3.1-flash-lite-preview. Learn more
- OFFICIAL
Build with Gemini-3.1-Flash-Lite using the Poe API
Start by creating an API key, for use with any bot on Poe:
Code samples
python
import openai
client = openai.OpenAI(
api_key = "YOUR_POE_API_KEY", # or os.getenv("POE_API_KEY")
base_url = "https://api.poe.com/v1",
)
chat = client.chat.completions.create(
model = "gemini-3.1-flash-lite",
messages = [{
"role": "user",
"content": "There are three people—Anne, Bob, and Clara—standing in a line. Anne is not in front. Bob is not behind Clara. In what order are they standing?"
}]
)
print(chat.choices[0].message.content)See the full documentation for comprehensive guidance on getting started.