DashboardExplore modelsQuick startDocumentationPricing
Playground
API keysAnalyticsBilling
Contact salesStatus
Studio1MCP2API3
DashboardExplore modelsQuick startDocumentationPricing
Playground
API keysAnalyticsBilling
Contact salesStatus
Explore/HeyGen/HeyGen Avatar 6
Lipsyncfrom$0.1000 / s

HeyGen Avatar 6

Makes a face say an audio track · 1080p to 2K

image-to-lipsync
View docs
curl -X POST https://api.sume.com/v1/video-router/generate \
  -H "Authorization: Bearer $SUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"heygen-avatar-6","image_url":"https://example.com/image.png","audio_url":"https://example.com/audio.mp3","resolution":"1080p","duration":2}'
PlaygroundAPIRequestsAnalytics

Input

image_url The face that speaks (HTTPS image).
Drop an image here, or click to choose
audio_url The speech (HTTPS audio).
Drop an audio file here, or click to choose
prompt The scene around the speaker.
duration The audio's length in whole seconds.
Additional settings

Customize your input with more control.

Pricing…

Add image_url to run.

Result Idle

Example made with HeyGen Avatar 6 on Sume. Runs are billed to your Sume API balance at the price shown; failed runs are refunded.

Table of contents

About

Makes a face say an audio track · 1080p to 2K

Model id heygen-avatar-6, sent to POST https://api.sume.com/v1/video-router/generate.

1. Calling the API

Install the client

npm install @sume-com/client

Setup your API key

Set SUME_API_KEY as an environment variable in your server runtime. Make the key in Sume API → API keys.

export SUME_API_KEY="YOUR_API_KEY"

Submit a request

This sends the Playground's request, with the input it holds now. Change the input there and this updates. subscribe submits it, waits for the job and returns the result.

import { createSumeClient } from "@sume-com/client";

const sume = createSumeClient({ baseURL: "https://api.sume.com" });

const response = await sume.subscribe("/v1/video-router/generate", {
  input: {
    "model": "heygen-avatar-6",
    "resolution": "1080p",
    "prompt": "A cinematic tracking shot along a sunlit coastal road"
  },
});

console.log(response.status, response.video?.url);

2. Authentication

API key

Send your Sume API key as a bearer token from server code only. Keys made under Sume API → API keys spend the workspace balance, the same one Studio spends, and call the model API only.

Authorization: Bearer $SUME_API_KEY

3. Queue

A submit answers at once with the job. Poll its status until it is completed, failed or canceled. Failed and canceled jobs are refunded.

Fetch request status

const response = await fetch(`https://api.sume.com/v1/jobs/${jobId}/status`, {
  headers: { authorization: `Bearer ${process.env.SUME_API_KEY}` },
});
const { data: job } = await response.json();

Get the result

A completed job returns its media. A queued or running job answers 409 job_not_completed with the current status; a failed one 409 job_failed with the reason, and a canceled one 409 job_canceled.

const response = await fetch(`https://api.sume.com/v1/jobs/${jobId}/result`, {
  headers: { authorization: `Bearer ${process.env.SUME_API_KEY}` },
});
const { data: result } = await response.json();

Cancel a request

A job can be canceled until generation starts.

const response = await fetch(`https://api.sume.com/v1/jobs/${jobId}/cancel`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.SUME_API_KEY}` },
});
const { data: job } = await response.json();

4. Files

Hosted files (URL)

Fields that end in _url or _urls take public HTTPS URLs. Some hosts block or rate-limit fetches from servers.

Uploading files

Upload a local file to Sume's storage, then send the URL it returns.

import { readFile } from "node:fs/promises";
import { createSumeClient } from "@sume-com/client";

const sume = createSumeClient({ baseURL: "https://api.sume.com" });

const url = await sume.uploadImage(await readFile("input.png"), "png");

5. Schema

Input

modelstringrequired
"heygen-avatar-6"
image_urlstringrequired
The face that speaks (HTTPS image).
audio_urlstringrequired
The speech (HTTPS audio).
resolutionstring
Output resolution.Default value: "1080p"Possible enum values: 1080p, 2K
promptstring
The scene around the speaker.
durationintegerrequired
The audio's length in whole seconds.Range: 2–60
{
  "model": "heygen-avatar-6",
  "resolution": "1080p",
  "prompt": "A cinematic tracking shot along a sunlit coastal road"
}

Output

data.result.artifactsArtifact[]required
The generated media, in order.
data.jobJobrequired
The job record: id, status, model, input, created_at, started_at and completed_at.

Artifact

urlstringrequired
Public Sume CDN URL for the file. Do not parse the path.
typestringrequired
image, video, audio, model or file.
content_typestringrequired
The file's MIME type.
idstringrequired
Opaque artifact id, safe to log.
widthinteger
Pixels, when known.
heightinteger
Pixels, when known.
duration_msinteger
Length of a video or audio file, when known.
size_bytesinteger
File size, when known.

6. Price before you submit

The estimate is the charge: the same function prices both. This one prices the Playground's input.

const response = await fetch("https://api.sume.com/v1/open/estimate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "model": "heygen-avatar-6",
    "input": {
      "resolution": "1080p",
      "prompt": "A cinematic tracking shot along a sunlit coastal road"
    }
  }),
});
const { data } = await response.json();
console.log(data.usd);

Full reference: /docs

Request history

Updating while a run is going

No requests

Loading this model's requests…

Analytics

Total requests—No requests
Execution p50—No requests
Execution p75—No requests
Execution p90—No requests
Execution p95—No requests
Execution p99—No requests
Success rate—No requests
Startup p50—No requests
Startup p75—No requests
Startup p90—No requests
Startup p95—No requests
Startup p99—No requests

Request counts

Completed 0Failed 0

Loading this model's requests…

End-to-end latency

Total time from request received to response sent.

No latency data available for this time range.

Recent errors

IDWhenTotal timeStatus
No requests foundThere are no requests that match the criteria

Slower requests

IDWhenTotal timeStatus
No requests foundThere are no requests that match the criteria

Pricing

Dollars per unit at each option, from our rate card; a request rounds up to $0.0001. The estimate above is the exact charge.

OptionPrice
1080p$0.1000 / s
2K$0.146667 / s

More models by HeyGen

Price, resolution and duration show each model's full range.

ModelTypePriceResolutionDuration
HeyGen Video 1video$0.0100 – $0.1050 / s480p – 2K5 – 30 s
HeyGen Avatar 6 Turbolipsync$0.0500 – $0.088889 / s1080p – 2K2 – 60 s