Poe Api

v1.0.0

Enable intelligent querying of 300+ AI models via Poe API with automatic model selection, task-based routing, and cost-quality optimization.

0· 274·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for nwcalvin/innotech-poe-api.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Poe Api" (nwcalvin/innotech-poe-api) from ClawHub.
Skill page: https://clawhub.ai/nwcalvin/innotech-poe-api
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install innotech-poe-api

ClawHub CLI

Package manager switcher

npx clawhub@latest install innotech-poe-api
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
The skill's name and documentation claim Poe API orchestration and model selection; the code (scripts/poe_client.py) implements an OpenAI-compatible client that reads POE_API_KEY and calls a Poe base_url. Requiring a Poe API key and the openai package is proportionate to the stated purpose. However, the registry summary at the top of the package metadata erroneously listed "Required env vars: none" while skill.json and the code both declare and enforce POE_API_KEY — this metadata mismatch is an incoherence to resolve.
Instruction Scope
SKILL.md and README document usage patterns and explicitly instruct reading MODEL_SELECTION_GUIDE.md. Runtime instructions and examples only call the client methods and request model queries (text, image, video, audio). The instructions do not ask the agent to read arbitrary system files, secrets, or to transmit local files elsewhere. They do, however, require that the POE API key be provided and that the openai client be available.
Install Mechanism
The skill is instruction-only in registry (no platform install spec) but includes Python code and a requirements.txt (openai>=1.0.0). There is no download-from-URL or arbitrary archive extraction. The only installation action is installing the openai package via pip, which is proportionate and traceable.
!
Credentials
The code and skill.json require a POE_API_KEY (secret) and will use it to authenticate requests to https://api.poe.com/v1. That credential is appropriate for the claimed integration, but the top-level registry metadata incorrectly claimed no required env vars — an inconsistency that could mislead users. Also note: any API key gives the skill access to an external account (billing and data) so you should provide a dedicated key with monitoring and consider rate/cost limits.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It does not attempt to persist credentials beyond using environment variables. Autonomous invocation is allowed (default platform behavior) but not combined with other high-privilege requests in this package.
What to consider before installing
Key points to consider before installing: - Metadata mismatch: The registry summary reported no required env vars, but skill.json and scripts/poe_client.py require POE_API_KEY. Ask the publisher to fix the metadata or confirm the requirement. - Provide a scoped/dedicated Poe API key: Use a dedicated account/key with monitoring and spending limits (if Poe supports them). Calls to the Poe API can incur costs and the skill will make outbound requests using your key. - Validate origin and trust: The skill source is listed as unknown. If you don't trust the author, review the included scripts/poe_client.py yourself (it is small and readable) or run it in an isolated environment first. - Install only the declared dependency: requirements.txt lists openai>=1.0.0. Prefer installing in a virtualenv/container and inspect network calls during initial tests. - Test in sandbox: Run example scripts in a sandbox and confirm behavior (which models are actually reachable via your Poe account) and confirm there are no unexpected outbound endpoints beyond the configured base_url. - Monitor usage and billing: Because the skill selects and calls potentially expensive models automatically, implement call limits, logging, and alerts for unexpected usage. What would change this assessment: If the registry metadata is corrected to declare POE_API_KEY and the publisher identity is verified (homepage/source), the package would appear coherent and likely 'benign'. If you find other undeclared secrets or unexpected network endpoints in the code, the verdict would escalate.

Like a lobster shell, security has layers — review code before you run it.

latestvk9724f8jj6qa8bp2dqcfqhyx61827cxw
274downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

Poe API Orchestration Skill

Purpose: Enable OpenClaw to intelligently query multiple AI models via Poe API
Version: 1.0.0
Last Updated: 2026-03-03


What This Skill Does

This skill provides:

  1. Intelligent Model Selection - Automatically choose the right AI model for each task
  2. Poe API Integration - Simple interface to query 300+ AI models
  3. Task-Based Routing - Route requests to the best model based on task type
  4. Cost Optimization - Use appropriate models to balance quality and cost

When OpenClaw Should Use This Skill

Use this skill when you need to:

  • ✅ Query AI models for text generation, reasoning, or analysis
  • ✅ Generate images, videos, or audio
  • ✅ Perform web searches with AI assistance
  • ✅ Access specialized models for specific tasks
  • ✅ Need to choose between multiple AI models

Do NOT use this skill for:

  • Simple string operations (use built-in functions)
  • Local file operations
  • System commands

