Skip to main content

Create an API key

1

Open API key management

Open API key management and sign in.
2

Create a new API key

Select Add new API key, then configure the fields you need:
FieldMeaning
NameA label that helps you identify the client or task
GroupOne or more groups the API key can use
QuotaOptional usage cap for this API key
ExpirationOptional expiration time
Model limitsOptional allowlist for specific models
IP limitsOptional allowlist for source IP addresses
3

Copy the API key

Copy the API key after it is created:
sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
API keys are sensitive credentials. Store them in local environment variables, a secrets manager, or a trusted backend. Do not commit them to source control.

Groups

An API key can be assigned to multiple groups. If you choose auto, AIOHub picks from active groups based on the current routing configuration. See Groups for the current group snapshot and client-specific guidance.

Security practices

  • Do not share API keys with other people.
  • Store API keys in environment variables instead of hardcoding them.
  • Use separate API keys for separate tools so you can track usage and set limits independently.
  • Rotate API keys periodically.