Authentication

Learn how to authenticate your API requests with Prism

API Keys

Prism uses API keys to authenticate requests. You can create and manage your API keys from your dashboard.

Keep your API keys secure! Do not share them in publicly accessible areas such as GitHub, client-side code, etc.

Making Authenticated Requests

Include your API key in the Authorization header using the Bearer scheme:

curl https://api.prism.video/v1/generations \
  -H "Authorization: Bearer YOUR_API_KEY"

Creating API Keys

  1. Navigate to your API Keys page
  2. Click "Create API Key"
  3. Give your key a descriptive name
  4. Copy the key and store it securely

Error Responses

If authentication fails, you'll receive a 401 Unauthorized response:

{
  "error": "Invalid API key"
}