Quick Start

1. Read the Model Selection Guide

CRITICAL: Before using this skill, read:

MODEL_SELECTION_GUIDE.md

This guide teaches you:

  • Which model to use for each task type
  • When to use Claude, GPT, Gemini, or other models
  • How to balance quality, speed, and cost

2. Use the Client

from skills.poe_api.scripts.poe_client import PoeClient

# Initialize
client = PoeClient()

# Simple query (auto-selects best model)
result = client.query_for_task(
    task_type="programming",
    message="Write a Python function to sort a list"
)

# Specific model
result = client.query("claude-sonnet-4.6", "Your prompt")

# Web search
result = client.web_search("Latest AI developments")

# Generate image
result = client.generate_image("A sunset over mountains")

# Generate video
result = client.generate_video("A cat playing piano")

Task Types and Model Selection

Text/Reasoning Tasks

Task TypePrimary ModelWhen to Use
Programmingclaude-sonnet-4.6General coding, algorithms
Complex Problemsclaude-opus-4.6Deep reasoning, architecture
Fast/Cheapclaude-haiku-4.5Quick tasks, simple code
Huge Contextgemini-3.1-pro>200K tokens, design systems
Code-Focusedgpt-5.3-codexDebugging, code completion
UI/UX Designgemini-3.1-proDesign systems, UX research
Requirementsclaude-sonnet-4.6Gathering, analysis
Data Analysisclaude-sonnet-4.6Data interpretation

Web Search Tasks

Task TypeModelWhen to Use
Simple Searchperplexity-searchQuick lookups
Complex Queriesperplexity-sonar-proIn-depth research
Reasoning + Searchperplexity-sonar-rsn-proAnalysis with sources
Deep Researcho3-deep-researchExtensive research
Budget Researcho4-mini-deep-researchCost-conscious

Image Generation

Task TypeModelWhen to Use
Best Qualityimagen-4-ultraProfessional graphics
Fast + Goodnano-banana-2Quick iterations
Text in Imagesnano-banana-proBanners, signs
General Purposenano-bananaStandard generation
Professional Editinggpt-image-1.5Complex edits
Asian Aestheticsseedream-4.0Specific style

Video Generation

Task TypeModelWhen to Use
Best + Audioveo-3.1Cinematic with sound
Cinematicsora-2-proHigh-fidelity
Versatilekling-o3Multiple workflows
Standardsora-2Good quality
Storytellingwan-2.6Multi-scene
Fastseedance-1.0-proQuick generation

Audio Generation

Task TypeModelWhen to Use
Realistic Speechelevenlabs-v3Audiobooks, podcasts
Fast TTSgemini-2.5-flash-ttsQuick conversion
Controlled Speechhailuo-speech-02Fine-grained control
Musichailuo-music-v1.5Song generation

Key Principles

1. Read MODEL_SELECTION_GUIDE.md First

This guide contains:

  • Detailed decision trees
  • Model capabilities and strengths
  • When to use each model
  • Cost/quality tradeoffs

2. Default to claude-sonnet-4.6

When in doubt, use claude-sonnet-4.6:

  • Best all-around performance
  • 983K token context
  • Excellent at most tasks
  • Good balance of speed and quality

3. Use Task-Based Methods

Instead of manually selecting models, use:

# Automatic model selection
client.query_for_task(task_type="programming", message="...")
client.query_for_task(task_type="ui_design", message="...")
client.query_for_task(task_type="data_analysis", message="...")

4. Consider Context Size

  • < 200K tokens: Claude-Sonnet, Claude-Opus, GPT models
  • > 200K tokens: Gemini-3.1-Pro (1M context)

5. Balance Quality vs Speed

  • Highest Quality: claude-opus-4.6, imagen-4-ultra, veo-3.1
  • Balanced: claude-sonnet-4.6, nano-banana-2
  • Fast/Cheap: claude-haiku-4.5, perplexity-search

Model Capabilities

Text Models

Claude Family (Anthropic)

  • claude-opus-4.6: 983K context, deepest reasoning
  • claude-sonnet-4.6: 983K context, best all-around
  • claude-haiku-4.5: 192K context, fastest

Strengths:

  • Excellent reasoning and coding
  • Great at following complex instructions
  • Strong safety and reliability
  • Very large context windows

GPT Family (OpenAI)

  • gpt-5.3-codex: 400K context, code-focused
  • gpt-5.2: 400K context, general purpose

Strengths:

  • Great at code completion
  • Good instruction following
  • Large context

