PopNowAPI-Doku
Hauptinhalt

HeyGen Video 1.0 API-Referenz

5–15 Sekunden lange Clips aus Text mit Ton.

Mit einem einzigen PopNow-API-Schlüssel rufst du HeyGen Video 1.0 aus deinem eigenen Code auf. Hier findest du die Modell-IDs, jedes Eingabefeld, die Kosten pro Anfrage in USD und eine Anfrage, die du direkt ins Terminal kopieren kannst.

Die Parameterbeschreibungen stammen aus dem Eingabeschema des Modells und sind nur auf Englisch verfügbar.

Auf einen Blick

Hersteller
HeyGen
Ergebnis
Video
Ab
$0.028 USD pro Sekunde Ergebnis

Die Preise werden in USD angezeigt und von deinem PopNow-Guthaben abgebucht. Bei Annahme wird der Höchstbetrag reserviert, nach Abschluss der tatsächliche Verbrauch abgerechnet und der Rest freigegeben. Fehlgeschlagene Tasks kosten nichts. Ein genaues Angebot erhältst du vorab über POST /api/v1/jobs/quote.

Video erstellen

heygen/video-1/text-to-video

Preis

OptionUSD
480p$0.028 pro Sekunde Ergebnis
768p$0.051 pro Sekunde Ergebnis

Parameter

FeldTypStandardwertErlaubtBedeutung
promptPflichtstring—bis zu 32.000 ZeichenDescribe the subject, setting, action, camera and the sound you want, up to 32,000 characters. Put spoken lines in double quotes.
aspect_ratioOptionalstring16:916:9, 9:16, 1:1, 4:3, 3:4, 21:9Frame shape: 16:9 (default), 9:16, 1:1, 4:3, 3:4 or 21:9.
resolutionOptionalstring768p480p, 768pOutput size class: 480p or 768p (default). 480p costs less per second.
duration_secondsOptionalinteger55 bis 15Clip length in whole seconds, 5 to 15. Billed per requested second.
prompt_optimization_modeOptionalstringdisableddisabled, turbo, qualityOptional prompt rewrite before generation: disabled keeps your text as written, turbo is the quick rewrite, quality the more thorough one. Free.
seedOptionalinteger—0 bis 2147483647Optional random seed for one-change-at-a-time comparisons. Omit it for a random result.

Beispielanfrage

Diese Anfrage läuft so, wie sie ist; weggelassene Felder behalten ihren Standardwert. Leg deinen Schlüssel vorher in POPNOW_API_KEY ab.

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "heygen/video-1/text-to-video",
  "input": {
    "prompt": "A paper boat drifts down a rain-soaked street at dusk, neon signs reflecting in the water, slow tracking shot at ground level",
    "duration_seconds": 5,
    "resolution": "768p"
  }
}'

Die Antwort enthält sofort eine taskId. Das Ergebnis holst du mit GET /api/v1/jobs/recordInfo ab – oder du gibst callBackUrl mit und wirst benachrichtigt.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Bild zu Video

heygen/video-1/image-to-video

Preis

OptionUSD
480p$0.028 pro Sekunde Ergebnis
768p$0.051 pro Sekunde Ergebnis
1080p$0.135 pro Sekunde Ergebnis
2k$0.135 pro Sekunde Ergebnis

Parameter

FeldTypStandardwertErlaubtBedeutung
promptPflichtstring—bis zu 32.000 ZeichenDescribe what happens after the opening frame: motion, camera, spoken lines in double quotes and the sound, up to 32,000 characters.
image_urlPflichtstring (uri)——Opening frame. The clip starts exactly on this picture and keeps its proportions at every resolution.
resolutionOptionalstring768p480p, 768p, 1080p, 2kOutput size class: 480p, 768p (default), 1080p or 2k. 1080p and 2k share a higher per-second rate.
duration_secondsOptionalinteger55 bis 15Clip length in whole seconds, 5 to 15. Billed per requested second.
prompt_optimization_modeOptionalstringdisableddisabled, turbo, qualityOptional prompt rewrite before generation: disabled keeps your text as written, turbo is the quick rewrite, quality the more thorough one. Free.
seedOptionalinteger—0 bis 2147483647Optional random seed for one-change-at-a-time comparisons. Omit it for a random result.

