登录开始创作

AI video generation API

Generate videos from text or images with 18 models from Kuaishou, Google, ByteDance, Alibaba, MiniMax and xAI, all behind one API key. Each model and option has a fixed price in API credits, and a failed or timed-out video is refunded in full.

Pay as you go from $5 · No subscription · No free trial · Failed calls are not charged

What you can do

  • Text to video

    Send a prompt, a duration, an aspect ratio and a resolution. Every model on this page takes text.

  • Image to video

    Pass a first frame, and on Kling 3.0, Veo 3.1, Gemini Omni Flash, Seedance, Wan 2.7 and MiniMax H3 a last frame too, to animate a still image.

  • Reference images

    Guide the look with reference images on Veo 3.1 Fast, Veo 3.1 Lite, Gemini Omni Flash, Seedance, Wan 2.7, Grok Imagine and HappyHorse 1.1.

All video models

Prices in API credits (1 credit = $0.006), checked December 5, 2026. GET /models is always current.

Kling API

  • Kuaishou
    17 credits / s720p · ≈ $0.1 / s
  • Kling 3.0Kuaishou
    Kuaishou
    from 15.1 credits / s720p · ≈ $0.091 / s
  • Kuaishou
    from 20.2 credits / s720p · ≈ $0.12 / s
  • Kling 2.6Kuaishou
    Kuaishou
    from 12.6 credits / sno sound · ≈ $0.076 / s

Veo API

  • Google
    from 250 credits / video720p · ≈ $1.5 / video
  • Google
    from 60 credits / video720p · ≈ $0.36 / video
  • Google
    from 30 credits / video720p · ≈ $0.18 / video

Seedance API

  • Seedance 2.5ByteDance
    ByteDance
    from 28 credits / s480p · ≈ $0.17 / s
  • Seedance 2.0ByteDance
    ByteDance
    from 19 credits / s480p · ≈ $0.11 / s
  • ByteDance
    from 11.7 credits / s480p · ≈ $0.07 / s
  • ByteDance
    from 3.8 credits / s480p · ≈ $0.023 / s

Wan

  • Wan 2.7Alibaba
    Alibaba
    from 16 credits / s720p · ≈ $0.096 / s
  • Wan 2.6Alibaba
    Alibaba
    from 14 credits / s720p · ≈ $0.084 / s
  • Wan 2.5Alibaba
    Alibaba
    from 12 credits / s720p · ≈ $0.072 / s

MiniMax API

  • MiniMax H3MiniMax
    MiniMax
    from 8 credits / s768p · ≈ $0.048 / s

Grok Imagine

  • xAI
    from 2.4 credits / s480p · ≈ $0.014 / s

HappyHorse

  • Alibaba
    from 22.5 credits / s720p · ≈ $0.14 / s

Gemini Omni

  • Google
    from 63 credits / video720p · 4 s · ≈ $0.38 / video

Code

import time

import httpx  # pip install httpx

BASE = "https://api.voicica.ai/platform/v1"
HEADERS = {"Authorization": "Bearer vca_your_key_here"}  # better: os.environ["VOICICA_API_KEY"]

# 1. Start the task: 480p, 4 seconds, no sound = 4 x 3.8 = 15.2 credits.
task = httpx.post(f"{BASE}/videos/generations", headers=HEADERS, timeout=60, json={
    "model": "bytedance/seedance-2.0-mini",
    "prompt": "A night market in Bangkok, slow dolly shot, neon signs, light rain",
    "duration": 4,           # integer seconds, one of the model's params values
    "aspect_ratio": "16:9",
    "resolution": "480p",
    "audio": False,          # models with capabilities.audio == "toggle"
    # "first_frame": "https://example.com/start.png",
    # "last_frame": "https://example.com/end.png",       # needs first_frame
    # "reference_images": ["https://example.com/ref.png"],
    # "callback_url": "https://example.com/hooks/voicica",
    "metadata": {"project": "my-project", "node": "clip"},
})
task.raise_for_status()  # 202 Accepted
task = task.json()        # {"id": "videogen_...", "status": "pending", "credits": "15.2000", ...}

# 2. Poll every 10 s or more (a video takes minutes).
while task["status"] in ("pending", "running"):
    time.sleep(10)
    task = httpx.get(f"{BASE}/videos/generations/{task['id']}", headers=HEADERS, timeout=60).json()

# 3. Download it: deleted after expires_at (30 days).
if task["status"] == "succeeded":
    with httpx.stream("GET", task["url"], timeout=300) as r, open("clip.mp4", "wb") as f:
        for chunk in r.iter_bytes():
            f.write(chunk)
    print(task["duration_seconds"], task["resolution"], task["has_audio"], task["credits"])
else:
    print(task["error"]["code"], task["credits"])  # "0.0000": a failed video is not charged

More examples (callbacks, polling, errors) are in the docs.

How it works

  1. POST /videos/generations returns 202 with a task id and the credits it will take.

  2. Poll GET /videos/generations/{id} every 10 s, or pass callback_url for a signed callback.

  3. Download the result within 30 days. Failed or timed-out tasks are refunded in full.

FAQ

Which video models can I use?

18 models: Kling 4.0 Flash, 3.0, 3.0 Turbo and 2.6; Veo 3.1 Quality, Fast and Lite; Gemini Omni Flash; Seedance 2.5, 2.0, 2.0 Fast and 2.0 Mini; Wan 2.7, 2.6 and 2.5; MiniMax H3; Grok Imagine; and HappyHorse 1.1. GET /models always has the current list.

How is a video priced?

Most models are priced per second of output, by resolution (and on some, by whether sound is on). Veo 3.1 and Gemini Omni Flash are priced per video. The cheapest option today is Grok Imagine (480p) at 2.4 credits per second (about $0.014).

Can I turn a photo into a video?

Yes. Send the image as first_frame (a public https URL, PNG, JPEG or WebP, up to 10 MB). Some models also take a last_frame or reference images; the series pages show which.

How long does a video take?

Usually a few minutes. A task that is not finished within 20 minutes fails with timeout and is refunded; Seedance 2.5 and 2.0, 4K and videos longer than 15 seconds get 40 minutes.

Is there a free trial?

No. There is no free trial or free credit. The smallest top-up is $5, about 833 API credits.

Get your API key

Top up from $5, create a key and call any of 18 video models in a few minutes.

Model names are trademarks of their owners (Kuaishou, Google, ByteDance, Alibaba, MiniMax, xAI). Voicica provides access to these models through APIs and is not affiliated with or endorsed by them.