MiniMax H3 Character Swap API-Referenz
Besetzt eine Person im Clip mit einem Charakterbild neu und behält die Performance bei
Mit einem einzigen PopNow-API-Schlüssel rufst du MiniMax H3 Character Swap 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
- MiniMax
- Ergebnis
- Video
- Ab
- $0.06 USD pro Sekunde Ergebnis
- Typische Dauer
- etwa 116 s
- Modell-IDs
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.
Gesichtstausch im Video
minimax/h3-character-swap/video-edit
Preis
| Option | USD |
|---|---|
480p | $0.06 pro Sekunde Ergebnis |
540p | $0.09 pro Sekunde Ergebnis |
768p | $0.12 pro Sekunde Ergebnis |
1080p | $0.24 pro Sekunde Ergebnis |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
video_urlPflicht | string (uri) | — | — | Source clip whose performance is kept. Up to 15 seconds are used; one continuous shot works best. |
image_urlPflicht | string (uri) | — | — | One image of the new character: a photo, a 3D render or a drawing. Full body works best. |
promptOptional | string | — | bis zu 7.000 Zeichen | 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_ratioOptional | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21 | Output aspect ratio; match your source clip. |
resolutionOptional | string | 480p | 480p, 540p, 768p, 1080p | Output resolution. |
duration_secondsOptional | integer | 5 | 3 bis 15 | Output length in whole seconds, from 3 to 15; match your source clip. |
seedOptional | integer | — | 0 bis 2147483647 | Random seed for controlled comparisons, not a frame-identical guarantee. |
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, video_url Beispieldateien von PopNow. Ersetze sie durch eigene öffentliche HTTPS-Links, Uploads oder gespeicherte Assets.
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"
}
}'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.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
