Poe API
xAI's February 2025 release with strong performance across many domains but at a more affordable price point. Supports reasoning with a configurable reasoning effort level, and 131k tokens of context; doesn't have access to the X data feed.
Optional parameters:
Set reasoning effort: Select from `low`, `medium`, `high`. Medium reasoning effort is set by default.
Powered by a server managed by @xAI. Learn more
- OFFICIAL
Build with Grok-3-Mini 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-mini",
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.