Poe API

Bot image for Gemini-3.1-Pro

Gemini-3.1-Pro

Chat

Powered by Google: gemini-3.1-pro-preview. Learn more
  1. OFFICIAL

Build with Gemini-3.1-Pro using the Poe API

Start by creating an API key, for use with any bot on Poe:

Generate API key

Code samples

Responses API
import openai

client = openai.OpenAI(
    api_key = "YOUR_POE_API_KEY",  # or os.getenv("POE_API_KEY")
    base_url = "https://api.poe.com/v1",
)

response = client.responses.create(
    model = "gemini-3.1-pro",
    input = "Write a C++ program to swap two numbers without using a temporary variable"
)

print(response.output_text)

See the full documentation for comprehensive guidance on getting started.


More from Google

Bot image for Gemma-4-31B
Gemma-4-31B
Bot image for Veo-3.1-Lite
Veo-3.1-Lite
Bot image for Lyria-3
Lyria-3
Bot image for Nano-Banana-2
Nano-Banana-2
Bot image for Gemini-3.1-Pro
Gemini-3.1-Pro
Bot image for Gemini-3.1-Flash-Lite
Gemini-3.1-Flash-Lite
Bot image for Nano-Banana-Pro
Nano-Banana-Pro
Bot image for Veo-3.1-Fast
Veo-3.1-Fast
Bot image for Veo-3.1
Veo-3.1
Bot image for Veo-3-Fast
Veo-3-Fast