Skip to main content

puter

PyPI version Python 3.7+ License: MIT

A simple Python client for Puter.AI API that lets you use GPT-4 and Claude models for free!

Installation

pip install puter

Quick Start

from puter import ChatCompletion

# Basic completion
response = ChatCompletion.create(
    messages=[{"role": "user", "content": "tell me a joke"}],
    model="gpt-4o-mini",
    driver="openai-completion",
    api_key="your-api-key"
)

# Streaming response
response = ChatCompletion.create(
    messages=[{"role": "user", "content": "tell me a story"}],
    model="claude-3-5-sonnet-latest",
    driver="claude",
    stream=True,
    api_key="your-api-key"
)

Features

  • OpenAI-style interface
  • Multiple models supported:
  • GPT-4o-mini
  • GPT-4o
  • Claude 3.5 Sonnet
  • Streaming support
  • Clean and simple API

Models & Drivers

Model Driver
gpt-4o-mini openai-completion
gpt-4o openai-completion
claude-3-5-sonnet-latest claude

Version History

  • 0.0.13: Fixed README formatting
  • 0.0.12: Updated README
  • 0.0.11: Latest release with improved stability
  • 0.0.1: Initial release

License

MIT License - feel free to use in your projects!

Metadata

Release files for puter 0.0.13

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

Source distribution (sdist)

Source distribution for puter 0.0.13
File Size Uploaded
puter-0.0.13.tar.gz 4.3 kB Details

Built distribution (wheel)

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

Total release size: 9.2 kB

Release files / puter-0.0.13.tar.gz

Download URL puter-0.0.13.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
351e98cfec09430ae55d0bd0b5603b001da2acd6ca657fed8313c9b20d429de2
BLAKE2b-256 checksum
How to use checksums
0f00d1e3d18e1d1325d7e069efdba2cb1f428ab3cf1bf0d787a656be73f5567e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.6

Release files / puter-0.0.13-py3-none-any.whl

Download URL puter-0.0.13-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb35488ece17e1bb2932b19c196c7c4dc963eb7af371a18f614f05caa740c3cf
BLAKE2b-256 checksum
How to use checksums
2bc5a70b31de379a8f76aa6c012d5f62facc36adf1af6fdf0cbee4906c38d3eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.0.13 This release

2 release files

0.0.1

2 release files

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