AI Video Generation API
Generate, reference-guide, extend, and edit video clips through one unified REST API covering Google Veo 3.1 Fast, Google Omni Flash (1.0, 1.1, and 1.2 Flash), and ByteDance Seedance 2.0 Mini — starting at $0.01/s silent ($0.015/s default with sound) on Veo 3.1 Fast and $0.0174/s (360p) on Omni 1.2 Flash.
Covers all 20 video endpoints currently active across Google Veo 3.1 Fast, Google Omni Flash / 1.1 Flash / 1.2 Flash, and ByteDance Seedance 2.0 Mini spanning 6 video capabilities.
- Endpoints Covered
- 20
- Lowest Catalog Rate
- $0.01/s
- Capabilities
- Text To Video, Image To Video, Start End Frame To Video, Reference To Video, Video Edit, Video Extend
- Savings vs fal.ai
- Up to 90%
01 / LIVE CATALOG PRICING
Real Catalog Pricing & Dynamic Tiers
Rates below are calculated dynamically from E2X micro-cent pricing rules and default resolution/quality multipliers.
| Model & Endpoint Slug | Capability | Default Rate | Dynamic Pricing Tiers |
|---|---|---|---|
| Seedance 2.0 Mini Text-to-Video bytedance/seedance-2.0-mini/text-to-video | Text To Video | $0.09/s | 480p:$0.045/s720p (default):$0.09/s |
| Seedance 2.0 Mini Image-to-Video bytedance/seedance-2.0-mini/image-to-video | Image To Video | $0.09/s | 480p:$0.045/s720p (default):$0.09/s |
| Seedance 2.0 Mini Start-End Frame bytedance/seedance-2.0-mini/start-end-frame-to-video | Start End Frame To Video | $0.09/s | 480p:$0.045/s720p (default):$0.09/s |
| Seedance 2.0 Mini Reference-to-Video bytedance/seedance-2.0-mini/reference-to-video | Reference To Video | $0.09/s | 480p:$0.045/s720p (default):$0.09/s |
| Veo 3.1 Fast google/veo-3.1-fast/start-end-frame-to-video | Start End Frame To Video | $0.10/s | Fixed rate (/s):$0.10/s |
| Gemini Omni 1.2 Flash google/omni-1.2-flash/image-to-video | Image To Video | $0.058/s | 360p:$0.0174/s720p (default):$0.058/s1080p:$0.087/s4k:$0.174/s |
| Gemini Omni 1.2 Flash google/omni-1.2-flash/reference-to-video | Reference To Video | $0.058/s | 360p:$0.0174/s720p (default):$0.058/s1080p:$0.087/s4k:$0.174/s |
| Gemini Omni 1.2 Flash google/omni-1.2-flash/start-end-frame-to-video | Start End Frame To Video | $0.058/s | 360p:$0.0174/s720p (default):$0.058/s1080p:$0.087/s4k:$0.174/s |
| Gemini Omni 1.2 Flash google/omni-1.2-flash/text-to-video | Text To Video | $0.058/s | 360p:$0.0174/s720p (default):$0.058/s1080p:$0.087/s4k:$0.174/s |
| Gemini Omni 1.2 Flash google/omni-1.2-flash/video-edit | Video Edit | $0.058/s | 360p:$0.0174/s720p (default):$0.058/s1080p:$0.087/s4k:$0.174/s |
| Gemini Omni 1.2 Flash google/omni-1.2-flash/video-extend | Video Extend | $0.058/s | 360p:$0.0174/s720p (default):$0.058/s1080p:$0.087/s4k:$0.174/s |
| Gemini Omni 1.1 Flash google/omni-1.1-flash/image-to-video | Image To Video | $0.09/s | 360p:$0.0297/s720p (default):$0.09/s1080p:$0.135/s4k:$0.18/s |
| Gemini Omni 1.1 Flash google/omni-1.1-flash/reference-to-video | Reference To Video | $0.09/s | 360p:$0.0297/s720p (default):$0.09/s1080p:$0.135/s4k:$0.18/s |
| Gemini Omni 1.1 Flash google/omni-1.1-flash/start-end-frame-to-video | Start End Frame To Video | $0.09/s | 360p:$0.0297/s720p (default):$0.09/s1080p:$0.135/s4k:$0.18/s |
| Gemini Omni 1.1 Flash google/omni-1.1-flash/text-to-video | Text To Video | $0.09/s | 360p:$0.0297/s720p (default):$0.09/s1080p:$0.135/s4k:$0.18/s |
| Omni Flash google/omni-flash/reference-to-video | Reference To Video | $0.075/s | 4k:$0.15/s720p (default):$0.075/s1080p:$0.1125/s |
| Omni Flash google/omni-flash/text-to-video | Text To Video | $0.0825/s | 4k:$0.165/s1080p:$0.1237/s720p (default):$0.0825/s |
| Veo 3.1 Fast google/veo-3.1-fast/image-to-video | Image To Video | $0.015/s | 720p · Silent:$0.01/s720p · With sound (default):$0.015/s1080p · Silent:$0.01/s1080p · With sound:$0.015/s4k · Silent:$0.015/s4k · With sound:$0.0225/s |
| Veo 3.1 Fast google/veo-3.1-fast/reference-to-video | Reference To Video | $0.015/s | 720p · Silent:$0.01/s720p · With sound (default):$0.015/s1080p · Silent:$0.01/s1080p · With sound:$0.015/s4k · Silent:$0.015/s4k · With sound:$0.0225/s |
| Veo 3.1 Fast google/veo-3.1-fast/text-to-video | Text To Video | $0.015/s | 720p · Silent:$0.01/s720p · With sound (default):$0.015/s1080p · Silent:$0.01/s1080p · With sound:$0.015/s4k · Silent:$0.015/s4k · With sound:$0.0225/s |
02 / QUICKSTART CODE
SSR Code Samples (cURL, JavaScript, Python)
Submit requests directly against POST https://api.e2x.ai/v1/jobs/submit or use the official @e2x/sdk and Python e2x clients with "google/omni-1.2-flash/text-to-video".
curl -sS -X POST "https://api.e2x.ai/v1/jobs/submit" \
-H "Authorization: Bearer $E2X_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/omni-1.2-flash/text-to-video",
"input": {
"prompt": "Smooth aerial drone glide over wet black basalt cliffs as ocean spray rises in golden hour light",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": "8"
}
}'import { E2XClient } from '@e2x/sdk';
const e2x = new E2XClient({ apiKey: process.env.E2X_API_KEY });
const result = await e2x.jobs.run({
model: 'google/omni-1.2-flash/text-to-video',
input: {
"prompt": "Smooth aerial drone glide over wet black basalt cliffs as ocean spray rises in golden hour light",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": "8"
},
});
console.log(result.output);import os
from e2x import E2XClient
client = E2XClient(api_key=os.environ["E2X_API_KEY"])
job = client.jobs.run(
model="google/omni-1.2-flash/text-to-video",
input={
"prompt": "Smooth aerial drone glide over wet black basalt cliffs as ocean spray rises in golden hour light",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": "8"
},
)
print(job.output)03 / API RESPONSES & WEBHOOKS
Real API Response Payloads & Error Envelope
Submission, polling, HMAC-signed webhook callbacks, and error envelopes share one consistent JSON structure across all E2X endpoints.
POST /v1/jobs/submit (Queued Response)
{
"success": true,
"data": {
"jobId": "job_01J9XK2M8N4P7Q3R5S6T8V0WXY",
"status": "pending",
"estimatedCompletionTime": 35,
"costMicroCents": 120000
},
"requestId": "req_01J9XK2M8N4P7Q3R"
}GET /v1/jobs/:jobId (Completed Output)
{
"success": true,
"data": {
"jobId": "job_01J9XK2M8N4P7Q3R5S6T8V0WXY",
"model": "google/omni-1.2-flash/text-to-video",
"status": "completed",
"progress": 100,
"output": "https://assets.e2x.ai/generated/example.mp4",
"outputs": [
{
"url": "https://assets.e2x.ai/generated/example.mp4",
"type": "video"
}
],
"failedGenerations": [],
"numberOfGenerations": 1,
"requestedCount": 1,
"successCount": 1,
"failedCount": 0,
"costMicroCents": 120000,
"refundedMicroCents": 0,
"error": null,
"createdAt": "2026-11-13T10:00:00.000Z",
"completedAt": "2026-11-13T10:00:18.000Z"
},
"requestId": "req_01J9XK2N1B2C3D4E"
}Webhook Callback Body (X-E2X-Signature HMAC-SHA256)
{
"jobId": "job_01J9XK2M8N4P7Q3R5S6T8V0WXY",
"requestId": "req_01J9XK2M8N4P7Q3R",
"status": "completed",
"output": "https://assets.e2x.ai/generated/example.mp4",
"error": null,
"completedAt": "2026-11-13T10:00:18.000Z"
}Verify X-E2X-Signature (HMAC-SHA256 over <X-E2X-Timestamp>.<rawBody>). Read Webhook Signature & Retry docs →
Standard Error Envelope
{
"success": false,
"error": {
"code": "CONCURRENT_JOBS_EXCEEDED",
"message": "Concurrent job limit reached for this model."
},
"requestId": "req_01J9XK2Q9W8E7R6T"
}Every non-2xx response returns success: false with error.code and error.message. Browse API error codes →
04 / INPUT SCHEMA
Input Parameter Reference
Parameters and constraints extracted directly from the live endpoint JSON schemas for covered models.
| Parameter | Type | Required | Default | Allowed Values / Constraints | Endpoints | Description |
|---|---|---|---|---|---|---|
| prompt | string | Required | — | maxLength: 50000 | All 20 endpoints | — |
| aspect_ratio | string | Required | "16:9" | enum: 16:9, 9:16 | omni-1.2-flash/text-to-video, seedance-2.0-mini/text-to-video, seedance-2.0-mini/reference-to-video, veo-3.1-fast/start-end-frame-to-video (+14 more) | — |
| seed | integer | Optional | — | — | omni-1.2-flash/text-to-video, seedance-2.0-mini/text-to-video, seedance-2.0-mini/image-to-video, seedance-2.0-mini/start-end-frame-to-video (+15 more) | — |
| resolution | string | Optional | "720p" | enum: 360p, 720p, 1080p, 4k | All 20 endpoints | Resolution |
| duration | string | Optional | "8" | enum: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 | All 20 endpoints | Duration |
| has_sound | boolean | Optional | true | — | seedance-2.0-mini/text-to-video, seedance-2.0-mini/image-to-video, seedance-2.0-mini/start-end-frame-to-video, seedance-2.0-mini/reference-to-video (+3 more) | — |
| image_url | string | Required | — | format: uri | seedance-2.0-mini/image-to-video, seedance-2.0-mini/start-end-frame-to-video, omni-1.2-flash/image-to-video, omni-1.1-flash/image-to-video (+1 more) | — |
| end_frame_url | string | Required | — | format: uri | seedance-2.0-mini/start-end-frame-to-video, veo-3.1-fast/start-end-frame-to-video, omni-1.2-flash/start-end-frame-to-video, omni-1.1-flash/start-end-frame-to-video | — |
| reference_urls | string[] | Optional | — | items: 0..9 | seedance-2.0-mini/reference-to-video | Reference images (max 9) — use @Image1..@Image9 in prompt |
| reference_video_urls | string[] | Optional | — | items: 0..3 | seedance-2.0-mini/reference-to-video | Reference video clips (max 3) — use @Video1..@Video3 in prompt |
| reference_audio_urls | string[] | Optional | — | items: 0..3 | seedance-2.0-mini/reference-to-video | Reference audio tracks (max 3) — use @Audio1..@Audio3 in prompt |
| start_frame_url | string | Required | — | — | veo-3.1-fast/start-end-frame-to-video, omni-1.2-flash/start-end-frame-to-video, omni-1.1-flash/start-end-frame-to-video | Start frame image URL |
| image_urls | string[] | Required | — | items: 1..7 | omni-1.2-flash/reference-to-video, omni-1.2-flash/video-edit, omni-1.2-flash/video-extend, omni-1.1-flash/reference-to-video (+2 more) | Reference image URLs (1-7 images) |
| voices | string[] | Optional | — | items: 0..5 | omni-1.2-flash/reference-to-video, omni-1.2-flash/video-edit, omni-1.2-flash/video-extend | Optional Google Flow preset voices (up to 5) |
| video_url | string | Required | — | — | omni-1.2-flash/video-edit, omni-1.2-flash/video-extend | Source video URL to edit |
05 / VERIFIED SAMPLE OUTPUTS
Catalog Sample Outputs
Example media served from assets.e2x.ai generated by endpoints in this family.
06 / OPERATIONAL LIMITS
Rate Limits, Concurrency & Upload Constraints
Production enforcement limits enforced by the E2X gateway, worker dispatch, and Cloudflare R2 upload pipeline.
- Account API rate tiers
- Free: 10 req/min (100/hr, 1,000/day, 2 concurrent) · Pro: 100 req/min (5,000/hr, 50,000/day, 10 concurrent) · Enterprise: 1,000 req/min (50,000/hr, 500,000/day, 50 concurrent)
- Default per-model concurrency
- 5 concurrent jobs per user/model unless overridden per model version (`CONCURRENT_JOBS_EXCEEDED` on overflow)
- Gateway global burst protection
- 10,000 requests/minute gateway cap; fail-closed fallback limiter of 5 req/60s if Redis is unreachable
- Batch generations per job
- Maximum 16 outputs per POST /v1/jobs/submit request (`GENERATIONS_LIMIT_EXCEEDED` above 16)
- Pre-flight estimate & R2 upload limits
- POST /v1/jobs/estimate: 60 req/5 min · POST /v1/uploads/presign: 60 req/10 min, max 200 pending uploads, 10 MB images (JPEG/PNG/WEBP/GIF), 100 MB videos (MP4/WEBM)
- Webhook delivery policy
- HTTPS-only public endpoints (private/loopback SSRF blocked), 10s timeout per attempt, up to 5 attempts (0s, 1s, 4s, 16s, 64s), HMAC-SHA256 `X-E2X-Signature` header
Full per-tier quotas and retry guidance: Rate Limits & Concurrency Documentation →
07 / BENCHMARK COMPARISON
Unit-Normalized Pricing vs. fal.ai
Side-by-side comparison at default unit settings (pricing verified through 9 Nov 2026). Endpoints without a published competitor price render "—".
| Endpoint | Capability | E2X Default Rate | Source | Competitor Rate | Savings | Checked |
|---|---|---|---|---|---|---|
| bytedance/seedance-2.0-mini/text-to-video | Text To Video | $0.09/s | fal.ai | $0.1547/s | 42% | 5 Nov 2026 |
| bytedance/seedance-2.0-mini/image-to-video | Image To Video | $0.09/s | fal.ai | $0.1547/s | 42% | 5 Nov 2026 |
| bytedance/seedance-2.0-mini/start-end-frame-to-video | Start End Frame To Video | $0.09/s | fal.ai | $0.1547/s | 42% | 5 Nov 2026 |
| bytedance/seedance-2.0-mini/reference-to-video | Reference To Video | $0.09/s | fal.ai | $0.1547/s | 42% | 5 Nov 2026 |
| google/veo-3.1-fast/start-end-frame-to-video | Start End Frame To Video | $0.10/s | fal.ai | $0.10/s | — | 24 Aug 2026 |
| google/omni-1.2-flash/image-to-video | Image To Video | $0.058/s | fal.ai | $0.10/s | 42% | 9 Nov 2026 |
| google/omni-1.2-flash/reference-to-video | Reference To Video | $0.058/s | fal.ai | $0.10/s | 42% | 9 Nov 2026 |
| google/omni-1.2-flash/start-end-frame-to-video | Start End Frame To Video | $0.058/s | fal.ai | $0.10/s | 42% | 9 Nov 2026 |
| google/omni-1.2-flash/text-to-video | Text To Video | $0.058/s | fal.ai | $0.10/s | 42% | 9 Nov 2026 |
| google/omni-1.2-flash/video-edit | Video Edit | $0.058/s | fal.ai | $0.10/s | 42% | 9 Nov 2026 |
| google/omni-1.2-flash/video-extend | Video Extend | $0.058/s | fal.ai | $0.10/s | 42% | 9 Nov 2026 |
| google/omni-1.1-flash/image-to-video | Image To Video | $0.09/s | — | — | — | — |
| google/omni-1.1-flash/reference-to-video | Reference To Video | $0.09/s | — | — | — | — |
| google/omni-1.1-flash/start-end-frame-to-video | Start End Frame To Video | $0.09/s | — | — | — | — |
| google/omni-1.1-flash/text-to-video | Text To Video | $0.09/s | — | — | — | — |
| google/omni-flash/reference-to-video | Reference To Video | $0.075/s | fal.ai | $0.13/s | 42% | 24 Aug 2026 |
| google/omni-flash/text-to-video | Text To Video | $0.0825/s | fal.ai | $0.125/s | 34% | 24 Aug 2026 |
| google/veo-3.1-fast/image-to-video | Image To Video | $0.015/s | fal.ai | $0.15/s | 90% | 24 Aug 2026 |
| google/veo-3.1-fast/reference-to-video | Reference To Video | $0.015/s | fal.ai | $0.15/s | 90% | 24 Aug 2026 |
| google/veo-3.1-fast/text-to-video | Text To Video | $0.015/s | fal.ai | $0.15/s | 90% | 24 Aug 2026 |
08 / FAQ
Frequently Asked Questions — AI Video Generation API
Verified answers reflecting live catalog models, pricing multipliers, and platform behavior.