Riferimento API di HeyGen Avatar IV
Un ritratto parla seguendo la tua registrazione, fino a 10 minuti.
Con una sola chiave API di PopNow chiami HeyGen Avatar IV 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.051 USD per secondo generato
- 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-iv/talking-avatar
Prezzo
| Opzione | USD |
|---|---|
Predefinito | $0.051 per secondo generato |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
image_urlObbligatorio | string (uri) | — | — | A clear front-facing portrait: JPEG, PNG or WebP. |
audio_urlObbligatorio | string (uri) | — | — | Speech that drives the video, up to 10 minutes. Billed per second of audio. |
promptFacoltativo | string | — | fino a 5000 caratteri | Optional directions for expression and gestures. |
background_image_urlFacoltativo | string (uri) | — | — | Optional background image placed behind the person. |
expressivenessFacoltativo | string | low | low, medium, high | How much the face and head move. |
aspect_ratioFacoltativo | string | — | 16:9, 9:16, 1:1, 5:4, 4:5 | Frame shape. Leave it unset to follow the portrait. |
resolutionFacoltativo | string | 720p | 360p, 480p, 540p, 720p, 1080p | Output height. Every tier costs the same. |
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-iv/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"
}
}'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"
