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.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.12.tar.gz (3.6 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.12-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: puter-0.0.12.tar.gz
  • Upload date:
  • Size: 3.6 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.12.tar.gz
Algorithm Hash digest
SHA256 d0413cbbe996ed7080f7f955cdc058455bdcc59394ebe2d9865878e3d0330aae
MD5 0a62ab0a2d7bc65d89b17c47855365b1
BLAKE2b-256 95fd4b3dc75e3cb1e7ecd6d220d51f3ef952c73e603627158f46905f87a2b926

See more details on using hashes here.

File details

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

File metadata

  • Download URL: puter-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 c70b0104473ee67a55a2d3134980a6e12c12f4053e45ee2a2b517a7f9b96aba2
MD5 8711950ab75d8a11a25168c43f717dca
BLAKE2b-256 12162a113bf3a697b229743aac7c32fb9054a1988b8dd0cf3b38c7ac4447cf17

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