Authentication
Every request to the VideoGen API must include your API key.
API keys
The VideoGen API uses Bearer token authentication. Include your API key in the Authorization header of every request:
Creating a key
- Go to app.videogen.io/developers
- Click Create API key
- Copy the key immediately; it is only displayed once
Keeping your key safe
Your API key is a secret. Do not expose it in client-side code (browsers, mobile apps) or commit it to version control. Use environment variables or a secrets manager instead.
Making requests
TypeScript
Python
cURL
Error responses
If your key is missing or invalid, the API returns 401 Unauthorized: