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
- Kling 4.0 FlashKuaishouKuaishou17 credits / s720p · ≈ $0.1 / s
- Kling 3.0KuaishouKuaishoufrom 15.1 credits / s720p · ≈ $0.091 / s
- Kling 3.0 TurboKuaishouKuaishoufrom 20.2 credits / s720p · ≈ $0.12 / s
- Kling 2.6KuaishouKuaishoufrom 12.6 credits / sno sound · ≈ $0.076 / s
Veo API
- Veo 3.1 QualityGoogleGooglefrom 250 credits / video720p · ≈ $1.5 / video
- Veo 3.1 FastGoogleGooglefrom 60 credits / video720p · ≈ $0.36 / video
- Veo 3.1 LiteGoogleGooglefrom 30 credits / video720p · ≈ $0.18 / video
Seedance API
- Seedance 2.5ByteDanceByteDancefrom 28 credits / s480p · ≈ $0.17 / s
- Seedance 2.0ByteDanceByteDancefrom 19 credits / s480p · ≈ $0.11 / s
- Seedance 2.0 FastByteDanceByteDancefrom 11.7 credits / s480p · ≈ $0.07 / s
- Seedance 2.0 MiniByteDanceByteDancefrom 3.8 credits / s480p · ≈ $0.023 / s
MiniMax API
- MiniMax H3MiniMaxMiniMaxfrom 8 credits / s768p · ≈ $0.048 / s
Grok Imagine
- Grok ImaginexAIxAIfrom 2.4 credits / s480p · ≈ $0.014 / s
HappyHorse
- HappyHorse 1.1AlibabaAlibabafrom 22.5 credits / s720p · ≈ $0.14 / s
Gemini Omni
- Gemini Omni FlashGoogleGooglefrom 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
curl https://api.voicica.ai/platform/v1/videos/generations \
-H "Authorization: Bearer vca_your_key_here" \
-H "Content-Type: application/json" \
-d '{"model": "bytedance/seedance-2.0-mini", "prompt": "A red bicycle on a beach at sunset", "duration": 4, "resolution": "480p", "aspect_ratio": "16:9", "audio": false}'
# then, every 10 s or more, with the id from the answer:
curl https://api.voicica.ai/platform/v1/videos/generations/videogen_0123456789abcdef0123456789abcdef \
-H "Authorization: Bearer vca_your_key_here"
# when it has succeeded, download the url (deleted after expires_at):
curl -o clip.mp4 "https://media.voicica.ai/api/vid/.../video.mp4"
How it works
POST /videos/generations returns 202 with a task id and the credits it will take.
Poll GET /videos/generations/{id} every 10 s, or pass callback_url for a signed callback.
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.
Related
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.