Provider Slug:
oraclePortkey SDK Integration with Oracle OCI
Portkey provides a consistent API to interact with models from various providers. To integrate Oracle OCI Generative AI with Portkey:1. Install the Portkey SDK
- NodeJS
- Python
2. Initialize Portkey with Oracle OCI
Oracle OCI uses API key-based authentication with request signing. You’ll need the following credentials from your OCI console:| Parameter | Description |
|---|---|
oracleRegion | OCI region (e.g., us-chicago-1, eu-frankfurt-1) |
oracleTenancy | Your OCI tenancy OCID |
oracleCompartmentId | Your OCI compartment OCID |
oracleUser | Your OCI user OCID |
oracleFingerprint | API key fingerprint |
oraclePrivateKey | Private key content (PEM format) |
oracleKeyPassphrase | (Optional) Passphrase for encrypted private key |
- NodeJS SDK
- Python SDK
3. Invoke Chat Completions
- NodeJS SDK
- Python SDK
- cURL
Supported Models
Oracle OCI Generative AI supports various foundation models including:- Cohere Models:
cohere.command-r-plus,cohere.command-r,cohere.command - Meta Llama Models:
meta.llama-3.1-405b-instruct,meta.llama-3.1-70b-instruct
Configuration Options
You can specify the API version using theoracleApiVersion parameter (defaults to 20231130).