Beispielanfrage

Diese Anfrage läuft so, wie sie ist; weggelassene Felder behalten ihren Standardwert. Leg deinen Schlüssel vorher in POPNOW_API_KEY ab.

Das Beispiel nutzt in image_url Beispieldateien von PopNow. Ersetze sie durch eigene öffentliche HTTPS-Links, Uploads oder gespeicherte Assets.

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "heygen/video-1/image-to-video",
  "input": {
    "prompt": "He lands softly on the rooftop, laughs and turns toward the camera while the balloons sway in the evening breeze; slow push-in",
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "duration_seconds": 5,
    "resolution": "768p"
  }
}'

Die Antwort enthält sofort eine taskId. Das Ergebnis holst du mit GET /api/v1/jobs/recordInfo ab – oder du gibst callBackUrl mit und wirst benachrichtigt.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Referenz zu Video

heygen/video-1/reference-to-video

Preis

OptionUSD
480p$0.096 pro Sekunde Ergebnis
768p$0.135 pro Sekunde Ergebnis

Parameter

FeldTypStandardwertErlaubtBedeutung
promptPflichtstring—bis zu 32.000 ZeichenDescribe the new scene and point at each reference with its label: <Picture 1>, <Video 1>, <Audio 1>. Images, videos and audio are numbered separately, in upload order.
reference_image_urlsOptionalarray<string (uri)>—bis zu 9 EinträgeUp to nine pictures of people, products or places, named <Picture 1>, <Picture 2> and so on. The first two are included; each further image adds a charge.
reference_video_urlsOptionalarray<string (uri)>—bis zu 3 EinträgeUp to three clips for motion or a setting, named <Video 1> and so on, 15 seconds in total. Every uploaded second is billed like an output second.
reference_audio_urlsOptionalarray<string (uri)>—bis zu 3 EinträgeUp to three voice or sound clips, named <Audio 1> and so on. Needs at least one picture or video beside it. Free.
aspect_ratioOptionalstring16:916:9, 9:16Frame shape: 16:9 (default) or 9:16.
resolutionOptionalstring768p480p, 768pOutput size class: 480p or 768p (default). 480p costs less per second.
duration_secondsOptionalinteger55 bis 15Clip length in whole seconds, 5 to 15. Billed per requested second.
prompt_optimization_modeOptionalstringdisableddisabled, turbo, qualityOptional prompt rewrite before generation: disabled keeps your text as written, turbo is the quick rewrite, quality the more thorough one. Free.
seedOptionalinteger—0 bis 2147483647Optional random seed for one-change-at-a-time comparisons. Omit it for a random result.

Beispielanfrage

Diese Anfrage läuft so, wie sie ist; weggelassene Felder behalten ihren Standardwert. Leg deinen Schlüssel vorher in POPNOW_API_KEY ab.

Das Beispiel nutzt in reference_image_urls Beispieldateien von PopNow. Ersetze sie durch eigene öffentliche HTTPS-Links, Uploads oder gespeicherte Assets.

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "heygen/video-1/reference-to-video",
  "input": {
    "prompt": "The man from the reference image jogs across a sunlit rooftop at golden hour and smiles at the camera; smooth tracking shot",
    "reference_image_urls": [
      "https://media.popnow.ai/influencer/examples/ava.webp"
    ],
    "duration_seconds": 5,
    "resolution": "768p"
  }
}'

Die Antwort enthält sofort eine taskId. Das Ergebnis holst du mit GET /api/v1/jobs/recordInfo ab – oder du gibst callBackUrl mit und wirst benachrichtigt.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Weiter geht’s

Auf dieser Seite