Poe API
Realtime Multi-agent Research enables Grok to orchestrate multiple AI agents that work together in real time to perform deep, multi-step research tasks. Each agent specializes in a particular aspect of the research (searching the web, analyzing data, synthesizing findings) and they collaborate to deliver comprehensive, well-sourced answers.
This bot supports optional parameters for additional customization.
Powered by a server managed by @xAI. Learn more
- OFFICIAL
Build with Grok-4.20-Multi-Agent 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-4.20-multi-agent",
messages = [{
"role": "user",
"content": "Create a nutritious, high-protein recipe using chicken, broccoli, and sweet potatoes"
}]
)
print(chat.choices[0].message.content)See the full documentation for comprehensive guidance on getting started.