Poe API
Gemini 2.5 Pro is Google's advanced model with frontier performance on various key benchmarks; supports web search and 1 million tokens of input context.
Optional parameters:
Set thinking budget to use more thinking effort. Set number from 0 to 32,768.
Set web search and real-time information access: toggle it on, otherwise it is off by default.
Powered by Google: gemini-2.5-pro. Learn more
- OFFICIAL
Build with Gemini-2.5-Pro 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-2.5-pro",
messages = [{
"role": "user",
"content": "A pond has lily pads that double in number every day. On day 8, there are 32 lily pads. On which day will there be 256 lily pads?"
}]
)
print(chat.choices[0].message.content)See the full documentation for comprehensive guidance on getting started.