API Reference
Editly API Documentation
Generate images and videos from any AI model through a single unified REST API. One key, one endpoint, unlimited creative power.
Base URL:https://editlyplatform-ed06row0u-editly.vercel.app
API Endpoints
Authentication
Every API request must include your secret API key as a Bearer token in the Authorization header. You can create and manage your API keys in the API Keys section of your dashboard.
Authorization header
Authorization: Bearer <YOUR_API_KEY>Example requestcURL
curl -X POST https://editlyplatform-ed06row0u-editly.vercel.app/api/generations \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"modelId": "gemini-2.5-flash-image",
"prompt": "A futuristic city at sunset",
"type": "image",
"aspectRatio": "16:9"
}'Available Models
Pass any of the following modelId values in your request. Credit cost is deducted automatically from your balance upon job completion.
| Provider | Model ID | Type | Credits |
|---|---|---|---|
GoogleNew | gemini-3.1-flash-image-preview | Image | 2 |
Google | gemini-3-pro-image-preview | Image | 4 |
Google | gemini-2.5-flash-image | Image | 1 |
GooglePreview | veo-3.1-generate-preview | Video | 25 |
Kling | kling-v2-6 | Video | 15 |
OpenAI | sora-2 | Video | — |
BytePlus | seedance-2.0 | Video | 10 |