Gemini Family (Google)

  • gemini-3.1-pro: 1M context, multimodal

Strengths:

  • Massive 1M token context
  • Multimodal input (text, image, video, audio)
  • Great for design systems

Search Models (Perplexity)

  • perplexity-search: Simple web search
  • perplexity-sonar-pro: Complex queries with citations
  • perplexity-sonar-rsn-pro: Reasoning + search

Strengths:

  • Real-time web access
  • Citations included
  • Great for research

Image Models

  • imagen-4-ultra: Best quality
  • nano-banana-2: Latest, fast, 4K
  • gpt-image-1.5: Professional editing

Video Models

  • veo-3.1: Best quality + native audio
  • sora-2-pro: Cinematic (OpenAI)
  • kling-o3: Most versatile (4 workflows)

Audio Models

  • elevenlabs-v3: Most realistic speech
  • hailuo-music-v1.5: Music generation

Common Use Cases

Programming Tasks

# General coding
result = client.query_for_task(
    task_type="programming",
    message="Write a REST API in Python"
)

# Code review
result = client.query_for_task(
    task_type="programming",
    message=f"Review this code: {code}"
)

# Debugging
result = client.query_for_task(
    task_type="programming",
    message=f"Debug this error: {error}"
)

UI/UX Design

# Design system
result = client.query_for_task(
    task_type="ui_design",
    message="Create a design system for a fintech app"
)

# User research
result = client.query_for_task(
    task_type="ui_design",
    message="Analyze user flow for checkout process"
)

Data Analysis

# Analyze data
result = client.query_for_task(
    task_type="data_analysis",
    message=f"Analyze this dataset: {data}"
)

# Generate insights
result = client.query_for_task(
    task_type="data_analysis",
    message="What trends do you see in this data?"
)

Web Search

# Quick search
result = client.web_search("Latest AI developments 2026")

# Deep research
result = client.deep_search(
    "Impact of AI on job markets",
    model="o3-deep-research"
)

Content Creation

# Generate image
result = client.generate_image(
    "Modern dashboard UI with dark theme"
)

# Generate video
result = client.generate_video(
    "A drone shot of city skyline at sunset"
)

# Generate audio
result = client.generate_audio(
    "[whispers] Welcome to our podcast",
    voice_model="elevenlabs-v3"
)

Decision Framework

Step 1: Identify Task Type

Ask yourself:

  • Is this programming? → programming
  • Is this design? → ui_design
  • Is this analysis? → data_analysis
  • Is this search? → web_search
  • Is this creative? → image/video/audio

Step 2: Check Context Size

  • < 200K tokens: Any Claude/GPT model
  • > 200K tokens: Must use gemini-3.1-pro

Step 3: Balance Quality vs Speed

  • Need best quality? → Use Pro/Ultra models
  • Need fast? → Use Haiku/Flash models
  • Need balanced? → Use Sonnet/Standard models

Step 4: Use Task-Based Methods

# Let the skill choose the model
result = client.query_for_task(
    task_type="programming",
    message="Your task",
    complexity="medium"  # low, medium, high
)

Important Notes

Token Limits

  • Managed by Poe API - No need to specify
  • Different models have different limits
  • Poe will automatically handle limits

Cost Management

  • Use max_calls_per_task to limit API calls
  • Use cheaper models for simple tasks
  • Reserve expensive models for complex work

Error Handling

  • Always check result["success"]
  • Implement retry logic
  • Use fallback models if primary fails

Examples

See examples/ directory for:

  • Basic usage examples
  • Advanced workflows
  • Error handling patterns
  • Multi-step tasks

Troubleshooting

Model Not Available

Error: Model not found

Solution: Model names are case-sensitive. Use lowercase:

  • claude-sonnet-4.6
  • Claude-Sonnet-4.6

Rate Limited

Error: Rate limit exceeded

Solution: Wait and retry, or use fallback model

Context Too Large

Error: Context exceeds limit

Solution: Use gemini-3.1-pro (1M context)


Next Steps

  1. ✅ Read MODEL_SELECTION_GUIDE.md for detailed model information
  2. ✅ Check examples/ for usage patterns
  3. ✅ Use query_for_task() for automatic model selection
  4. ✅ When in doubt, use claude-sonnet-4.6

Remember: The key to using this skill effectively is understanding which model to use for which task. Read MODEL_SELECTION_GUIDE.md carefully! 🎯

Comments

Loading comments...