AI Video APIAI Video API

Authentication

All API requests require authentication using an API key.

API Key Format

Include your API key in the Authorization header:

Authorization: Bearer sk-your-api-key

Security Features

Key Hashing

API keys are hashed using SHA-256 before storage. The full key is shown only once at creation time.

IP Whitelisting

Restrict API key usage to specific IP addresses:

  • Configure up to 10 IP addresses or CIDR ranges per key
  • Empty whitelist = no restriction (all IPs allowed)
  • Manage in Dashboard > API Keys

Spend Limits

Set spending caps to prevent unexpected charges:

LimitDescription
HourlyMaximum credits consumed per hour
DailyMaximum credits consumed per day
TotalMaximum total credits this key can ever consume

Key Management

  • Disable: Temporarily deactivate a key without deleting it
  • Delete: Permanently remove a key
  • Rotate: Create a new key and disable the old one

Error Responses

StatusCodeDescription
401invalid_api_keyKey is invalid, disabled, or deleted
403ip_not_allowedRequest IP not in allowlist
429spend_limit_exceededKey spend limit reached