Video generation API
HeyGen Video 1.0 API
HeyGen Video 1.0 via Runware. Text-to-video or image-to-video with sound built in: spoken dialogue, ambience and effects. 5 to 30 seconds, 480p to 2K.
Pay as you go, no subscription.
- Image to video
- Sound included
Quickstart
Three steps from zero to a finished file.
- 1
- 2
Send one request
POST your input to the endpoint. You get a job ID back right away.
- 3
Collect the result
Poll the status URL or pass a webhook. The finished file arrives as a link.
Or let your AI coding tool do it
Copy this prompt into Claude Code, Cursor or Codex. It reads our docs and writes the code.
Add the Pixel Dojo HeyGen Video 1.0 API to this project. Read https://pixeldojo.ai/llm/heygen-video.txt for the endpoint, inputs and prices, and https://pixeldojo.ai/llm.txt for auth, job status and webhooks. Read the key from the PIXELDOJO_API_KEY environment variable. Write one function that submits a job, waits for it to finish and returns the file URL, with errors handled.
https://pixeldojo.ai/api/v1/models/heygen-video/runcurl -X POST "https://pixeldojo.ai/api/v1/models/heygen-video/run" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A handsome man in a denim jacket holds up a coffee cup in a sunlit cafe and says: \"Best espresso in town.\" Soft cafe ambience.",
"duration": 5,
"resolution": "768p",
"aspect_ratio": "16:9"
}'Want the file in one call? Add ?wait=60 to the URL. The request waits for the job and returns the result.
Pricing
You pay per second of video. Every setting is in the table.
| Setting | Per second | 5 second clip |
|---|---|---|
| 480p | $0.047 | $0.23 |
| 768p | $0.078 | $0.39 |
| 1080p | $0.188 | $0.94 |
| 2K | $0.188 | $0.94 |
Pay as you go
Top up from $5. No subscription and no minimum.
Failed runs cost nothing
If a run fails, you get the money back on its own.
Know the price first
Add
?dry_run=trueto any request to get its price. Nothing is charged.
Try it
Run a real request and see the exact input and output your code will handle. It is charged like any API call.
Made with this API
Real outputs. Open one to see the request that made it.
A confident woman in a navy blazer smiles at the camera in a bright modern office and says: "Welcome to the future of video."
Reference
Every input the endpoint takes, and what comes back.
Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
promptrequiredstringText instruction describing what to generate or edit. | string | Text instruction describing what to generate or edit. | - |
imageurlReference image URL. | url | Reference image URL. | - |
resolutionenum · default 768pOutput resolution.480p768p1080p2k 2K | enum | Output resolution.480p768p1080p2k 2K | 768p |
aspect_ratioenum · default 16:9Output aspect ratio.21:916:94:31:13:4+1 more | enum | Output aspect ratio.21:916:94:31:13:4+1 more | 16:9 |
durationinteger · default 5Output duration in seconds.min: 5 | max: 30 | integer | Output duration in seconds.min: 5 | max: 30 | 5 |
seedintegerRandom seed for reproducibility. Same seed + inputs yields similar results.min: 0 | max: 4294967295 | integer | Random seed for reproducibility. Same seed + inputs yields similar results.min: 0 | max: 4294967295 | - |
What comes back
When you submit (202)
{
"jobId": "job_abc123...",
"status": "pending",
"statusUrl": "https://pixeldojo.ai/api/v1/jobs/job_abc123...",
"priceUsd": 0.3906,
"creditCost": 6.25,
"creditsRemaining": 95,
"expiresAt": "2026-12-05T01:55:08Z"
}When it finishes
{
"jobId": "job_abc123...",
"status": "completed",
"output": {
"video": "https://temp.pixeldojo.ai/pixeldojotemp/1705930123-456789.mp4"
},
"creditCost": 6.25,
"expiresAt": "2026-12-05T01:55:08Z"
}priceUsd is what the run cost, in dollars. The credit fields show the same charge and your balance in account credits.
Use saved characters (@Name)
This model takes no reference images, so @Name of a saved character is refused (400) before anything is charged. A saved location, prop or style with a description is inserted as text. For saved characters, use a model that takes reference images, such as Nano Banana Pro or Seedream 5 for images, or Seedance 2.5 or WAN 3.0 for video.
Aspect ratios
Built for AI agents
Hand these to a coding assistant and it can write the integration for you.
Questions
How much does the HeyGen Video 1.0 API cost?
From $0.047 a second. The table above has the price for every setting, and each job's response shows what it cost.
Do I need a subscription?
No. Top up from $5 and pay only for what you run.
Can I see the price before I run something?
Yes. Add ?dry_run=true to the request. You get its price back. Nothing is charged and no job starts.
Do I pay for a run that fails?
No. If a run fails, you get the money back on its own.
How long do output links last?
One hour. Download the file in that time, or call the save endpoint to keep it in your library.
Can an AI assistant use this model?
Yes. Connect Claude, ChatGPT or any agent to our MCP server at https://pixeldojo.ai/mcp. Or give it the docs file for this model.
More video APIs
Same key, same request shape. Switch models by changing one word in the URL.
Heygen Avatar API
From $0.125 a second
MiniMax H3 Turbo API
From $0.060 a second
WAN 3.0 API
From $0.069 a second
Seedance 2.5 API
From $0.375 a second
WAN 2.2 Image-to-Video API
From $0.044 a second
Seedance 2 Reference API
From $0.25 a second
P-Video 2 Pro API
From $0.188 a second
P-Video 2 Pro Reference API
From $0.078 a second
Start building
Get an API key
One key works for every model.
See usage
Requests, spend and logs.
Top up
Add money to your balance, from $5.