Riferimento API di HeyGen Avatar 6
Un ritratto pronuncia la tua registrazione in 1080p o 2K con gesti che seguono il copione, fino a 10 minuti
Con una sola chiave API di PopNow chiami HeyGen Avatar 6 dal tuo codice. Qui trovi gli ID del modello da inviare, ogni campo di input accettato, quanto costa ogni richiesta in USD e una richiesta da incollare nel terminale così com’è.
Le descrizioni dei parametri provengono dallo schema di input del modello e sono disponibili solo in inglese.
In sintesi
- Sviluppato da
- HeyGen
- Risultato
- Video
- Da
- $0.12 USD per secondo generato
- Tempo tipico
- circa 63 s
- ID del modello
I prezzi sono indicati in USD e gli importi vengono addebitati sul tuo saldo PopNow. Alla ricezione viene riservato il massimo importo; al termine viene addebitato il consumo effettivo e il resto viene sbloccato. Le attività fallite non vengono addebitate. Per un preventivo esatto prima di eseguire, usa POST /api/v1/jobs/quote.
Avatar IA
heygen/avatar-6/talking-avatar
Prezzo
| Opzione | USD |
|---|---|
1080p | $0.12 per secondo generato |
2k | $0.174 per secondo generato |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
image_urlObbligatorio | string (uri) | — | — | Portrait photo or illustration of one subject (up to 32 MB). Output preserves the reference aspect ratio. |
audio_urlObbligatorio | string (uri) | — | — | Speech audio driving lip sync and context-aware gestures. Output duration matches audio length. |
promptFacoltativo | string | — | fino a 1200 caratteri | Optional plain-language direction for hand gestures, facial expression, posture, and framing. |
resolutionFacoltativo | string | 1080p | 1080p, 2k | Output resolution tier: 1080p (1080px short edge) or 2k (1620px short edge). |
expressivenessFacoltativo | string | default | default, less | Gesture amplitude: default for natural script-aware motion, or less for calmer delivery. |
reference_video_urlsFacoltativo | array<string (uri)> | — | fino a 1 elementi | Optional single reference video (at least 2 seconds, animated or illustrated characters on standard workspaces). |
widthFacoltativo | integer | — | da 256 a 3840 | Optional exact output width in even pixels (must be paired with height). |
heightFacoltativo | integer | — | da 256 a 3840 | Optional exact output height in even pixels (must be paired with width). |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.
L’esempio usa file di prova di PopNow in audio_url, image_url. Sostituiscili con i tuoi link HTTPS pubblici, file caricati o asset salvati.
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/avatar-6/talking-avatar",
"input": {
"prompt": "A bright, cheerful scene with soft natural light",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"audio_url": "https://media.popnow.ai/shortfilm/voices/Aoede-46e4c427.mp3",
"resolution": "1080p"
}
}'La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
