Skip to main content

A Python client for Puter AI API - free access to GPT-4 and Claude

Project description

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

puter-0.0.13.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

puter-0.0.13-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file puter-0.0.13.tar.gz.

File metadata

  • Download URL: puter-0.0.13.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.6

File hashes

Hashes for puter-0.0.13.tar.gz
Algorithm Hash digest
SHA256 351e98cfec09430ae55d0bd0b5603b001da2acd6ca657fed8313c9b20d429de2
MD5 9e89072d0e644e860ad446f46ef348db
BLAKE2b-256 0f00d1e3d18e1d1325d7e069efdba2cb1f428ab3cf1bf0d787a656be73f5567e

See more details on using hashes here.

File details

Details for the file puter-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: puter-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.6

File hashes

Hashes for puter-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 fb35488ece17e1bb2932b19c196c7c4dc963eb7af371a18f614f05caa740c3cf
MD5 ac5cdda8e64617efcbf6a4e4070cbd77
BLAKE2b-256 2bc5a70b31de379a8f76aa6c012d5f62facc36adf1af6fdf0cbee4906c38d3eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page