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

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.

ProviderModel IDTypeCredits
GoogleNew
gemini-3.1-flash-image-previewImage2
Google
gemini-3-pro-image-previewImage4
Google
gemini-2.5-flash-imageImage1
GooglePreview
veo-3.1-generate-previewVideo25
Kling
kling-v2-6Video15
OpenAI
sora-2Video
BytePlus
seedance-2.0Video10