minimax-cn/image-01 went to chat completions (catalog.ImagesAPI doesn't
know image-01), and MiniMax answered "invalid params, unknown model
'image-01' (2013)". MiniMax draws only on POST <host>/v1/image_generation
(platform.minimax.io and platform.minimax.cn API reference, t2i and i2i,
checked against the docs, not the report).
- draw_minimax.go: a MiniMax API key (filmsMiniMax: the minimax and
minimax-cn presets, or any provider at api.minimax.io, api.minimaxi.com
or api.minimax.cn) lists image-01 and image-01-live as drawers and
draws them at its own host: size -> aspect_ratio (a listed ratio or its
size; else image-01's width/height in 512..2048 by 8; else the nearest
ratio; 21:9 image-01 only), n, response_format base64, edit images as
subject_reference type character, the caller's seed, prompt_optimizer,
aigc_watermark and style passed on; mask and markup refused before
asking. data.image_base64 / image_urls are read; base_resp failures in
a 200 are told by code (1004/2049 key 401, 1008 balance 402, 1026
content 400, 1002 rate 429, 2013 400), and all images held back
(metadata.failed_count) says so.
- draw.go: viaFor sends them to the images path, drawImages to
drawMiniMax, DrawersOf adds them for a MiniMax key.
- A relay serving MiniMax models under another host is unchanged. The
minimax-code plugin sign-ins are not API keys and are untouched.
Run (mote, at e6f151507 + this change; after the rebase onto
origin/main, which touched no gateway file, -run 'MiniMax|Draw'
./internal/gateway again at the pushed tree: ok):
- go test -count=1 -timeout 45m ./internal/gateway: ok (947s)
- go vet ./internal/gateway on darwin, GOOS=linux -tags nogui, and
GOOS=windows: ok; gofmt -l clean.
Broken by hand: with the viaFor case and the drawImages hook removed,
TestMiniMaxDrawsOnImageGeneration fails for minimax and minimax-cn with
the reporter's exact "unknown model 'image-01' (2013)".
Not tried: a real MiniMax key (no account here); the fake answers with
the documented bytes. GUI suite not run (no GUI file changed; the
Providers page reads Drawers from the API). Full ./... suite runs after
the tag.