This section is only for Keywords AI LLM proxy user.

To use Keywords AI LLM proxy, you need to add your own credentials to call models from each provider. Here’s how you can add your OpenAI credentials on Keywords AI platform.

Add API keys from the UI

1

Go to the Credentials page

The Credentials page allows you to add your own credentials for each provider. Currently, over 20+ providers are supported.

2

Add your OpenAI API key.

3

Add more OpenAI API keys.

We support adding multiple OpenAI API keys. You can add as many as you want. In the field of Load balancing weight, you can set the weight of the API key. This is used to distribute the load between the API keys.

Add API keys 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_OPENAI_API_KEY",
    }
  }
}

Load balancing between API keys

You can add different API keys in the customer_credentials field and specify the weight for each deployment. Check out our Load balancing documentation for more details.

{
  "customer_credentials": [
    {
        "credentials": {
            "openai": {
                "api_key": "YOUR_OPENAI_API_KEY",
            }
        },
        "weight": 1.0 // The weight of the deployment
    },
    {
        "credentials": {
            "openai": {
                "api_key": "YOUR_OPENAI_API_KEY", // Another deployment
            }
        },
        "weight": 1.0 // The weight of the deployment
    },
  ],
}

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. In the example below, we are overriding the API key for the gpt-4o model.

{
  // Rest of the request body
  "customer_credentials": {
    "openai": {
      "api_key": "YOUR_OPENAI_API_KEY",
    }
  },
  "credential_override": {
    "gpt-4o":{ // override for a specific model.
      "api_key": "YOUR_ANOTHER_OPENAI_API_KEY",
    }
  }
}

Full request example