Creating an API Key
Create an API key to authenticate requests to OCI Generative AI. You can name the key and optionally configure up to two key names with expiration dates and times.
On the API keys list page, select Create API key. If you need help finding the list page, see Listing API Keys.
Basic information
Key names and expiration times
Ensure that you Add API Key Permission after you create the key. Use the
api-key createcommand and required parameters to create an API key.oci generative-ai api-key create [OPTIONS]For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateApiKey operation to create an API key. Provide the display name, optional description, and any key names with their expiration timestamps (UTC).