Poe API

Bot image for Claude-DnD

Claude-DnD

Chat

Uses Claude-Haiku-4.5, a model that is powered by Anthropic. Learn more

Build with Claude-DnD using the Poe API

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

Generate API key

Code samples

Messages API
import anthropic

client = anthropic.Anthropic(
    api_key = "YOUR_POE_API_KEY",  # or os.getenv("POE_API_KEY")
    base_url = "https://api.poe.com",
)

message = client.messages.create(
    model = "claude-dnd",
    max_tokens = 1024,
    messages = [{
      "role": "user",
      "content": "Hello world"
    }]
)

print(message.content[0].text)

See the full documentation for comprehensive guidance on getting started.


More from AI Nerd

Bot image for ChatGPT-Essay-Writer
ChatGPT-Essay-Writer
Bot image for AI-Color-Analysis
AI-Color-Analysis
Bot image for Face-Shape-Analyzer
Face-Shape-Analyzer
Bot image for Jewelry-Finder
Jewelry-Finder
Bot image for Shoe-Finder-by-Image
Shoe-Finder-by-Image
Bot image for Outfit-Finder
Outfit-Finder
Bot image for Image-Analyzer-AI
Image-Analyzer-AI
Bot image for Art-Style-Identifier
Art-Style-Identifier
Bot image for Rate-My-Outfit
Rate-My-Outfit
Bot image for Rate-My-Image
Rate-My-Image