Skip to content

feat: support MAGI-2 through Higgsfield Open - #508

Merged
FayeSpica merged 1 commit into
ThinkFlowLab:mainfrom
bread-lxy:codex/magi2-504
Nov 25, 2026
Merged

FayeSpica merged 1 commit into
ThinkFlowLab:mainfrom
bread-lxy:codex/magi2-504

Conversation

@bread-lxy

Copy link
Copy Markdown
Contributor

Summary

Add a Higgsfield Open video connection for sand/magi-2, with text-to-video, first/last-frame generation and image/video/audio references available through the canvas and Agent. Publish the model's input limits, optional media prompts, 1080p output, 4–30 second durations, aspect ratios and generated-audio control in the shared capability contract.

Upload accepted media through Higgsfield's upload service and retain the exact request, fixed idempotency key and returned status/cancel URLs in the private recovery cache. Interrupted submissions reuse the original request; completed videos use the existing result validation, asset registration and adoption flow.

Include Chinese and English settings, errors and usage documentation. References accept JPEG/PNG/WebP/GIF, MP4 and WAV; MOV/MP3 receive conversion guidance. The existing 50 MB generated-file download/cache limit remains applicable.

Linked issue

Refs #504

  • Linked issue included; live provider verification remains outstanding.

Labels

  • type:feat, area:provider, area:canvas, area:agent, area:i18n

Test plan

  • Local: CPU Python selection and affected-module rerun: 3,078 unique passing cases, 34 skipped and 10 deselected. This includes 47 MAGI-2 tests covering request bodies and upload bytes, UI/Agent submission, validation, recovery, cancellation, result persistence and credential handling.
  • Local: 985 frontend tests; production build and TypeScript checking; generated-contract, import-boundary, bilingual-catalog, browser-locale, browser-manifest and changed-file static checks.
  • Local: eight bilingual Playwright scenarios against the actual adapter with mocked provider HTTP, covering all three generation paths, mixed references, the audio toggle, aspect ratio, adoption/reload and MP3 rejection.
  • Left to CI: repository Release checks on the published commit.

Evidence that it works

  • English/Chinese screenshots: model capabilities, generation parameters and saved output.
Model capabilities

Model capabilities — English

Model capabilities — Chinese

Generation parameters

Generation parameters — English

Generation parameters — Chinese

Saved output from mocked generation

Saved output from mocked generation — English

Saved output from mocked generation — Chinese

Provider verification

  • No real-provider calls were made. Provider HTTP was mocked; local image, MP4 and WAV fixtures exercised the actual adapter and project services. Higgsfield account permissions, billing and generated-video quality remain unverified.

Bilingual UI

  • zh-CN and en-US are updated and exercised in the browser.

Assisted by Codex.

@github-actions github-actions Bot added area:docs Documentation / 文档 area:provider Model providers and generation protocols labels Nov 25, 2026
assert.deepEqual(errors, []);
await page.close();
}
await writeFile(join(output, "acceptance.json"), JSON.stringify(evidence, null, 2));

@FayeSpica FayeSpica left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

image

@FayeSpica
FayeSpica merged commit 635666b into ThinkFlowLab:main Nov 25, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Documentation / 文档 area:provider Model providers and generation protocols

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants