Riferimento API di MiniMax H3 Character Swap
Sostituisce una persona nella clip con un personaggio, mantenendo la recitazione
Con una sola chiave API di PopNow chiami MiniMax H3 Character Swap 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
- MiniMax
- Risultato
- Video
- Da
- $0.06 USD per secondo generato
- Tempo tipico
- circa 116 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.
Scambio di volto nel video
minimax/h3-character-swap/video-edit
Prezzo
| Opzione | USD |
|---|---|
480p | $0.06 per secondo generato |
540p | $0.09 per secondo generato |
768p | $0.12 per secondo generato |
1080p | $0.24 per secondo generato |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
video_urlObbligatorio | string (uri) | — | — | Source clip whose performance is kept. Up to 15 seconds are used; one continuous shot works best. |
image_urlObbligatorio | string (uri) | — | — | One image of the new character: a photo, a 3D render or a drawing. Full body works best. |
promptFacoltativo | string | — | fino a 7000 caratteri | Full character-swap instruction passed through verbatim to the model (use <Video 1> for the source clip and <Picture 1> for the character image). Leave empty to use the default main-person replacement template. |
aspect_ratioFacoltativo | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21 | Output aspect ratio; match your source clip. |
resolutionFacoltativo | string | 480p | 480p, 540p, 768p, 1080p | Output resolution. |
duration_secondsFacoltativo | integer | 5 | da 3 a 15 | Output length in whole seconds, from 3 to 15; match your source clip. |
seedFacoltativo | integer | — | da 0 a 2147483647 | Random seed for controlled comparisons, not a frame-identical guarantee. |
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 image_url, video_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": "minimax/h3-character-swap/video-edit",
"input": {
"prompt": "Replace the main person in <Video 1> with the character in <Picture 1>. Keep the reference character'\''s face, hair and clothing. Follow the source performance'\''s pose, gaze, expression and movement. Preserve the scene and the other people.",
"video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"duration_seconds": 5,
"resolution": "480p"
}
}'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"
