APIMart
Video API

AI Video Generation API: 50 Models, One API Key

An AI video generation API turns a text prompt or an image into a video clip through an HTTP request. APIMart offers 50 video models from ByteDance, Google, Kuaishou, Alibaba, MiniMax, xAI and others, including Seedance 2.5, Veo 3.1, Kling 4.0 and Wan 3.0, with one API key and one balance. Compare live prices below, then open a model for its parameters, playground and code.

Text-to-Video and Image-to-Video API Models

Every video model below uses the same APIMart key and balance and runs as an asynchronous task. Inputs, durations and parameters differ by model, so open a model for its parameter table, pricing and code examples.

How to Choose an AI Video Generation API

01

Native audio in the same request

Seedance 2.5, Kling 4.0, Wan 3.0 and MiniMax H3 can return video with sound from one task, so dialogue and effects do not need a separate audio step.

02

Longer clips

Seedance 2.5, Wan 3.0 and Kling 4.0 generate up to 30 seconds per clip, while Kling 3.0, Gemini Omni 1.2 Flash and MiniMax H3 reach 15 seconds.

03

Image-to-video and frame control

Kling 4.0, Wan 3.0, Seedance 2.5 and Gemini Omni 1.2 Flash accept a first and last frame; Kling 4.0 also takes up to eight keyframes.

04

Motion transfer and video editing

Kling Motion Control copies movement from a reference video, while Wan 2.7 Video Edit, Grok Imagine Video and Seedance 2.5 edit an existing clip.

05

Low-cost drafts

Seedance 2.0 Mini, Grok Imagine Video and the 480p draft mode of Seedance 2.5 keep per-second cost low while you test prompts.

06

4K output

Gemini Omni 1.2 Flash, Veo 3.1 and Kling 3.0 offer 4K tiers at a higher per-second price than their 720p tiers.

AI Video API Pricing and Specs: 9 Popular Models

Live Gold member prices on APIMart, 20% below list price; Platinum and Diamond members pay less. Prices are per second of output at the listed tier unless noted, and each model page shows every tier.

ModelModesClip lengthResolutionGold price
Seedance 2.5 API30-second clips with soundText, image, first/last frame, references, edit and extend4–30 s480p–1080p$0.216/s · 720p
Seedance 2.0 Mini APILow-cost draftsText, image, first/last frame4–15 s480p / 720p$0.039/s · 720p
Veo 3.1 Fast APICinematic Google Veo shotsText, up to 3 images, extend to 15 s8 s720p–4K$0.075 per 8 s clip · 720p / 1080p
Wan 3.0 APIUp to 30 s with flexible referencesText, first/last frame, image, video and audio references2–30 s480p–1080p$0.0658/s · 720p
Kling 4.0 APIUp to 30 s with stereo audioText, image, keyframes, reference video, edit and extend3–30 s720p / 1080p$0.14/s · 720p
Kling 3.0 API720p to 4K tiersText, first frame or first/last frame3–15 s720p–4K$0.0672/s · 720p std
Gemini Omni 1.2 Flash API360p to 4K outputText, image, first/last frame, edit and extend3–15 s360p–4K$0.06/s · 720p
MiniMax H3 APINative 2K with audioText, first/last frame, up to 9 references4–15 s768p / 2K$0.0571/s · 768p
Grok Imagine Video APIFast clips and video editsText, image, video edit1–15 s480p / 720p$0.056/s · 720p

Kling 3.0 is shown at std 720p without sound; sound, pro and 4K cost more. Veo 3.1 Fast on the Ext channel is billed per 8-second clip, while its official channel is billed per second. Seedance and Kling 4.0 also bill reference video input by the second. Failed tasks are not charged.

AI Video API Cost Examples

  • A 10-second 720p clip with Seedance 2.5: 10 × $0.216 = $2.16, with audio included.
  • A 10-second 720p draft with Seedance 2.0 Mini: 10 × $0.039 = $0.39.
  • A 10-second 720p clip with Wan 3.0: 10 × $0.0658 = $0.66; turning the soundtrack on does not change the price.
  • One 8-second Veo 3.1 Fast clip on the Ext channel: $0.075, at 720p or 1080p.

AI Video Generation API Quickstart: Seedance 2.5 Example

Every video model on APIMart follows the same flow: submit a task to POST /v1/videos/generations, then poll the task until the video is ready. This example uses Seedance 2.5; other models take their own model ID and parameters, listed on each model page.

  1. 1

    Get an APIMart API key

    Sign up for APIMart, add balance and create a key on the API Keys page. Save it in the APIMART_API_KEY environment variable and send it as Authorization: Bearer <key>. The same key calls every video model.

  2. 2

    Submit a video task

    POST /v1/videos/generations with the model ID, your prompt and the duration and resolution that model supports. Add image_urls for image to video. The response returns a task_id.

  3. 3

    Get the video

    Poll GET /v1/tasks/{task_id} every 5–15 seconds until the status is completed, then read the video URL from data.result.videos[0].url[0]. Results are kept for 72 hours, so download the files you want to keep.

    See the Seedance 2.5 API reference for every parameter of this model.

POST /v1/videos/generations
curl -X POST https://api.apimart.ai/v1/videos/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance-2.5",
    "prompt": "A cinematic tracking shot of a red vintage car driving along a coastal road at sunset, waves crashing below, warm golden light",
    "size": "16:9",
    "resolution": "720p",
    "duration": 10
  }'

Seedance 2.5 API Parameters Used Here

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: seedance-2.5The video model to call. Every other model takes its own ID, listed on its model page.
promptstringRequiredDefault: —Description of the video: subject, motion, camera and sound.
resolutionstringOptionalDefault: 720p480p, 720p, 1080p or 4K for Seedance 2.5. Higher tiers cost more per second.
sizestringOptionalDefault: adaptiveAspect ratio: 16:9, 4:3, 1:1, 3:4, 9:16, 21:9 or adaptive.
durationintegerOptionalDefault: 5Clip length, 4–30 seconds for Seedance 2.5. Billing follows the output seconds.
generate_audiobooleanOptionalDefault: trueGenerate synced audio. Set false for a silent video.
image_urlsarrayOptionalDefault: —Reference images as public URLs, up to 30 for Seedance 2.5. Adding them turns the request into image to video.
image_with_rolesarrayOptionalDefault: —Images with a role: first_frame, last_frame or reference_image.

AI Video Generation API FAQ

What is an AI video generation API?

An AI video generation API lets your code create video from a text prompt, an image or a reference clip through HTTP requests instead of a web app. On APIMart you send the model ID and parameters to POST /v1/videos/generations, receive a task ID and poll it for the finished video.

What is the best AI video generation API?

It depends on the job. For clips of up to 30 seconds with sound, start with Seedance 2.5, Kling 4.0 or Wan 3.0; for 4K, Gemini Omni 1.2 Flash, Veo 3.1 or Kling 3.0; for low-cost drafts, Seedance 2.0 Mini or Grok Imagine Video. One key lets you run the same prompt on several models and compare.

Can I use Veo, Kling and Seedance through one API?

Yes. One APIMart key and one balance call Veo 3.1, Kling, Seedance and every other video model listed here, with a single bill. Each model keeps its own model ID and parameters, so check its model page before switching.

How much does an AI video generation API cost?

Most video models are billed per second of output, and the rate depends on resolution and sometimes on audio or reference video input; a few, such as Veo 3.1 Fast on the Ext channel, are billed per clip. The table above shows live Gold member prices, 20% below list; Platinum and Diamond members save 24% and 28%.

Do you support text-to-video and image-to-video?

Yes. 40 of the 50 video models accept a text prompt on its own, and 46 accept an input image as a first frame or reference. The Text to Video API and Image to Video API pages list them; image-only, reference-only and editing models are noted on their model pages.

How do I get an AI video API key?

Sign up for APIMart, open the API Keys page in your dashboard and create a key; requests are paid from your balance. A key from Google, Kuaishou or ByteDance's own platform is a different service and does not work with the APIMart endpoint.

How do I call a video generation API?

Send POST /v1/videos/generations to https://api.apimart.ai with your key, the model ID, a prompt and model-specific options, then poll GET /v1/tasks/{task_id} until the task is completed. The quickstart above shows a full Seedance 2.5 request in cURL and Python.

Is there a free AI video generation API?

No. APIMart has no free credits for video models: billing is pay as you go with no subscription, and failed generations are not charged.

Am I charged for failed video generations?

No. Failed tasks are not charged; you only pay for completed generations.

How long are generated videos kept?

Generated videos are kept for 72 hours. Download the files you want to keep and store them in your own system.