Repository navigation
feat(fal_ai): add MiniMax H3 text-to-video and reference-to-video - #42286
Merged
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
devin-ai-integration
Bot
requested review from
kerry-berri,
mateo-berri and
ryan-crabbe-berri
as code owners
September 21, 2026 19:18
Contributor
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
|
Contributor
kerry-berri
approved these changes
Sep 21, 2026
This was referenced Sep 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TLDR
Problem this solves:
size, so fal renders at its 2K defaultimage_urlinstead ofreference_image_urlsHow it solves it:
fal_ai/minimax/h3/text-to-videoandfal_ai/minimax/h3/reference-to-videoto the cost map with per-resolution pricingoutput_cost_per_second_768pandoutput_cost_per_second_2kto typed model info, router params, and the dashboard types480P,768P,2K,4K), integer duration,reference_image_urlslist, and a2Kdefault in usage; Seedance keeps its current behaviorUser Flow
Before: a developer adds MiniMax H3 through fal_ai, asks for a 768P clip, and gets a 2K clip billed at $0
model: fal_ai/minimax/h3/text-to-videoandmodel: fal_ai/minimax/h3/reference-to-videodeployments to the proxy config and restarts{"model":"minimax-h3","prompt":"...","seconds":"6","size":"768P"}"size": null,"usage": {"video_resolution": "720p"}, and nox-litellm-response-costheader{"model":"minimax-h3-reference","prompt":"...","seconds":"5","size":"480P","input_reference":"https://.../owl.png"}completed, but GET .../content returns 500fal.ai video result did not include a video URLbecause fal rejected the request with "At least one reference image, video, or audio must be provided"After: the same requests produce the requested resolution, are billed correctly, and reference-to-video works
"size":"768P""size": "768P","usage": {"video_resolution": "768P"}, andx-litellm-response-cost: 0.36(6 s at $0.06/s)"size": "480P"andx-litellm-response-cost: 0.25, and GET .../content returns an 832x480 mp4Relevant issues
Affected release
Linear ticket
Resolves LIT-8275
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more@greptileaito re-request a review after pushing changes)Delays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
Shared setup. Both proxies run the same config against the real fal.ai API with
LITELLM_LOCAL_MODEL_COST_MAP=Trueso the cost map on disk is the one under test. Before runs from a worktree at the merge base on port 4000, After runs from the PR tip on port 4001Before (9a90ada)
text-to-video, size 768P
x-litellm-response-costheader"status":"completed", then download and inspectreference-to-video, size 480P
"status":"completed", then downloadAt least one reference image, video, or audio must be provided, becauseimage_urlis not a field H3 acceptsAfter (8d73ce7)
text-to-video, size 768P
"status":"completed", then download and inspectreference-to-video, size 480P
"status":"completed", then download and inspectType
🆕 New Feature
Caveats (if any)
Medium
LITELLM_LOCAL_MODEL_COST_MAP=Truecompletedand the content download returns a generic 500 instead of fal's error text. Pre-existing adapter behavior, not changed hereLow
minimax/h3/model prefix; other fal video models keep the Seedance behaviorFinal Attestation
Link to Devin session: https://app.devin.ai/sessions/a8bdf1069abf462eb88cce7de1941407
Open in Devin Desktop: https://app.devin.ai/desktop/session/a8bdf1069abf462eb88cce7de1941407?variant=devin