Provider Slug.
oraclePortkey SDK Integration with Oracle
Portkey provides a consistent API to interact with models from Oracle. To integrate Oracle with Portkey:1. Create an Oracle Integration
The auth headers can be configured directly in your integration or passed directly in the request headers.
| Header | Value |
|---|---|
| x-portkey-oracle-api-version | The Oracle API version to use (example: 20160918) |
| x-portkey-oracle-region | The Oracle region (example: us-ashburn-1) |
| x-portkey-oracle-compartment-id | The Compartment OCID (example: ocid1.compartment.oc1..aaaaaaaab7x77777777777777777) |
| x-portkey-oracle-serving-mode | The serving mode. Supported values: ON_DEMAND, DEDICATED |
| x-portkey-oracle-tenancy | The Tenancy OCID (example: ocid1.tenancy.oc1..aaaaaaaab7x77777777777777777) |
| x-portkey-oracle-user | The User OCID (example: ocid1.user.oc1..aaaaaaaab7x77777777777777777) |
| x-portkey-oracle-fingerprint | The API key fingerprint (example: 12:34:56:78:90:ab:cd:ef:12:34:56:78:90:ab:cd:ef) |
| x-portkey-oracle-private-key | The API private key (example: -----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEA…) |
2. Install the Portkey SDK
Add the Portkey SDK to your application to interact with Oracle’s models through Portkey’s gateway.- NodeJS
- Python
3. Initialize Portkey with the Virtual Key
To use Oracle with Portkey, get your API key from here, then add it to Portkey to create the virtual key.- NodeJS SDK
- Python SDK
3. Invoke Chat Completions with Oracle
Use the Portkey instance to send requests to Oracle’s models. You can also override the virtual key directly in the API call if needed.- NodeJS SDK
- Python SDK
Managing Oracle Prompts
You can manage all prompts to Oracle in the Prompt Library. All the current models of Oracle are supported and you can easily start testing different prompts. Once you’re ready with your prompt, you can use theportkey.prompts.completions.create interface to use the prompt in your application.

