Poe API

Bot image for GPT-4o

GPT-4o

Chat

Powered by OpenAI: gpt-4o-2024-11-20. Learn more
  1. OFFICIAL

Build with GPT-4o 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 = "gpt-4o",
    input = "Build a simple yet elegant e-commerce website template"
)

print(response.output_text)

See the full documentation for comprehensive guidance on getting started.


More from OpenAI

Bot image for GPT-5.4-Mini
GPT-5.4-Mini
Bot image for GPT-5.4-Nano
GPT-5.4-Nano
Bot image for GPT-5.4-Pro
GPT-5.4-Pro
Bot image for GPT-5.3-Codex-Spark
GPT-5.3-Codex-Spark
Bot image for GPT-5.3-Instant
GPT-5.3-Instant
Bot image for GPT-5.4
GPT-5.4
Bot image for GPT-5.3-Codex
GPT-5.3-Codex
Bot image for GPT-5.2-Codex
GPT-5.2-Codex
Bot image for GPT-Image-1.5
GPT-Image-1.5
Bot image for GPT-5.2-Pro
GPT-5.2-Pro