Authentication
All API requests use bearer tokens.
Authorization: Bearer pk-dev-YOUR_KEYCreate a key
Section titled “Create a key”- Open
https://app.parel.cloud. - Go to API Keys.
- Create a development or production key.
- Store the raw key immediately. It is shown only once.
Key format
Section titled “Key format”| Part | Meaning |
|---|---|
pk | Parel key prefix |
{env} | Environment label such as dev or prod |
{key} | Random secret material |
Example:
pk-dev-YOUR_KEYCLI login
Section titled “CLI login”parel auth loginparel auth whoamiFor scripts and CI, set the key as an environment variable:
export PAREL_API_KEY="pk-dev-YOUR_KEY"parel models listSDK usage
Section titled “SDK usage”from openai import OpenAI
client = OpenAI( api_key="pk-dev-YOUR_KEY", base_url="https://api.parel.cloud/v1",)