Supported providers
OpenAI
Use your own OpenAI credits through Keywords AI
There are 2 ways to add your OpenAI credentials to your requests:
Add it from the UI
- Go to Credentials page
- Add your OpenAI credentials.
Add it in code
- Add
customer_credentials
parameter in your request body to use your own OpenAI credits.
{
// Rest of the request body
"customer_credentials": {
"openai": {
"api_key": "your-api-key"
}
}
}
Override credentials for a particular model. (Optional)
One-off credential overrides. Instead of using what is uploaded for each provider, this targets credentials for individual models.
{
// Rest of the request body
"customer_credentials": {
"openai": {
"api_key": "your-api-key"
}
},
"credential_override": {
"gpt-4o":{ // override for a specific model.
"api_key": "another-api-key"
}
}
}