Set up your development environment to use Portkey in your favorite language. Portkey offers official SDKs for the most popular platforms, and is compatible with many OpenAI-style and community libraries.

Portkey’s API is language-agnostic. You can use any HTTP client or OpenAI-compatible SDK to interact with Portkey’s endpoints.

Before You Begin

  1. Create an API key in the dashboard.
  2. Store your API key securely as an environment variable:
export PORTKEY_API_KEY="your_api_key_here"
Official SDKs auto-detect your API key from the environment.

Official SDKs

Compatible & Community Libraries

You can use Portkey with many OpenAI-compatible and community SDKs. Here are some popular options:

Coming Soon

Java

Coming Soon

PHP

Coming Soon

Go

Coming Soon

Rust

Coming Soon

C++

Coming Soon

Ruby

Coming Soon

FAQs