Skip to content

feat(higgsfield): add Higgsfield integration - #9749

Open
myxamediyar wants to merge 6 commits into
stagingfrom
feat/higgsfield-integration
Open

myxamediyar wants to merge 6 commits into
stagingfrom
feat/higgsfield-integration

Conversation

@myxamediyar

Copy link
Copy Markdown
Contributor

Summary

Adds a Higgsfield block for image and video generation and Soul ID character management.

Operations:

  • Generate SOUL Image: typed fields for prompt, aspect ratio, resolution, batch size, style, Soul ID character, seed, and prompt enhancement
  • Generate (Any Model): any Higgsfield model endpoint ID plus that model's JSON input, so the 84 catalog models work without per-model fields
  • Get Request Status / Cancel Request / Delete Request
  • Create / Get / List / Delete Character (Soul ID)

Generation is asynchronous. Both generate operations poll Get Request Status until the request finishes (bounded by the default execution timeout). A Wait for Result switch returns the request ID immediately for long video jobs. Webhook URL, idempotency key, and data retention are available in advanced mode.

Auth is a saved token service account. The user pastes KEY_ID:KEY_SECRET, which tools send as Authorization: Key …. The key is verified at connect time by listing one page of Soul ID characters, because Higgsfield has no identity endpoint.

Not included: the Soul style list (its response shape is undocumented, so style is an ID field), SOUL V2 and SOUL Cinema generation (endpoints not confirmed), and a webhook trigger.

Product update (if relevant)

Teams can generate product videos, ad creatives, and consistent character images from Higgsfield models inside a workflow or agent run. Requires a Higgsfield API key from console.higgsfield.ai. Output URLs expire after seven days by default.

Type of Change

  • New feature

Testing

  • bun run lint, bun run type-check (apps/sim), canvas sentence check, block registry check, check:docs, check:integration-catalog, check:deployment-config, and icon checks pass
  • Vitest: blocks, tools, credentials, oauth, and serializer suites (198 files, 2,136 tests) pass
  • Live API run with a real key, calling the tool code directly: credential validation (valid key accepted, bad key rejected with 401), SOUL image generation with polling to completion, generic generate without waiting, cancel of a queued request, status after cancel, delete of a finished request, list characters, and 404 on an unknown character
  • Not live-tested: Create Character (training uses credits) and video models. The block has not been exercised in the running app yet.
  • check:audits locally reports one check:unused-exports failure: an unresolved @/.content/registry import in apps/docs, caused by the generated docs folder missing in a fresh worktree

Reviewers: the polling loop in tools/higgsfield/utils.ts and the credential descriptor and validator.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Nov 6, 2026 9:08pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 35 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/blocks/blocks/higgsfield.ts Resolved
Comment thread apps/sim/blocks/blocks/higgsfield.ts Resolved
Comment thread apps/sim/blocks/blocks/higgsfield.ts Resolved
@greptile-apps

greptile-apps Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issues were found.

Summary

Adds Higgsfield image and video generation, request management, and Soul ID character tools.

  • Higgsfield workflows can generate media and manage generation requests.
  • Workflows can create and manage reusable Soul ID characters.
  • Users can connect Higgsfield with a saved service-account key.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Workflow or agent] --> B[Resolve saved Higgsfield account]
  B --> C[Submit generation]
  C --> D{Wait for result?}
  D -->|No| E[Return request ID]
  D -->|Yes| F[Poll request status]
  F --> G{Finished?}
  G -->|No, within time limit| F
  G -->|Completed| H[Return media URLs]
  G -->|Failed or time limit reached| I[Return error and request details]
Loading

Reviews (6) · Last reviewed commit: "chore(higgsfield): regenerate integratio..." · Reviewed by Greptile

Comment thread apps/sim/blocks/blocks/higgsfield.ts Resolved
@myxamediyar

Copy link
Copy Markdown
Contributor Author

@greptile

@myxamediyar

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@myxamediyar I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 35 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/blocks/blocks/higgsfield.ts Resolved
@myxamediyar
myxamediyar force-pushed the feat/higgsfield-integration branch from f188111 to 977ff7e Compare November 6, 2026 20:33
@myxamediyar

Copy link
Copy Markdown
Contributor Author

@greptile

@myxamediyar

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@myxamediyar I have started the AI code review. It will take a few minutes to complete.

Comment thread apps/sim/blocks/blocks/higgsfield.ts Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 35 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/blocks/blocks/higgsfield.ts Resolved
Comment thread apps/sim/blocks/blocks/higgsfield.ts Resolved
@myxamediyar

Copy link
Copy Markdown
Contributor Author

@greptile

@myxamediyar

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@myxamediyar I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 35 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@myxamediyar
myxamediyar force-pushed the feat/higgsfield-integration branch from dafa790 to 77e9489 Compare November 6, 2026 20:52
@myxamediyar

Copy link
Copy Markdown
Contributor Author

@greptile

@myxamediyar

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@myxamediyar I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 35 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

Turn on auto-fix | Re-trigger cubic

myxamediyar and others added 2 commits November 6, 2026 12:58
Add a Higgsfield block for image and video generation:
- Generate with any model endpoint, or a typed SOUL image operation
- Get status, cancel, and delete generation requests
- Create, get, list, and delete Soul ID characters

Generation waits for completion by polling request status, with an option
to return the request ID immediately. Credentials are a saved token service
account (KEY_ID:KEY_SECRET), verified by listing the account's characters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Split training image URLs on line breaks only so URLs containing commas stay intact
- Limit the Soul ID skill to v1 characters, the version Generate SOUL Image accepts
- Let the canvas noun name the object in Get and Delete Character sentences
- Mark outputs that can be null as nullable

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
myxamediyar and others added 4 commits November 6, 2026 12:58
Use parseOptionalNumberInput so whitespace-only values are treated as empty
instead of 0, and enforce the documented integer and range limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A hidden numeric field from another operation no longer blocks the
selected one when its value is invalid.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Declare the List Characters output as an array, and reject a SOUL batch
size other than 1 or 4 before submitting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@myxamediyar

Copy link
Copy Markdown
Contributor Author

@greptile

@myxamediyar

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@myxamediyar I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 35 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

Turn on auto-fix | Re-trigger cubic

This branch was successfully deployed

1 active deployment
Preview — 6a6fd272 Deployed Nov 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants