Poe API
xAI's February 2025 flagship release representing nearly state-of-the-art performance in several reasoning/problem solving domains. The API doesn't yet support reasoning mode for Grok 3, but does for https://poe.com/Grok-3-Mini; this bot also doesn't have access to the X data feed. Supports 131k tokens of context, uses Grok 2 for native vision.
Powered by a server managed by @xAI. Learn more
- OFFICIAL
Build with Grok-3 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 = "grok-3",
messages = [{
"role": "user",
"content": "Draft a cover letter for a position in software engineering"
}]
)
print(chat.choices[0].message.content)See the full documentation for comprehensive guidance on getting started.