Poe API
Claude Sonnet 4.6 from Anthropic is built for high-quality conversations, advanced coding, and agentic workflows at scale. It excels at iterative development and navigating complex codebases, supports end-to-end project management with memory, and produces polished documents. The model also enables confident computer use for web QA and workflow automation, along with financial modeling, compliance review, and accurate data summarization. It features a 1M token context window for handling extensive projects and long-form content with ease.
Optional parameters:
Output effort: At the default effort level (medium), the model uses extended thinking when useful, but developers can adjust the effort level to make it more or less selective. Choose none to turn off thinking.
Web search: Enables web search and real-time information access.
Powered by Anthropic: claude-sonnet-4-6. Learn more
- OFFICIAL
Build with Claude-Sonnet-4.6 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 = "claude-sonnet-4.6",
messages = [{
"role": "user",
"content": "Write a professional email to my boss requesting last-minute PTO"
}]
)
print(chat.choices[0].message.content)See the full documentation for comprehensive guidance on getting started.