docs/src/content/en/models/providers/poe.mdx
Access 120 Poe models through Mastra's model router. Authentication is handled automatically using the POE_API_KEY environment variable.
Learn more in the Poe documentation.
POE_API_KEY=your-api-key
import { Agent } from "@mastra/core/agent";
const agent = new Agent({
id: "my-agent",
name: "My Agent",
instructions: "You are a helpful assistant",
model: "poe/anthropic/claude-haiku-3"
});
// Generate a response
const response = await agent.generate("Hello!");
// Stream a response
const stream = await agent.stream("Tell me a story");
for await (const chunk of stream) {
console.log(chunk);
}
:::info
Mastra uses the OpenAI-compatible /chat/completions endpoint. Some provider-specific features may not be available. Check the Poe documentation for details.
:::
<ProviderModelsTable models={[ { "model": "poe/anthropic/claude-haiku-3", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 189096, "maxOutput": 8192, "inputCost": 0.21, "outputCost": 1.1 }, { "model": "poe/anthropic/claude-haiku-3.5", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 189096, "maxOutput": 8192, "inputCost": 0.68, "outputCost": 3.4 }, { "model": "poe/anthropic/claude-haiku-4.5", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 192000, "maxOutput": 64000, "inputCost": 0.85, "outputCost": 4.3 }, { "model": "poe/anthropic/claude-opus-4", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 192512, "maxOutput": 28672, "inputCost": 13, "outputCost": 64 }, { "model": "poe/anthropic/claude-opus-4.1", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 196608, "maxOutput": 32000, "inputCost": 13, "outputCost": 64 }, { "model": "poe/anthropic/claude-opus-4.5", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 196608, "maxOutput": 64000, "inputCost": 4.3, "outputCost": 21 }, { "model": "poe/anthropic/claude-opus-4.6", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 983040, "maxOutput": 128000, "inputCost": 4.3, "outputCost": 21 }, { "model": "poe/anthropic/claude-sonnet-3.5", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 189096, "maxOutput": 8192, "inputCost": 2.6, "outputCost": 13 }, { "model": "poe/anthropic/claude-sonnet-3.5-june", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 189096, "maxOutput": 8192, "inputCost": 2.6, "outputCost": 13 }, { "model": "poe/anthropic/claude-sonnet-3.7", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 196608, "maxOutput": 128000, "inputCost": 2.6, "outputCost": 13 }, { "model": "poe/anthropic/claude-sonnet-4", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 983040, "maxOutput": 64000, "inputCost": 2.6, "outputCost": 13 }, { "model": "poe/anthropic/claude-sonnet-4.5", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 983040, "maxOutput": 32768, "inputCost": 2.6, "outputCost": 13 }, { "model": "poe/anthropic/claude-sonnet-4.6", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 983040, "maxOutput": 128000, "inputCost": 2.6, "outputCost": 13 }, { "model": "poe/cerebras/gpt-oss-120b-cs", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": null, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/cerebras/llama-3.1-8b-cs", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": null, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/cerebras/llama-3.3-70b-cs", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": false, "reasoning": false, "contextWindow": null, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/cerebras/qwen3-235b-2507-cs", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": null, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/cerebras/qwen3-32b-cs", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": null, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/elevenlabs/elevenlabs-music", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 2000, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/elevenlabs/elevenlabs-v2.5-turbo", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 128000, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/elevenlabs/elevenlabs-v3", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 128000, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/google/gemini-2.0-flash", "imageInput": true, "audioInput": true, "videoInput": true, "toolUsage": true, "reasoning": false, "contextWindow": 990000, "maxOutput": 8192, "inputCost": 0.1, "outputCost": 0.42 }, { "model": "poe/google/gemini-2.0-flash-lite", "imageInput": true, "audioInput": true, "videoInput": true, "toolUsage": true, "reasoning": false, "contextWindow": 990000, "maxOutput": 8192, "inputCost": 0.052, "outputCost": 0.21 }, { "model": "poe/google/gemini-2.5-flash", "imageInput": true, "audioInput": true, "videoInput": true, "toolUsage": true, "reasoning": true, "contextWindow": 1065535, "maxOutput": 65535, "inputCost": 0.21, "outputCost": 1.8 }, { "model": "poe/google/gemini-2.5-flash-lite", "imageInput": true, "audioInput": true, "videoInput": true, "toolUsage": true, "reasoning": true, "contextWindow": 1024000, "maxOutput": 64000, "inputCost": 0.07, "outputCost": 0.28 }, { "model": "poe/google/gemini-2.5-pro", "imageInput": true, "audioInput": true, "videoInput": true, "toolUsage": true, "reasoning": true, "contextWindow": 1065535, "maxOutput": 65535, "inputCost": 0.87, "outputCost": 7 }, { "model": "poe/google/gemini-3-flash", "imageInput": true, "audioInput": true, "videoInput": true, "toolUsage": true, "reasoning": true, "contextWindow": 1048576, "maxOutput": 65536, "inputCost": 0.4, "outputCost": 2.4 }, { "model": "poe/google/gemini-3-pro", "imageInput": true, "audioInput": true, "videoInput": true, "toolUsage": true, "reasoning": true, "contextWindow": 1048576, "maxOutput": 65536, "inputCost": 1.6, "outputCost": 9.6 }, { "model": "poe/google/gemini-3.1-flash-lite", "imageInput": true, "audioInput": true, "videoInput": true, "toolUsage": true, "reasoning": true, "contextWindow": 1048576, "maxOutput": 65536, "inputCost": 0.25, "outputCost": 1.5 }, { "model": "poe/google/gemini-3.1-pro", "imageInput": true, "audioInput": true, "videoInput": true, "toolUsage": true, "reasoning": true, "contextWindow": 1048576, "maxOutput": 65536, "inputCost": 2, "outputCost": 12 }, { "model": "poe/google/gemini-deep-research", "imageInput": true, "audioInput": false, "videoInput": true, "toolUsage": true, "reasoning": true, "contextWindow": 1048576, "maxOutput": null, "inputCost": 1.6, "outputCost": 9.6 }, { "model": "poe/google/imagen-3", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 480, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/google/imagen-3-fast", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 480, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/google/imagen-4", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 480, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/google/imagen-4-fast", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 480, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/google/imagen-4-ultra", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 480, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/google/lyria", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": null, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/google/nano-banana", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 65536, "maxOutput": null, "inputCost": 0.21, "outputCost": 1.8 }, { "model": "poe/google/nano-banana-pro", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 65536, "maxOutput": null, "inputCost": 2, "outputCost": 12 }, { "model": "poe/google/veo-2", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 480, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/google/veo-3", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 480, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/google/veo-3-fast", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 480, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/google/veo-3.1", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 480, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/google/veo-3.1-fast", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 480, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/ideogramai/ideogram", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 150, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/ideogramai/ideogram-v2", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 150, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/ideogramai/ideogram-v2a", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 150, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/ideogramai/ideogram-v2a-turbo", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 150, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/lumalabs/ray2", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 5000, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/novita/glm-4.6", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": null, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/novita/glm-4.6v", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 131000, "maxOutput": 32768, "inputCost": null, "outputCost": null }, { "model": "poe/novita/glm-4.7", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 205000, "maxOutput": 131072, "inputCost": null, "outputCost": null }, { "model": "poe/novita/glm-4.7-flash", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 200000, "maxOutput": 65500, "inputCost": null, "outputCost": null }, { "model": "poe/novita/glm-4.7-n", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 205000, "maxOutput": 131072, "inputCost": null, "outputCost": null }, { "model": "poe/novita/kimi-k2-thinking", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 256000, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/novita/kimi-k2.5", "imageInput": true, "audioInput": false, "videoInput": true, "toolUsage": true, "reasoning": true, "contextWindow": 256000, "maxOutput": 262144, "inputCost": null, "outputCost": null }, { "model": "poe/novita/minimax-m2.1", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 205000, "maxOutput": 131072, "inputCost": null, "outputCost": null }, { "model": "poe/openai/chatgpt-4o-latest", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 128000, "maxOutput": 8192, "inputCost": 4.5, "outputCost": 14 }, { "model": "poe/openai/dall-e-3", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 800, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/openai/gpt-3.5-turbo", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 16384, "maxOutput": 2048, "inputCost": 0.45, "outputCost": 1.4 }, { "model": "poe/openai/gpt-3.5-turbo-instruct", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 3500, "maxOutput": 1024, "inputCost": 1.4, "outputCost": 1.8 }, { "model": "poe/openai/gpt-3.5-turbo-raw", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 4524, "maxOutput": 2048, "inputCost": 0.45, "outputCost": 1.4 }, { "model": "poe/openai/gpt-4-classic", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 8192, "maxOutput": 4096, "inputCost": 27, "outputCost": 54 }, { "model": "poe/openai/gpt-4-classic-0314", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 8192, "maxOutput": 4096, "inputCost": 27, "outputCost": 54 }, { "model": "poe/openai/gpt-4-turbo", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 128000, "maxOutput": 4096, "inputCost": 9, "outputCost": 27 }, { "model": "poe/openai/gpt-4.1", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 1047576, "maxOutput": 32768, "inputCost": 1.8, "outputCost": 7.2 }, { "model": "poe/openai/gpt-4.1-mini", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 1047576, "maxOutput": 32768, "inputCost": 0.36, "outputCost": 1.4 }, { "model": "poe/openai/gpt-4.1-nano", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 1047576, "maxOutput": 32768, "inputCost": 0.09, "outputCost": 0.36 }, { "model": "poe/openai/gpt-4o", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 128000, "maxOutput": 8192, "inputCost": null, "outputCost": null }, { "model": "poe/openai/gpt-4o-aug", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 128000, "maxOutput": 8192, "inputCost": 2.2, "outputCost": 9 }, { "model": "poe/openai/gpt-4o-mini", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 124096, "maxOutput": 4096, "inputCost": 0.14, "outputCost": 0.54 }, { "model": "poe/openai/gpt-4o-mini-search", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 128000, "maxOutput": 8192, "inputCost": 0.14, "outputCost": 0.54 }, { "model": "poe/openai/gpt-4o-search", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 128000, "maxOutput": 8192, "inputCost": 2.2, "outputCost": 9 }, { "model": "poe/openai/gpt-5", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 400000, "maxOutput": 128000, "inputCost": 1.1, "outputCost": 9 }, { "model": "poe/openai/gpt-5-chat", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 128000, "maxOutput": 16384, "inputCost": 1.1, "outputCost": 9 }, { "model": "poe/openai/gpt-5-codex", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 400000, "maxOutput": 128000, "inputCost": 1.1, "outputCost": 9 }, { "model": "poe/openai/gpt-5-mini", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 400000, "maxOutput": 128000, "inputCost": 0.22, "outputCost": 1.8 }, { "model": "poe/openai/gpt-5-nano", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 400000, "maxOutput": 128000, "inputCost": 0.045, "outputCost": 0.36 }, { "model": "poe/openai/gpt-5-pro", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 400000, "maxOutput": 128000, "inputCost": 14, "outputCost": 110 }, { "model": "poe/openai/gpt-5.1", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 400000, "maxOutput": 128000, "inputCost": 1.1, "outputCost": 9 }, { "model": "poe/openai/gpt-5.1-codex", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 400000, "maxOutput": 128000, "inputCost": 1.1, "outputCost": 9 }, { "model": "poe/openai/gpt-5.1-codex-max", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 400000, "maxOutput": 128000, "inputCost": 1.1, "outputCost": 9 }, { "model": "poe/openai/gpt-5.1-codex-mini", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 400000, "maxOutput": 128000, "inputCost": 0.22, "outputCost": 1.8 }, { "model": "poe/openai/gpt-5.1-instant", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 128000, "maxOutput": 16384, "inputCost": 1.1, "outputCost": 9 }, { "model": "poe/openai/gpt-5.2", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 400000, "maxOutput": 128000, "inputCost": 1.6, "outputCost": 13 }, { "model": "poe/openai/gpt-5.2-codex", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 400000, "maxOutput": 128000, "inputCost": 1.6, "outputCost": 13 }, { "model": "poe/openai/gpt-5.2-instant", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 128000, "maxOutput": 16384, "inputCost": 1.6, "outputCost": 13 }, { "model": "poe/openai/gpt-5.2-pro", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 400000, "maxOutput": 128000, "inputCost": 19, "outputCost": 150 }, { "model": "poe/openai/gpt-5.3-codex", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 400000, "maxOutput": 128000, "inputCost": 1.6, "outputCost": 13 }, { "model": "poe/openai/gpt-5.3-instant", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 128000, "maxOutput": 16384, "inputCost": 1.6, "outputCost": 13 }, { "model": "poe/openai/gpt-5.4", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 1050000, "maxOutput": 128000, "inputCost": 2.2, "outputCost": 14 }, { "model": "poe/openai/gpt-5.4-pro", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 1050000, "maxOutput": 128000, "inputCost": 27, "outputCost": 160 }, { "model": "poe/openai/gpt-image-1", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 128000, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/openai/gpt-image-1-mini", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": null, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/openai/gpt-image-1.5", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 128000, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/openai/o1", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 200000, "maxOutput": 100000, "inputCost": 14, "outputCost": 54 }, { "model": "poe/openai/o1-pro", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 200000, "maxOutput": 100000, "inputCost": 140, "outputCost": 540 }, { "model": "poe/openai/o3", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 200000, "maxOutput": 100000, "inputCost": 1.8, "outputCost": 7.2 }, { "model": "poe/openai/o3-deep-research", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 200000, "maxOutput": 100000, "inputCost": 9, "outputCost": 36 }, { "model": "poe/openai/o3-mini", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 200000, "maxOutput": 100000, "inputCost": 0.99, "outputCost": 4 }, { "model": "poe/openai/o3-mini-high", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 200000, "maxOutput": 100000, "inputCost": 0.99, "outputCost": 4 }, { "model": "poe/openai/o3-pro", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 200000, "maxOutput": 100000, "inputCost": 18, "outputCost": 72 }, { "model": "poe/openai/o4-mini", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 200000, "maxOutput": 100000, "inputCost": 0.99, "outputCost": 4 }, { "model": "poe/openai/o4-mini-deep-research", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 200000, "maxOutput": 100000, "inputCost": 1.8, "outputCost": 7.2 }, { "model": "poe/openai/sora-2", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": null, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/openai/sora-2-pro", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": null, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/poetools/claude-code", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": null, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/runwayml/runway", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 256, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/runwayml/runway-gen-4-turbo", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 256, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/stabilityai/stablediffusionxl", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 200, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/topazlabs-co/topazlabs", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 204, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/trytako/tako", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 2048, "maxOutput": null, "inputCost": null, "outputCost": null }, { "model": "poe/xai/grok-3", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 131072, "maxOutput": 8192, "inputCost": 3, "outputCost": 15 }, { "model": "poe/xai/grok-3-mini", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 131072, "maxOutput": 8192, "inputCost": 0.3, "outputCost": 0.5 }, { "model": "poe/xai/grok-4", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 256000, "maxOutput": 128000, "inputCost": 3, "outputCost": 15 }, { "model": "poe/xai/grok-4-fast-non-reasoning", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 2000000, "maxOutput": 128000, "inputCost": 0.2, "outputCost": 0.5 }, { "model": "poe/xai/grok-4-fast-reasoning", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 2000000, "maxOutput": 128000, "inputCost": 0.2, "outputCost": 0.5 }, { "model": "poe/xai/grok-4.1-fast-non-reasoning", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 2000000, "maxOutput": 30000, "inputCost": null, "outputCost": null }, { "model": "poe/xai/grok-4.1-fast-reasoning", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 2000000, "maxOutput": 30000, "inputCost": null, "outputCost": null }, { "model": "poe/xai/grok-code-fast-1", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 256000, "maxOutput": 128000, "inputCost": 0.2, "outputCost": 1.5 } ]} />
const agent = new Agent({
id: "custom-agent",
name: "custom-agent",
model: {
url: "https://api.poe.com/v1",
id: "poe/anthropic/claude-haiku-3",
apiKey: process.env.POE_API_KEY,
headers: {
"X-Custom-Header": "value"
}
}
});
const agent = new Agent({
id: "dynamic-agent",
name: "Dynamic Agent",
model: ({ requestContext }) => {
const useAdvanced = requestContext.task === "complex";
return useAdvanced
? "poe/xai/grok-code-fast-1"
: "poe/anthropic/claude-haiku-3";
}
});