PopNowDokumentacja API
Treść główna

MiniMax H3 LoRA: dokumentacja API

Wideo MiniMax H3 z dźwiękiem i maksymalnie trzema twoimi LoRA

Jednym kluczem API PopNow wywołasz MiniMax H3 LoRA z własnego kodu. Znajdziesz tu identyfikatory modelu, które trzeba wysłać, każde pole wejściowe, koszt zapytania w kredytach i gotowe zapytanie do wklejenia w terminalu.

Opisy parametrów pochodzą ze schematu wejściowego modelu i są dostępne tylko po angielsku.

W skrócie

Twórca
MiniMax
Wynik
Wideo
Od
7.5 kr. za sekundę wyniku ($0.075)
Typowy czas
ok. 40 s

1 kredyt = 0,01 USD. Po przyjęciu zadanie blokuje najwyższą możliwą kwotę, a na koniec rozlicza faktyczne zużycie, zaokrąglone w górę do pełnych kredytów; resztę zwalnia. Za zadania zakończone błędem nie płacisz. Dokładną kwotę przed uruchomieniem poda POST /api/v1/jobs/quote.

Utwórz wideo

minimax/h3-lora/text-to-video

Cena

OpcjaKredyty (za sekundę wyniku)Dolary USA
480p7.5$0.075
540p11.25$0.1125
768p15$0.15
1080p30$0.3

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
promptWymaganestring—do 7000 znakówDescribe the scene, the action, the camera and the sound. Put the soundtrack on its own Audio: line.
aspect_ratioOpcjonalnestring16:916:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21Output aspect ratio.
resolutionOpcjonalnestring480p480p, 540p, 768p, 1080pOutput resolution.
duration_secondsOpcjonalneinteger5od 3 do 15Requested output length in whole seconds, from 3 to 15.
lorasOpcjonalnearray<object>[]do 3 elementówUp to three LoRA weight files trained for MiniMax H3, each with its own strength.
seedOpcjonalneinteger—od 0 do 2147483647Random seed for controlled comparisons.

Przykładowe zapytanie

To zapytanie działa w obecnej postaci; pominięte pola mają wartości domyślne. Najpierw zapisz klucz w zmiennej POPNOW_API_KEY.

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": "minimax/h3-lora/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": "480p"
  }
}'

Odpowiedź od razu zawiera taskId. Wynik pobierzesz przez GET /api/v1/jobs/recordInfo albo dodaj callBackUrl, by dostać powiadomienie.

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"

Obraz w wideo

minimax/h3-lora/image-to-video

Cena

OpcjaKredyty (za sekundę wyniku)Dolary USA
480p7.5$0.075
540p11.25$0.1125
768p15$0.15
1080p30$0.3

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
promptWymaganestring—do 7000 znakówDescribe what happens after the opening frame: the action, the camera and the sound.
image_urlWymaganestring (uri)——Opening frame. The clip starts from this image and keeps its aspect ratio.
last_image_urlOpcjonalnestring (uri)——Optional closing frame the clip should resolve to.
resolutionOpcjonalnestring480p480p, 540p, 768p, 1080pOutput resolution.
duration_secondsOpcjonalneinteger5od 3 do 15Requested output length in whole seconds, from 3 to 15.
lorasOpcjonalnearray<object>[]do 3 elementówUp to three LoRA weight files trained for MiniMax H3, each with its own strength.
seedOpcjonalneinteger—od 0 do 2147483647Random seed for controlled comparisons.

Przykładowe zapytanie

To zapytanie działa w obecnej postaci; pominięte pola mają wartości domyślne. Najpierw zapisz klucz w zmiennej POPNOW_API_KEY.

Przykład używa w image_url przykładowych plików PopNow. Zamień je na własne publiczne linki HTTPS, przesłane pliki albo zapisane zasoby.

POST /api/v1/jobs/createTask?wait=60
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "minimax/h3-lora/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": "480p"
  }
}'

Odpowiedź od razu zawiera taskId. Wynik pobierzesz przez GET /api/v1/jobs/recordInfo albo dodaj callBackUrl, by dostać powiadomienie.

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"

