Skip to main content

poe

Official Python client for the Poe chat completions API.

Installation

pip install poe

Quick Start

from poe import PoeClient

client = PoeClient(api_key="your-poe-api-key")

# Simple chat
response = client.chat("What is Python?", model="GPT-4o")
print(response["choices"][0]["message"]["content"])

Streaming

for chunk in client.stream("Tell me a story", model="GPT-4o"):
    print(chunk, end="", flush=True)

Options

client = PoeClient(
    api_key="your-key",
    timeout=120.0,       # request timeout in seconds
)

response = client.chat(
    "Explain quantum computing",
    model="GPT-4o",
    temperature=0.7,
    max_tokens=1024,
    system_prompt="You are a helpful physics teacher.",
)

Context Manager

with PoeClient(api_key="your-key") as client:
    resp = client.chat("Hello!")
    print(resp["choices"][0]["message"]["content"])

API Key

Get your API key from poe.com/api_key.

License

MIT

Release files for poe 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for poe 0.1.0
File Size Uploaded
poe-0.1.0.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for poe 0.1.0
File Interpreter ABI Platform
poe-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / poe-0.1.0.tar.gz

Download URL poe-0.1.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f293cd30de517b89daa82c0537bc5015d48871f0fcfe720f5eaa01aab4a03299
BLAKE2b-256 checksum
How to use checksums
622323e42436a734412d8e46ecdc05041a5533619ce6b3bcb05977c34d9e61f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 30, 2026.

Transparency log

Release files / poe-0.1.0-py3-none-any.whl

Download URL poe-0.1.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93b71291c874befd2d8607cff13cbbc9c847016781742e57c3ab6729bd777f65
BLAKE2b-256 checksum
How to use checksums
20820736aa02fb146c1e7f742467ce58df2348bcb43cb2da9e17081bc5cf5cfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page