text to video · one API, every model

Text to video — every AI model, one API.

Generate video from a text prompt through one endpoint. Send a model_id and a prompt, poll, get an MP4 back — and swap Veo, Kling or Seedance with a single field. A developer text-to-video API, not a one-model consumer tool.

Prompt → MP4 in one call Every model on one key n8n-ready webhooks
# generate video from a text prompt
POST /api/ai/jobs
{
  "model_id": "veo-3-1",
  "prompt": "a neon city at night, slow aerial push-in"
}
# → { "job_id": "a1b2", "status": "queued" }

GET /api/ai/jobs/a1b2
# → { "status": "done",
# "video_url": "…/out.mp4" }
// one endpoint, every model

One endpoint, every model

You don't integrate a new SDK for every text-to-video model. There is a single job endpoint: change the model_id and the same prompt runs on a different model. Budget to premium, all on one SamAutomation key.

{ }

One request shape

Submit POST /api/ai/jobs with a model_id and a text prompt. The response is a job id you poll — or a webhook that pushes the finished video to your stack.

Swap models with one field

Move from "veo-3-1" to "kling-3-0" by editing a single field. Same prompt, same call — a different model and a different look, no re-integration.

Compose the result

Pipe the generated clip straight into JSON-to-video to add voice-over, captions and other media — text prompt in, finished render out.

# same call — switch the model_id to change the look
POST /api/ai/jobs
{ "model_id": "veo-3-1", "prompt": "…" }
{ "model_id": "kling-3-0", "prompt": "…" }
{ "model_id": "seedance-2-0", "prompt": "…" }

# list every model + its exact credit cost
GET /api/ai/models
# → [ { "id": "wan-2-7", "floor_credits": … }, … ]
// real text-to-video output

Real text-to-video output

Every clip below was generated from a text prompt through this same API — real output, not stock footage. Send a prompt to any of these models and get a moving clip back; switch the model_id to change the model.

Browse all models →
// choose a model for the job

Choose a model for the job

Different text-to-video models are good at different things. Pick by what the shot needs — then change one field to run it. Full capabilities and credit costs live on each model's page.

cinematic + audio

Reach for Veo

When you want film-grade motion and synced audio from a prompt, Veo handles cinematic shots and sound together.

multi-shot

Reach for Kling

For longer, director-grade sequences with multiple shots and tighter motion control, Kling holds a scene together.

multimodal

Reach for Seedance

When a job mixes text and image inputs, Seedance is a strong multimodal text-to-video generator for flexible prompts.

editing suite

Reach for Wan

When you need an editing-suite feel — generate plus refine and iterate on the result — Wan gives you more control over the output.

Compare every model →
// use cases

Built for video from text at scale

Because it's an API, generating video from text becomes a step in a pipeline — a backend job or an n8n flow, not a person in an editor.

Programmatic social video

Loop over a list of prompts, submit one text-to-video job each, and collect the clips by webhook — a whole batch of short-form video ships from one run.

Faceless content at volume

Drive faceless channels by generating B-roll and scenes from text, then compositing voice-over and captions with JSON-to-video — no camera, no editor.

Prototype, then ship

Draft on a budget-tier model to lock the prompt cheaply, then switch the model_id to a premium tier for the final render — same call, production quality.

// from prototype to production

From prototype to production

Most model families ship in tiers. Test your prompt on a cheap Lite or Fast variant, lock it, then switch the model_id to the Pro tier for the production render — same endpoint, same payload.

Lite Cheapest credits — draft prompts and iterate fast before you commit.
Fast Quicker turnaround at a middle cost — validate a look at near-final quality.
Pro Top quality for the final render — change one field once the prompt is locked.

cheap to prototype  →  premium to ship

Each tier's exact credit cost is in GET /api/ai/models, so cost is never a surprise. See plans & credits →

New to this? Read The developer's guide to text-to-video APIs →

Text-to-video, speech and browser APIs do different jobs

A text-to-video AI API generates footage from a written prompt. A speech to video API usually starts with a script or audio track, then combines voice, visuals and captions. Those are separate jobs even when one endpoint hides the pipeline.

ToolMain jobTypical output
Text-to-video APIGenerate moving footage from a promptVideo clip
Image-to-video AI APIAnimate a supplied imageVideo clip based on the reference
TTS or voice APITurn text into spoken audioAudio file or stream
Web Speech APIUse speech recognition or speech synthesis in a browserRecognized text or spoken browser audio
JSON-to-video rendererCombine clips, audio, captions and exact on-screen textFinished video

Use the AI video API guide to compare generation workflows before choosing an endpoint.

Narration and captions need a small pipeline

A text-to-video API with narration and captions included can look like one request from your app. Underneath, it still has to generate or select footage, create the voice track, calculate caption timing and render the final timeline.

This method works from Python, Android or an automation tool because the client only sends HTTP requests. On Android, keep provider keys on your server. Do not place an ElevenLabs API key or video API key inside the app package.

For the final assembly step, build narration and captions into a JSON-to-video timeline.

If you already have spoken audio, generate timed captions with the AutoCaptions workflow.

API keys, free tiers and GitHub examples

An ElevenLabs API key belongs in a server-side environment variable or secret store. Never paste it into browser JavaScript, an Android binary or a public GitHub repository. An “ElevenLabs API key GitHub” search may find sample variable names, but a real exposed key should be revoked instead of reused.

Speech to video API free plans, AI video generator API free plans and voice API free plans usually limit usage through credits, characters, executions, render time, output settings or queued access. Terms and rates change. Check the provider dashboard before designing your workflow around a free allowance.

GitHub projects can give you request code or a self-hosted pipeline. They do not make paid model inference free. A text to video AI API GitHub repository may still require separate model access, compute, storage and API keys.

Prompts that produce usable video clips

Prompt AI text-to-video with one shot at a time. Name the subject, action, setting, camera movement, framing and light. Avoid a long story with several locations or scene changes in one request.

A red bicycle leaning against a brick wall after rain, close shot, slow push-in, soft morning light.

Generate exact titles, prices and captions in the render stage rather than asking the video model to draw them. This gives you editable text and cleaner timing. For a current list of available generators, compare the text-to-video and image-to-video models.

Free online tools versus an API workflow

A free AI text to video generator for YouTube Shorts is useful for testing an idea by hand. An API is the better fit when scripts come from a database, every result needs the same format or you need automatic retries and status checks.

Claims such as “100% free text to video AI,” “text to video AI free unlimited,” “without login” or “without watermark” need checking on the provider’s current export screen. Video generation uses compute, so an unlimited offer may still restrict queues, models, resolution, duration, downloads or commercial use.

Gemini can create video from text only where the relevant video model and access route are available to your account. Product names, regions, limits and API settings can shift between releases, so inspect the current model documentation before writing the integration.

Questions people ask

Is there an API that can convert text-to-video?

Yes. Generative APIs create footage from a prompt, while rendering APIs assemble supplied text, images, audio and clips. Use generation for visual scenes and a renderer when narration, captions or exact branding must stay predictable.

Is there an AI that converts text-to-video?

Yes. Several AI video models accept a written prompt and return a generated clip. Model availability, supported durations and output settings change, so fetch the live model list instead of hard-coding assumptions.

How do you use a speech to video API in Python?

Send the script or audio with an HTTP client, store the returned job ID and poll the status endpoint or wait for a webhook. Keep the speech to video API key in an environment variable and set timeouts so a stalled render does not leave the script running forever.

Is the Web Speech API free?

The Web Speech API is a browser interface, not a complete video service. Browser support and the speech engine behind it can vary, so test the Web Speech API demo in every browser you plan to support.

What is the Chrome speech-to-text API?

In browser code, this usually means speech recognition exposed through the Web Speech API in Chrome. A text to speech browser API handles the opposite direction by speaking text aloud. Support, permissions and available voices can change with browser releases.

Is a TTS API free?

Some providers offer a free allowance, but there is no universal free TTS API. ElevenLabs TTS API usage and other voice services may be measured per character, request, credit or generated audio unit, and rates can change.

Can I get an ElevenLabs API key free?

Create the key only through your own ElevenLabs account if your current plan permits API access. Do not use keys posted on GitHub or shared by strangers; they may be stolen, revoked or tied to someone else’s billing.

Can one API return video with narration and captions?

Yes, your application can expose one endpoint for the whole job. Behind it, footage generation, speech synthesis, caption timing and final rendering remain separate steps. That separation makes failed audio or captions easier to retry without generating the footage again.

Can I use a text-to-video API on Android?

Yes, but the Android app should call your backend rather than hold paid provider keys itself. Your backend submits the job, tracks its status and returns a safe result URL to the app.

Is an image-to-video AI API free?

Some services provide trial credits or limited access. Usage may be charged per execution, render duration, operation or credit, and those rates change. A reference image improves control but does not guarantee that logos, faces or product details remain exact.

Is there a free text-to-video AI without login or watermark?

Offers change too often to promise one. Check the current download rules, commercial-use terms, queue limits and output settings before uploading private material. A tool that removes the login or watermark may restrict something else.

Can Gemini create video from text?

It can where Google has enabled the relevant video model and access method for your account. Check the current Gemini or model documentation for availability, accepted inputs and API access because these settings move between releases.

Is a text-to-speech (TTS) API free?

TTS free tiers exist and are capped by characters per month, with a limited voice list. If the same voice has to appear in every video for a year, budget for a paid one — free voice line-ups change without notice.

Generate your first video from text

One key for every leading text-to-video model — Veo, Kling, Seedance, Wan and more. Documented, webhook-ready, built for your pipeline.