Skip to main content

Reivo Python SDK

Cut your AI API costs in half with one line of code.

Install

pip install reivo

With provider dependencies:

pip install reivo[openai]      # OpenAI
pip install reivo[anthropic]   # Anthropic
pip install reivo[all]         # All providers

Quick Start

from reivo import Reivo

r = Reivo("rv_your_api_key")

# OpenAI
client = r.openai()
resp = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello"}],
)

# Anthropic
client = r.anthropic()
resp = client.messages.create(
    model="claude-sonnet-4-20250514",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}],
)

# Google
client = r.google()
resp = client.models.generate_content(
    model="gemini-2.5-flash",
    contents="Hello",
)

Session & Agent Tracking

r = Reivo(
    "rv_your_api_key",
    session_id="session-123",
    agent_id="my-agent",
)
client = r.openai()

Self-Hosted

r = Reivo("rv_...", base_url="https://your-proxy.example.com")

Get Your API Key

Sign up at reivo.dev and generate a key in Settings.

License

MIT

Metadata

Release files for reivo 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 reivo 0.1.0
File Size Uploaded
reivo-0.1.0.tar.gz 3.2 kB Details

Built distribution (wheel)

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

Total release size: 6.7 kB

Release files / reivo-0.1.0.tar.gz

Download URL reivo-0.1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9e5d409034fca3d7dbb0adf2cd27a67344e3e097b4d25d3dd2764f48bd1515d8
BLAKE2b-256 checksum
How to use checksums
fea6562baf4932542f0b2007fa5d9a1d6c5e7fde99b78e805a90b0b8b891d811
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

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

Download URL reivo-0.1.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fd6e1b7da2e1021316a018492b41415ca0ef0f6bdbed3eaf3bf934e31c89076
BLAKE2b-256 checksum
How to use checksums
32f94d7a02cfc2726ecaa01dcfb047ed477b0d7933d2fd3f1660e8e36a160805
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

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