AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Configure the Poe OpenAI-Compatible API for Multi-Model LLMs in Coding Assistants and External Apps

Yap Si Ling · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

Software engineers subscribing to Poe can access leading multi-vendor foundation models—such as Anthropic Claude 3.5/3.7 Sonnet, OpenAI GPT-4o, and Google Gemini 1.5/2.0 Pro—directly within IDEs and local pipelines through a single OpenAI-compatible endpoint: https://api.poe.com/v1.

Instead of opening separate developer accounts, pre-funding prepaid API credits across multiple vendor consoles, and managing disparate credit card billing arrangements, you can point standard OpenAI SDKs and AI coding assistants (such as Cursor, Continue, and Cline) to Poe. API requests directly deduct compute points from your existing Poe subscription pool.

At 365Finds, our institutional assessment is unequivocal: for independent developers, full-stack engineers, and agile prototyping teams, Poe's OpenAI-compatible endpoint is one of the most cost-effective and friction-free universal AI gateways currently available. However, because multi-turn coding sessions consume tokens aggressively, engineering teams must understand bot naming conventions, points accounting, and context-window economics to avoid draining their monthly point balance prematurely.


1. Prerequisites and API Key Generation

To interact with paid frontier models programmatically, your Poe account requires an active subscription or an auxiliary compute points balance. Free tier accounts can query select community bots, but calling commercial frontier models via API requires paid credits.

  1. Log in to Poe: Navigate to your account at Poe.
  2. Access Developer Credentials: Go directly to Poe API Keys or select Settings > API Keys.
  3. Generate a Secret Key: Click Create Key, assign an identifiable label (such as cursor-ide or dev-script), and copy the generated token (prefixed with p-api- or standard hexadecimal format). Store it in a secure password manager or local environment variable.
  4. Export Your Environment Variable:
    export POE_API_KEY="your_poe_api_key_here"
    

2. API Endpoint Specification and Model Discovery

Poe exposes standard OpenAI-compatible REST endpoints under a unified base URL:

Identifying Bot Handles (model Parameter)

In the standard OpenAI API, the model parameter expects strings like gpt-4o or gpt-4-turbo. On Poe, the model field maps directly to the specific bot handle on the Poe platform.

To inspect all models and custom bots available to your API key, execute a standard GET /v1/models request:

curl https://api.poe.com/v1/models \
  -H "Authorization: Bearer $POE_API_KEY"

Common model identifiers include:


3. Configuring Popular AI Coding Assistants

AI code editors and extensions that offer an "OpenAI Compatible" provider mode can be routed through Poe in less than two minutes.

A. Cursor

Cursor allows developers to override its internal OpenAI endpoint with custom base URLs.

  1. Open Cursor and navigate to Settings (Ctrl+, or Cmd+,) > Models (or Features > OpenAI API Key).
  2. Toggle on Override OpenAI Base URL.
  3. Enter the endpoint URL:
    https://api.poe.com/v1
    
  4. Enter your Poe API Key into the OpenAI API Key field.
  5. In the Model Names list, manually add your desired Poe handles (e.g., Claude-3.5-Sonnet, GPT-4o, Gemini-2.0-Flash) and toggle off models that Poe does not serve under standard names.
  6. Open Cursor Chat or Composer (Cmd+I / Ctrl+I) and verify model responses.

B. Continue (VS Code & JetBrains)

The open-source AI assistant Continue reads custom configurations directly from its config.json file:

  1. Open ~/.continue/config.json.
  2. Add your preferred Poe-backed models under the models array using the openai provider:
    {
      "models": [
        {
          "title": "Poe - Claude 3.5 Sonnet",
          "provider": "openai",
          "model": "Claude-3.5-Sonnet",
          "apiKey": "YOUR_POE_API_KEY",
          "apiBase": "https://api.poe.com/v1"
        },
        {
          "title": "Poe - GPT-4o",
          "provider": "openai",
          "model": "GPT-4o",
          "apiKey": "YOUR_POE_API_KEY",
          "apiBase": "https://api.poe.com/v1"
        }
      ]
    }
    
  3. Save the file. Continue updates the model selector dynamically.

C. Cline / Roo Code (VS Code Extension)

Autonomous coding agents like Cline require tool-calling support, which Poe supports over /v1/chat/completions.

  1. Click the Cline icon in the VS Code sidebar and open Settings (gear icon).
  2. Under API Provider, select OpenAI Compatible.
  3. Set Base URL to https://api.poe.com/v1.
  4. Paste your Poe API Key into the API Key input.
  5. Enter the Model ID (for instance, Claude-3.5-Sonnet).
  6. Save settings and initiate a code task.

4. Integration in Custom Applications (Python & Node.js)

Because Poe implements the OpenAI schema, existing code written for the official OpenAI SDK requires only changing api_key and base_url.

Python Implementation (Official openai SDK >= 1.0)

import os
from openai import OpenAI

# Initialize client against Poe's endpoint
client = OpenAI(
    api_key=os.environ.get("POE_API_KEY"),
    base_url="https://api.poe.com/v1",
)

def generate_code_solution(prompt: str, model_handle: str = "Claude-3.5-Sonnet"):
    response = client.chat.completions.create(
        model=model_handle,
        messages=[
            {"role": "system", "content": "You are a senior systems engineer."},
            {"role": "user", "content": prompt},
        ],
        temperature=0.2,
        stream=True,  # Poe fully supports SSE streaming
    )
    
    print(f"--- Response from {model_handle} ---")
    for chunk in response:
        content = chunk.choices[0].delta.content
        if content:
            print(content, end="", flush=True)
    print("\n")

if __name__ == "__main__":
    generate_code_solution("Write a thread-safe LRU cache in Python.")

Node.js / TypeScript Implementation

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.POE_API_KEY,
  baseURL: "https://api.poe.com/v1",
});

async function main() {
  const completion = await client.chat.completions.create({
    model: "GPT-4o",
    messages: [
      { role: "system", content: "You are a TypeScript optimization expert." },
      { role: "user", content: "Optimize this recursive Fibonacci implementation." },
    ],
  });

  console.log(completion.choices[0].message.content);
}

main().catch(console.error);

Raw HTTP Request via cURL

curl https://api.poe.com/v1/chat/completions \
  -H "Authorization: Bearer $POE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "Claude-3.5-Sonnet",
    "messages": [
      {"role": "user", "content": "Summarize the ACID properties in database systems."}
    ]
  }'

5. Architectural Considerations and 365Finds Strategic Evaluation

Before deploying Poe across your team's workflow, evaluate the engineering and financial trade-offs:

Key Advantages

Operational Constraints & Pitfalls

365Finds Recommendation Matrix

Use CaseRecommended Solution365Finds Rationale
Individual IDE Assistant (Cursor / Continue)Poe OpenAI-Compatible APIExceptional value; flat subscription points cover multi-model daily coding assistance without multi-vendor invoice sprawl.
Rapid Prototyping & BenchmarkingPoe OpenAI-Compatible APIAllows A/B testing Claude, GPT, and Gemini side-by-side in Python scripts using one client configuration.
High-Volume Production SaaSDirect Vendor APIsDirect accounts provide prompt caching economics, enterprise SLAs, dedicated rate limits, and batch discounts.
Autonomous Multi-Turn Agents (Roo Code / Cline)Hybrid ApproachUse lightweight Poe bots (e.g., Gemini-2.0-Flash) for file searches; switch to frontier models only for architectural code generation.

By configuring https://api.poe.com/v1 and mapping bot handles accurately, software engineers can transform an ordinary Poe consumer subscription into a centralized, cross-vendor LLM workstation.


References