Skip to content

feat(workflow): expand video prompts with MiniMax H3 Context-IR - #10385

Closed
renningg wants to merge 1 commit into
invoke-ai:mainfrom
renningg:feat/minimax-h3-context-ir
Closed

renningg wants to merge 1 commit into
invoke-ai:mainfrom
renningg:feat/minimax-h3-context-ir

Conversation

@renningg

@renningg renningg commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add MiniMax H3 Context-IR (API) to the workflow editor. Give it a scene or shot list, a target duration and an aspect ratio. Its Value output carries the expanded text into the existing Prompt - MiniMax H3 encoder. It can also run on its own so you can review and edit the text before generating a video.

Context-IR workflow node with a scene description, duration and aspect ratio

Related Issues / Discussions

The local H3 workflow can use this node independently of the hosted video generation feature in #10384. MiniMax documents prompt expansion for both regions. Global API · Mainland China API

QA Instructions

  1. In the workflow editor, add MiniMax H3 Context-IR (API). Enter a two-shot scene, choose a duration of 4–15 seconds and an aspect ratio. Connect Value to Prompt on Prompt - MiniMax H3, or run the node alone and inspect Node Inspector → Outputs. Running it against MiniMax incurs prompt-processing charges.
  2. To check the graph and provider behavior offline, run uv run --no-sync pytest tests/app/invocations/test_minimax_h3_context_ir.py. Coverage includes both regions, single submission, throttled or interrupted polling, cancellation and invalid results.
  3. Verified in Chromium that the node can be found, added and edited. A saved workflow ran against an isolated HTTP server for each region. Each run submitted once, polled twice and delivered text to the next node. No paid provider call or local video render was run.

895 backend tests passed, including 38 focused on Context-IR. Ruff, both generated API contract tests, 302 docs tests and the docs build also passed. The legacy frontend type check reports the same 43 TypeScript errors on this branch and its base.

Review

If the submission response is lost, the node directs the user to check MiniMax task history before rerunning. Polling honors Retry-After and preserves the known task ID on errors. Canceling locally stops polling; an accepted provider task can still complete and incur a charge.

Compatibility / Rollout

This adds a workflow node and regenerates the shared OpenAPI and TypeScript schemas. Existing graphs need no migration. Set external_minimax_api_key on the server to enable the node. The default region is global. For a mainland China key, set external_minimax_base_url to https://api.minimax.cn and restart Invoke.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog.
  • Meaningful regression coverage added.
  • Saved-workflow compatibility and generated API contracts checked.
  • Polling, responses and request timeouts are bounded.
  • Material review findings resolved and relevant checks rerun.
  • Product documentation updated.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Connect enhanced text from the regional prompt API to local H3 workflows.
Honor polling limits and preserve the task ID when a query fails.
@github-actions github-actions Bot added python PRs that change python files invocations PRs that change invocations services PRs that change app services python-tests PRs that change python tests docs labels Nov 24, 2026
@lstein
lstein self-requested a review November 30, 2026 02:15
@lstein lstein self-assigned this Nov 30, 2026
@lstein lstein added the 7.1.0 label Nov 30, 2026
@lstein lstein moved this to 7.1.0: new features in Invoke - Community Roadmap Nov 30, 2026
@renningg
renningg force-pushed the feat/minimax-h3-context-ir branch from 88aba99 to df11827 Compare December 2, 2026 03:21
@renningg renningg closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.1.0 docs invocations PRs that change invocations python PRs that change python files python-tests PRs that change python tests services PRs that change app services

Projects

Status: 7.1.0: new features

Development

Successfully merging this pull request may close these issues.

2 participants