Authentication
Securely access the VEO3 API using your secret API key.
Header-basedAPI KeysSecure
API Keys
Your API key is your unique identifier for accessing the VEO3 API.
All API endpoints require authentication using an API key passed in the X-API-Key header. You can create and manage your API keys from your user dashboard.
Getting Your API Key
- Sign up for a VEO3 account.
- Navigate to your dashboard.
- Generate an API key in the API Keys section.
- Use this key in all your API requests.
Authentication Format
How to properly format your API request for authentication.
Include your API key in the X-API-Key header of every request.
HTTP Header
X-API-Key: veo3_your_api_key_hereExample Request (cURL)
curl -X POST "https://api.veo3.com/api/veo/text-to-video" \
-H "X-API-Key: veo3_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"prompt": "A beautiful sunset over mountains"}'Security
Best practices for keeping your API access secure.
Your API key grants access to your account and credits. Treat it like a password and keep it secure.
- Do not share your API key publicly: Never commit your key to version control (e.g., GitHub) or expose it in client-side code.
- Use environment variables: Store your API key in an environment variable on your server to keep it out of your codebase.
- Rotate your keys periodically: If you suspect a key has been compromised, disable it from your dashboard and generate a new one.
- Use different keys for different applications: This helps to isolate access and makes it easier to revoke a single key without affecting other integrations.
Example: Using Environment Variables (Node.js)
// In your .env file
VEO3_API_KEY=veo3_your_secret_key
// In your application code
const apiKey = process.env.VEO3_API_KEY;
fetch('https://api.veo3.com/api/veo/...', {
headers: {
'X-API-Key': apiKey
}
});