Varosity

HeyGen Video Agent API

HeyGen's flagship agent: give it a prompt and it produces a complete video end-to-end — writing the script, choosing the avatar, and composing scenes. Attach reference files (images, docs) to ground the output.

$0.12/s on Varosity credits ($0.12/s with your own key). Clips up to 600s with native audio.

no HeyGen account needed · provider's list price, no markup · failed renders never billed

Best for

  • prompt → finished video
  • agent writes script, picks avatar & scenes
  • accepts reference files

Trade-offs

  • least granular control
  • longer render

How to get the best result

One prompt to a finished avatar video: HeyGen's agent writes the script and picks avatar and scenes. Pick instead: heygen-avatar-4 when you need exact wording, avatar and timing.

Prompting

  • State audience, goal, length, tone and key points; the agent fills in script and visuals.
  • Attach brand or product images via referenceImageUrl so the agent can use them as reference files.

Settings on Varosity

  • aspectRatio 9:16 sets portrait orientation, otherwise landscape; referenceImageUrl is passed as a reference file.
  • providerOptions.avatarId, voiceId, styleId are optional.

Avoid

  • Using it when the script must be word-for-word.
  • Expecting a fast render.

Example prompt

45-second upbeat explainer for small bakery owners: why online pre-orders cut waste. Friendly presenter, three points, end with a call to try it.

From docs.heygen.com, checked against what Varosity sends.

Call it from your code

One Varosity key works for every model. Video renders are async — the response has a jobId; poll GET /api/v1/jobs/{jobId} until status is "succeeded", then read outputUrl.

curl -X POST https://varosity.ai/api/v1/video/generate \
  -H "Authorization: Bearer $VAROSITY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "cinematic aerial of a coastal road at golden hour, slow push-in",
    "modelId": "heygen-video-agent",
    "aspectRatio": "16:9",
    "durationSec": 5
  }'

Or use HeyGen Video Agent over MCP

Connect ChatGPT, Claude, Cursor or any MCP client to https://varosity.ai/api/mcp (sign in, or use your key), then say:

"Use Varosity with heygen-video-agent to make a clip of …"

A first call is checked against $7.20, more than the $5.00 starting daily limit. On the approval screen you can choose $25 or $100 a day, or connect with an API key that has a higher limit.

MCP setup for your agent

Alternatives to HeyGen Video Agent