Skip to content

[Feature] Add Support for Poe API #677

@zerob13

Description

@zerob13

Is your feature request related to a problem? Please describe.
The application currently lacks support for the Poe OpenAI-compatible API provider. Poe enables access to a wide range of models and bots through a single key using the familiar /v1/chat/completions interface. Without this provider, users cannot conveniently leverage Poe’s unified access to multiple frontier models or quickly switch and compare them within the application.

Describe the solution you'd like
I would like to request the addition of Poe as a new provider. Poe offers an OpenAI-compatible API for chat completions, which should make the integration process straightforward. The key information for the provider would be:

  • Provider Name: Poe
  • API Base URL: https://api.poe.com/v1
  • Authentication: Bearer Token using POE_API_KEY (obtainable at https://poe.com/api_key)

Below is a sample Python snippet using the OpenAI SDK (compatible with Poe’s API):

# pip install openai
import os, openai
client = openai.OpenAI(
    api_key=os.getenv("POE_API_KEY"), # https://poe.com/api_key
    base_url="https://api.poe.com/v1",
)
chat = client.chat.completions.create(
    model="GPT-4o",  # or other models (Claude-Sonnet-4, Gemini-2.5-Pro, Llama-3.1-405B, Grok-4..)
    messages=[{"role": "user", "content": "Top 3 things to do in NYC?"}],
)
print(chat.choices[0].message.content)

Describe alternatives you've considered
Using individual providers’ native APIs for each model. However, this leads to fragmented configurations and higher integration overhead. Poe’s OpenAI-compatible endpoint provides a unified way to access multiple models with one key and a consistent interface, reducing complexity.

Additional context
Poe’s OpenAI-compatible API documentation:
https://creator.poe.com/docs/external-applications/openai-compatible-api


你的功能请求是否与某个问题有关?请描述一下。
当前应用不支持 Poe 的 API 作为 provider。Poe 通过统一的 /v1/chat/completions 接口与单一密钥,提供对多种模型的访问。如果缺少该 provider,用户无法便捷地利用 Poe 的多模型统一接入能力,也不便于在应用内快速切换与比较不同前沿模型。

请描述你希望的解决方案
希望添加 Poe 作为新的 Provider。Poe 提供与 OpenAI 兼容的聊天补全 API,集成应当较为简单。关键配置信息如下:

  • Provider 名称:Poe
  • API Base URL:https://api.poe.com/v1
  • 认证方式:使用 POE_API_KEY 进行 Bearer Token 认证(可在 https://poe.com/api_key 获取)

以下是一个使用 OpenAI SDK(兼容 Poe API)的 Python 示例代码:

# pip install openai
import os, openai
client = openai.OpenAI(
    api_key=os.getenv("POE_API_KEY"), # https://poe.com/api_key
    base_url="https://api.poe.com/v1",
)
chat = client.chat.completions.create(
    model="GPT-4o",  # 或其他模型(Claude-Sonnet-4, Gemini-2.5-Pro, Llama-3.1-405B, Grok-4..)
    messages=[{"role": "user", "content": "纽约值得做的三件事?"}],
)
print(chat.choices[0].message.content)

请描述你考虑过的其他替代方案
为每个模型分别对接其原生 API。但这会导致配置分散、集成成本提高。Poe 的 OpenAI 兼容端点提供统一接口,使用单密钥即可访问多模型,显著降低复杂度。

附加背景
Poe 的 OpenAI 兼容 API 文档:
https://creator.poe.com/docs/external-applications/openai-compatible-api

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions