HeyGen / Video generation
Avatar IV
HeyGen: Avatar IV is an image-to-video model that animates a single photo into an expressive, lip-synced talking-head video.
Enterprise rate
Up to 60% off
By quote
Our price $0.050 / second, 720p
Our price $0.050 / second, 1080p
Native, 720p / second of video
- You pay today$0.050
- Enterprise rateBy quoteUp to 60% off
Native, 1080p / second of video
- You pay today$0.050
- Enterprise rateBy quoteUp to 60% off
01 · Learn
What is Avatar IV?
Avatar IV is a video generation model from HeyGen on the OceanToken API, with image input.
- $0.050Per second
- text + image + audioInputOutput: video
- Up to 60% offEnterprise rate vs officialUp to, by quote
What Avatar IV can do.
- Video generation
- Guided by text promptsinput: text
- Works from reference imagesinput: image
- Works from reference audioinput: audio
Avatar IV specs.
- Resolutions
- 720p, 1080p
- Input
- text, image, audio
- Output
- video
- Released
- August 24, 2026
Model ID and endpoint
- OceanToken model ID
heygen/avatar-iv- OpenAI-compatible base URL
https://api.oceantoken.ai/v1- Endpoint
POST /v1/videos
03 · Buy and build
How much does the Avatar IV API cost?
| Resolution | Official | Tier 1 | Tier 2 | Tier 3 | Enterprise rate |
|---|---|---|---|---|---|
| 720p Native | — | $0.050 | $0.050 | $0.050 | up to −60% |
| 1080p Native | — | $0.050 | $0.050 | $0.050 | up to −60% |
Per second of video, for a 16:9 clip at 24 frames per second. Billed per video token: other aspect ratios and frame rates change the token count.
- Tell usYour model and monthly spend.
- We email your rateUp to 60% off. Price lock available.
- We activate itOn your account, same key.
How tiers work
- Self-serveTier 1From sign-up
- Self-serveTier 2$1,000 total
- Self-serveTier 3$10,000 total
- By quoteEnterprise rateUp to 60% off, by quote
You pay per use from a prepaid balance, with no subscription. Official price: the model maker’s list price. Tier 1 to 3 are standing rates by total top-up.
How to use Avatar IV on OceanToken.
Three steps from no account to a working request. The same key and balance work for every model in the catalog.
Create an account and get an API key
One key works for every model your account can use.
Get API KeyAdd credits
OceanToken is prepaid: add credits, and each request is billed from that balance.
Add creditsCall Avatar IV from your code
Send a request to
See the API request in docsPOST /v1/videoswith the model IDheygen/avatar-iv.
client.pyPythonfrom openai import OpenAI
# Your API Key from the OceanToken console
client = OpenAI(base_url="https://api.oceantoken.ai/v1",
api_key="YOUR_API_KEY")
video = client.videos.create_and_poll(
model="heygen/avatar-iv",
prompt="A cat walks past a bakery sign at dawn")
client.videos.download_content(video.id).write_to_file("video.mp4")client.tsTypeScriptimport OpenAI from "openai";
import { writeFile } from "node:fs/promises";
// Your API Key from the OceanToken console
const client = new OpenAI({ baseURL: "https://api.oceantoken.ai/v1", apiKey: "YOUR_API_KEY" });
let video = await client.videos.create({
model: "heygen/avatar-iv",
prompt: "A cat walks past a bakery sign at dawn",
});
while (video.status === "queued" || video.status === "in_progress") {
await new Promise((r) => setTimeout(r, 5000));
video = await client.videos.retrieve(video.id);
}
const file = await client.videos.downloadContent(video.id);
await writeFile("video.mp4", Buffer.from(await file.arrayBuffer()));request.mjsJavaScript// Your API Key from the OceanToken console
const KEY = "YOUR_API_KEY";
const res = await fetch("https://api.oceantoken.ai/v1/videos", {
method: "POST",
headers: { Authorization: `Bearer ${KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ model: "heygen/avatar-iv", prompt: "A cat walks past a bakery sign at dawn" }),
});
let video = await res.json();
while (video.status === "queued" || video.status === "in_progress") {
await new Promise((r) => setTimeout(r, 5000));
video = await (await fetch(`https://api.oceantoken.ai/v1/videos/${video.id}`, { headers: { Authorization: `Bearer ${KEY}` } })).json();
}
console.log(`https://api.oceantoken.ai/v1/videos/${video.id}/content`, video.status);request.shcurl# Your API Key from the OceanToken console
curl https://api.oceantoken.ai/v1/videos \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "heygen/avatar-iv",
"prompt": "A cat walks past a bakery sign at dawn"}'main.goGopackage main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
// Your API Key from the OceanToken console
body := strings.NewReader(`{"model": "heygen/avatar-iv", "prompt": "A cat walks past a bakery sign at dawn"}`)
req, _ := http.NewRequest("POST", "https://api.oceantoken.ai/v1/videos", body)
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
// Poll GET https://api.oceantoken.ai/v1/videos/{id} until "status" is "completed", then GET .../content
}Main.javaJavaimport java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
// Your API Key from the OceanToken console
String body = "{\"model\": \"heygen/avatar-iv\", \"prompt\": \"A cat walks past a bakery sign at dawn\"}";
HttpRequest req = HttpRequest.newBuilder(URI.create("https://api.oceantoken.ai/v1/videos"))
.header("Authorization", "Bearer YOUR_API_KEY")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> res = HttpClient.newHttpClient().send(req, HttpResponse.BodyHandlers.ofString());
System.out.println(res.body());
// Poll GET https://api.oceantoken.ai/v1/videos/{id} until "status" is "completed", then GET .../content
}
}request.phpPHP<?php
// Your API Key from the OceanToken console
$ch = curl_init("https://api.oceantoken.ai/v1/videos");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer YOUR_API_KEY", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => '{"model": "heygen/avatar-iv", "prompt": "A cat walks past a bakery sign at dawn"}',
]);
echo curl_exec($ch);
// Poll GET https://api.oceantoken.ai/v1/videos/{id} until "status" is "completed", then GET .../contentrequest.rbRubyrequire "net/http"
# Your API Key from the OceanToken console
uri = URI("https://api.oceantoken.ai/v1/videos")
req = Net::HTTP::Post.new(uri, "Authorization" => "Bearer YOUR_API_KEY", "Content-Type" => "application/json")
req.body = '{"model": "heygen/avatar-iv", "prompt": "A cat walks past a bakery sign at dawn"}'
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.body
# Poll GET https://api.oceantoken.ai/v1/videos/{id} until "status" is "completed", then GET .../contentAvatar IV API: frequently asked questions.
What is Avatar IV?
HeyGen: Avatar IV is an image-to-video model that animates a single photo into an expressive, lip-synced talking-head video.
How much does Avatar IV cost?
Avatar IV costs from $0.05 per second of video. This is the OceanToken starting price as of November 28, 2026, charged per use to your prepaid balance. The console always shows the current price.
What inputs and outputs does Avatar IV support?
Avatar IV takes text, image and audio as input and produces video. It makes video at 720p and 1080p.
Can I use photos of real people, and what gets refused?
OceanToken does not block photos of real people as references, but Avatar IV follows its maker’s own content rules, which can refuse some images or prompts. Only use photos you have the right to use, with the person’s consent. Every prompt also passes a safety check: clearly sexual, violent, hateful or self-harm content can be refused, and sexual content involving minors is always refused. A refused or failed video job is not charged: the amount it held goes back to your balance.
How do I call Avatar IV through the API?
Start a job with POST https://api.oceantoken.ai/v1/videos and the model ID heygen/avatar-iv, then poll the job and download the finished video. The API is OpenAI-compatible, so an OpenAI SDK needs only the base URL https://api.oceantoken.ai/v1 and your key. The same OceanToken API key works for every model your account can use. Full reference: docs.oceantoken.ai.
How do I top up?
OceanToken is prepaid. Open Credits in the console, choose an amount and pay by card on Stripe's hosted checkout page (Link works too). Your balance updates a few seconds after payment. Have a trial code? Redeem it on the same page.
Do credits expire, and can I get a refund?
Purchased credits are valid for 12 months from the date of purchase. Credits from trial codes, promotions or gifts may have a shorter validity. All purchases are final and non-refundable, except where the law requires a refund. Section 6 of the Terms of Service has the details.
Am I charged for failed requests?
No. If a request fails, you are not charged: that covers a request refused for an insufficient balance or by a safety check, one whose provider fails before returning any output, and a video job that fails or is refused by a safety check, whose held amount goes back to your balance. The one exception: if a request breaks off after the model has started producing output, for example a stream cut off part-way, you pay for the tokens that were processed and generated for it.
Keep exploring
Sources
- OceanToken model catalog: every price, context window, input, output and parameter on this page (November 28, 2026).
- How tiers work: Tier 1 to 3 and the Enterprise rate.