AI Backend Security¶
Let's configure backend security for your AI APIs in order to ensure secure communication with AI service providers. Note that you do not have to worry about this step if the AI Service Provider you have used is unsecured.
Step 1: Get API Key from AI Service Provider¶
The first step is to obtain an API Key from the AI Service Provider you selected while creating the AI API. This key is required to authenticate requests and securely connect to the AI service.
You can do so for OpenAI by following the steps mentioned below:
- Login to OpenAI and go to OpenAI Dashboard.
-
Navigate to API keys section from the left menu. Then, click on Create new secret key. Provide a name for the key and click on Create secret key.
Step 2: Configure obtained API Key with your AI API¶
- Navigate to API Configurations → Endpoints.
-
Notice the API Key Required warning against the
Default Production EndpointandDefault Sandbox Endpoint. Click on Edit icon and fill in the API Key value which you obtained from Step 1 above and click on Update to save the changes.Note
API Manager supports below AI Service Providers by default. The authorization approach of each is mentioned below:
- Anthropic:
x-api-keyheader - AWSBedrock: Requires both an AWS Access Key and AWS Secret Key for authentication.
- AzureAIFoundry:
api-keyheader - AzureOpenAI:
api-keyheader - Gemini:
X-goog-api-keyheader - MistralAI:
Authorizationheader - OpenAI:
Authorizationheader
Note that we prepend "Bearer " to the header value that you provide when it comes to MistralAI and OpenAI since they are expecting an Authorization header.
- Anthropic:

