Skip to main content

Python client library for the Portkey API

Project description


Portkey streamlines API requests to 20+ LLMs. It provides a unified API signature for interacting with all LLMs alongwith powerful LLM Gateway features like load balancing, fallbacks, retries and more.

pip install portkey

💡 Features

Name Description Example
🌐 Interoperability Write once, run with any provider. Switch between __ models from __ providers seamlessly. Open In Colab
🔀 Fallback Strategies Don't let failures stop you. If one provider fails, Portkey can automatically switch to another. Open In Colab
🔄 Retry Strategies Temporary issues shouldn't mean manual re-runs. Portkey can automatically retry failed requests. Open In Colab
⚖️ Load Balancing Distribute load effectively across multiple API keys or providers based on custom weights. Open In Colab
📝 Unified API Signature If you've used OpenAI, you already know how to use Portkey with any other provider. Open In Colab

🤝 Supported Providers

Provider Support Status Supported Endpoints
OpenAI ✅ Supported /completion, /embed
Azure OpenAI ✅ Supported /completion, /embed
Anthropic ✅ Supported /complete
Cohere ✅ Supported generate, embed
Google Bard 🚧 Coming Soon
LocalAI 🚧 Coming Soon

📝 Full Documentation | 🎯 Roadmap | 🐞 Bug Reports | 💡 Feature Requests

📞 Talk to the devs: Rohit | Ayush

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

portkey-ai-0.1.27.tar.gz (15.0 kB view details)

Uploaded Source

File details

Details for the file portkey-ai-0.1.27.tar.gz.

File metadata

  • Download URL: portkey-ai-0.1.27.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for portkey-ai-0.1.27.tar.gz
Algorithm Hash digest
SHA256 58d9fdbad6b6e60905f25931fd5c1c4f59f5ff95c3b6a3ca9e19456da6a5d536
MD5 4ea8025633b61cbd3a316bc5d526da92
BLAKE2b-256 beee3f17eb72da7d7bcf31e8d69e303fca51bdd71dec714e383f2bc651372ac6

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