Files
magpie/docs
yetone b2d005bf38 gateway: a MiniMax API key makes videos with H3 (_tigerqueen_05867)
A MiniMax API-key provider (api.minimax.io, api.minimaxi.com, api.minimax.cn)
now lists MiniMax-H3, -H3-Highspeed, -H3-Lite and -H3-Max as video models.
They are never in chat lists. generate_video and /v1/videos start a task at
<host>/v2/video_generation, poll /v2/query/video_generation/<id> and hand back
the MP4. The prompt, seconds (raised to each model's minimum and capped at
15), resolution (from Extra or size, clamped to the model), ratio, first and
last frame and up to 9 reference images go through. /v1/videos now reads
last_frame; MiniMax and a remote magpie pass it on, other videomakers
ignore it. The MCP schema is unchanged.

Failures say which one it is: a turned-away key (1004/2049/401), no
pay-as-you-go balance (1008/402), refused input or output (1026/1027), a
Token Plan key without H3 (2061/2068/2057, which moves on to the next key),
or the rate limit. AutoVideomaker puts MiniMax last, so generate_video,
which has no model argument, uses MiniMax-H3 only when nothing else makes
videos. All of it is gated on a MiniMax host, so no other vendor changes.

Run on mote at 798c8fd48 (base a0ba8e1f2). The pushed head's only other
change is fb5959553, one test file in internal/usage, which none of these
packages import:
- gofmt -l: nothing listed.
- go vet ./... (darwin), GOOS=linux -tags nogui, GOOS=windows: ok.
- go test -tags nogui -timeout 45m ./internal/gateway ./internal/provider
  ./internal/imagemcp: ok (gateway 557s, provider 95s, imagemcp 6.5s).

The fake server answers with the literal samples from MiniMax's docs (create,
succeeded, failed 1026, 401, 402, 422), plus a task stuck past the timeout.

Broken by hand, each watched go red:
- no Videomakers hook (the old code): TestMiniMaxKeysMakeH3Videos,
  TestMiniMaxH3IsNoChatModel, TestImageMCPMakesMiniMaxVideos.
- minimaxWhy returning "": TestMiniMaxVideoFailuresSayWhy.
- MiniMax not put last: TestMiniMaxComesAfterOtherVideomakers.
- no move past a Token Plan key: TestMiniMaxVideoMovesPastATokenPlanKey.

Not tried:
- the real MiniMax API: no MiniMax key is on this machine. The bodies follow
  the docs' samples only.
- the GUI: nothing changed there (it lists no video models per provider).
- test runs on Windows and Linux; vet only.
- last_frame from the MCP tool, whose schema doesn't take it.
2026-10-29 04:56:46 +08:00
..