Wideo z referencji

minimax/h3-lora/reference-to-video

Cena

OpcjaKredyty (za sekundę wyniku)Dolary USA
480p9$0.09
540p13.5$0.135
768p20.25$0.2025
1080p40.5$0.405

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
promptWymaganestring—do 7000 znakówRefer to the references by number and describe the shot they should produce, including the sound.
reference_image_urlsOpcjonalnearray<string (uri)>—do 9 elementówReference images, up to nine. Each one adds a per-reference charge.
reference_video_urlsOpcjonalnearray<string (uri)>—do 3 elementówReference videos, up to three and 15 seconds in total. Their seconds are billed like output seconds.
reference_audio_urlsOpcjonalnearray<string (uri)>—do 3 elementówReference audio clips, up to three. Each one adds a per-reference charge.
aspect_ratioOpcjonalnestring16:916:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21Output aspect ratio.
resolutionOpcjonalnestring480p480p, 540p, 768p, 1080pOutput resolution.
duration_secondsOpcjonalneinteger5od 3 do 15Requested output length in whole seconds, from 3 to 15.
lorasOpcjonalnearray<object>[]do 3 elementówUp to three LoRA weight files trained for MiniMax H3, each with its own strength.
seedOpcjonalneinteger—od 0 do 2147483647Random seed for controlled comparisons.

Przykładowe zapytanie

To zapytanie działa w obecnej postaci; pominięte pola mają wartości domyślne. Najpierw zapisz klucz w zmiennej POPNOW_API_KEY.

Przykład używa w reference_image_urls przykładowych plików PopNow. Zamień je na własne publiczne linki HTTPS, przesłane pliki albo zapisane zasoby.

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": "minimax/h3-lora/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": "480p"
  }
}'

Odpowiedź od razu zawiera taskId. Wynik pobierzesz przez GET /api/v1/jobs/recordInfo albo dodaj callBackUrl, by dostać powiadomienie.

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"

Wydłuż wideo

minimax/h3-lora/video-extend

Cena

OpcjaKredyty (za sekundę wyniku)Dolary USA
480p7.5$0.075
540p11.25$0.1125
768p15$0.15
1080p30$0.3

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
promptWymaganestring—do 7000 znakówDescribe what happens next: the action that follows, the camera move and the sound.
video_urlWymaganestring (uri)——The clip to continue: MP4, MOV or WebM, up to 60 seconds. Its last frame opens the new segment, and the result is your clip with the new segment joined on.
last_image_urlOpcjonalnestring (uri)——Optional target end frame: the new segment comes to rest on this picture.
resolutionOpcjonalnestring480p480p, 540p, 768p, 1080pResolution of the new segment. Match your source clip; it sets how sharp the new part is generated.
duration_secondsOpcjonalneinteger5od 3 do 15Length of the new segment in whole seconds, from 3 to 15. The source clip is added on top and is not billed.
lorasOpcjonalnearray<object>[]do 3 elementówUp to three LoRA weight files trained for MiniMax H3, each with its own strength, applied to the new segment. Reuse the ones used for the source clip to keep the style consistent.
seedOpcjonalneinteger—od 0 do 2147483647Random seed for controlled comparisons.

Przykładowe zapytanie

To zapytanie działa w obecnej postaci; pominięte pola mają wartości domyślne. Najpierw zapisz klucz w zmiennej POPNOW_API_KEY.

Przykład używa w video_url przykładowych plików PopNow. Zamień je na własne publiczne linki HTTPS, przesłane pliki albo zapisane zasoby.

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": "minimax/h3-lora/video-extend",
  "input": {
    "prompt": "The flowers keep opening while the camera slowly pulls back to reveal a sunlit meadow",
    "video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
    "duration_seconds": 5,
    "resolution": "480p"
  }
}'

Odpowiedź od razu zawiera taskId. Wynik pobierzesz przez GET /api/v1/jobs/recordInfo albo dodaj callBackUrl, by dostać powiadomienie.

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"

Co dalej

Na tej stronie