Authentication
All API requests require authentication via a Bearer token in the Authorization header.
Getting Your API Key
- Sign up at EvoLink
- Navigate to your API Key Management Page
- Create a new key and copy it — store it securely
Base URL
https://api.evolink.ai
Using Your API Key
Include the API key in every request header:
Authorization: Bearer YOUR_API_KEY
cURL Example
curl -X POST https://api.evolink.ai/v1/videos/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "seedance-2.0", "prompt": "A cat playing piano"}'
Python Example
import requests
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
response = requests.post(
"https://api.evolink.ai/v1/videos/generations",
headers=headers,
json={"model": "seedance-2.0", "prompt": "A sunset over the ocean"}
)
Node.js Example
const response = await fetch("https://api.evolink.ai/v1/videos/generations", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
model: "seedance-2.0",
prompt: "A sunset over the ocean"
})
});
Security Best Practices
- Never expose your API key in client-side code or public repositories
- Store keys in environment variables or a secrets manager
- Rotate keys periodically from your API Key Management Page
- Use separate keys for development and production
Related
- Quick Start — Get up and running
- Rate Limits — Understand rate limiting
- Error Codes — Handle authentication errors