Poe API

Bot image for GPT-4-Turbo

GPT-4-Turbo

·
  1. OFFICIAL
Chat

Powered by OpenAI: gpt-4-turbo-2024-04-09. Learn more

Build with GPT-4-Turbo using the Poe API

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

Generate API key

Code samples

Chat Completions 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",
)

chat = client.chat.completions.create(
    model = "gpt-4-turbo",
    messages = [{
      "role": "user",
      "content": "Hello world"
    }]
)

print(chat.choices[0].message.content)

See the full documentation for comprehensive guidance on getting started.


More from OpenAI

Bot image for GPT-Image-2
GPT-Image-2
Bot image for GPT-5.5-Pro
GPT-5.5-Pro
Bot image for GPT-5.5
GPT-5.5
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-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