Skip to content

[Platform][Higgsfield] Add platform bridge#2278

Open
OskarStark wants to merge 7 commits into
mainfrom
budapest-v13
Open

[Platform][Higgsfield] Add platform bridge#2278
OskarStark wants to merge 7 commits into
mainfrom
budapest-v13

Conversation

@OskarStark

@OskarStark OskarStark commented Jul 6, 2026

Copy link
Copy Markdown
Contributor
Q A
Bug fix? no
New feature? yes
Docs? no
Issues -
License MIT

This adds a new symfony/ai-higgsfield-platform bridge integrating Higgsfield, an AI creative suite for image and video generation. Because Higgsfield works asynchronously, the client submits a generation request, polls the status endpoint until the media is ready, downloads it and returns it as a BinaryResult (so ->asFile() works as with other media bridges). The model name maps directly to a Higgsfield generation endpoint (e.g. flux-pro/kontext/max/text-to-image, v1/image2video/dop), and an ImageNormalizer maps Image inputs to Higgsfield's image_url shape. The bridge ships with a Factory, ModelCatalog, contract, unit tests, and runnable examples under examples/higgsfield/.

$platform = Factory::createPlatform(apiKey: 'KEY_ID', apiSecret: 'KEY_SECRET');
$result = $platform->invoke(
    'flux-pro/kontext/max/text-to-image',
    new Text('A cat on a kitchen table'),
    [
        'aspect_ratio' => '9:16'
    ],
);
$result->asFile('cat.png');

@OskarStark OskarStark requested a review from chr-hertel as a code owner July 6, 2026 12:08
@carsonbot carsonbot added Feature New feature Platform Issues & PRs about the AI Platform component Status: Needs Review labels Jul 6, 2026
@OskarStark OskarStark changed the title [Platform] Add Higgsfield platform bridge [Platform][Higgsfield] Add platform bridge Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature Platform Issues & PRs about the AI Platform component Status: Needs Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants