Skip to main content
reopt Handbook
reopt Handbook
Higgsfield MCP Master

Understanding

1. What Is Higgsfield MCP2. Timeline of Changes3. Choosing a Connection Path

Connection and Authentication

4. Connecting Claude5. ChatGPT, Cursor, and Other Agents6. CLI and Skills7. Auth and Security

Using the Features

8. What You Can Do with MCP9. Choosing a Model10. Instructing the Agent11. Reference Files and Soul12. One-Click Skills Catalog13. Creative App Integrations

Cost and Operations

14. Credits and Cost Control15. Troubleshooting16. Rights, Policy, and Data17. Teams and Enterprise18. Moving to the API

Practical Examples

19. Official Recipes20. References and Real Cases

Advanced Use

21. Production Architecture22. Consistency System Design23. Variants and Experiments24. QA and Prediction Loop25. Orchestrating Other Tools26. CLI Automation Pipeline27. Team Operations Playbook28. Advanced Role Scenarios

Appendix

Verification ReportUpdate Log
Handbook›Higgsfield MCP Master›18. Moving to the API
한국어KOEnglishEN

18. Moving to the API

Auth, async requests, webhooks, retention, and concurrency limits in the Higgsfield API for adding generation to your own service, compared with MCP.

Written and reviewed by Eric Han · Co-founder & CTO, reopt

Key takeaways

  • The Higgsfield API is a separate product from MCP and the CLI. It uses its own account and keys, and each generation is deducted from a prepaid dollar balance rather than plan credits.
  • Authentication puts a key ID and secret in the Authorization header, and calls are made only from a server. Never put them in a browser or mobile app.
  • Generation is asynchronous. You get a request_id and either poll the status or receive a webhook. Use the same Idempotency-Key for retries.
  • Output files are deleted after 7 days by default, so download them to your own storage. Requests over the concurrency limit go into a queue, and when the queue is full you get a 429.
  • The API docs (console.higgsfield.ai) and the help center (open.higgsfield.ai) give different console addresses. As of 2026-11-21, both appear.

MCP is built for work a person does in conversation with an agent. When the work repeats and grows, other needs appear. A video must be created when a user of your app presses a button, results must be stored in your own storage, and costs must be accounted for per item. That is when to move to the Higgsfield API. This chapter draws on the official API docs and help center, checked on 2026-11-21, to cover what changes when an MCP user moves to the API. Model-specific endpoints and parameters are governed by the model docs, so only shared concepts are covered here.

When to Use the API

Higgsfield has three programmatic paths. Combining the comparisons in the official CLI blog post and the help center gives the following.

CriterionMCPCLIAPI
UseChat agents such as ClaudeTerminal, scripts, coding agentsYour own application
Accounthiggsfield.ai accounthiggsfield.ai accountSeparate API account
Sign-inBrowser OAuth, no keyBrowser sign-in, no keyAPI key (key ID and secret)
BillingPlan credits, standard ratePlan credits, standard ratePrepaid dollar balance, published per-item rates
Unlimited modelsNot applicableNot applicableN/A
OutputTool results in the conversationText or JSONREST responses, webhooks

The help center classifies MCP and the CLI as agent connections, and the API as a developer product for adding generation to your own product. Whether or not you have a higgsfield.ai plan has no effect on API access or rates. Conversely, the API balance cannot be used on the web or through MCP.

This book's view: Consider the API if any of the following applies. You are building a service where end users trigger generation directly. You need to receive generation results in your own system and post-process them. You generate in bulk on a fixed schedule without human approval. You need to allocate per-item costs precisely to clients or projects. On the other hand, creative work in which a person watches the results and refines the direction is better suited to MCP.

Laid out as a sequence of questions, this judgment becomes the flow below. The first question is "who presses the generate button?"

Account and Billing

The API launched as self-serve on September 16, 2026. According to the launch blog post and the help center, a single key gives access to more than 50 video and image models in the catalog. These include video models from the Seedance, Kling, Wan, MiniMax, LTX, PixVerse, and Grok families, image models from Ideogram, Recraft, and Qwen, and Higgsfield's own models Soul 2, Soul Cinema, DoP, and Marketing Studio Image. The API catalog may differ from the model lineup on the web.

Billing deducts what you use from a dollar balance. The minimum top-up is $5. Video models are priced per second of output and image models per image. DoP alone is priced per generation. Rates are published for each setting, such as resolution or audio, and do not change with the top-up amount. Topped-up funds expire after one year. Only successful generations are billed. Requests that end as failed or nsfw are not billed, and the reserved amount is refunded automatically. Requests canceled while queued are also refunded.

When the balance runs out, the help center says new requests wait until you top up, while the API error docs list insufficient balance as 403. Turning on auto top-up keeps production traffic from stopping. To know the cost before making a request, use the estimate endpoint.

curl --request POST \
  --url https://api.higgsfield.ai/estimate/higgsfield-ai/soul/v2/standard \
  --header "Authorization: Key ${HF_API_KEY_ID}:${HF_API_KEY_SECRET}" \
  --header "Content-Type: application/json" \
  --data '{ "prompt": "Editorial portrait in soft daylight" }'
# Example response: { "usd": "0.094" }  (format example only; actual values follow your account's response)

Authentication and Key Management

API credentials are a key ID and secret pair. Send both values in the form Authorization: Key YOUR_KEY_ID:YOUR_KEY_SECRET. This is not a Bearer token scheme. The older hf-api-key and hf-secret headers are still accepted, but new integrations use the Authorization header. The full key is shown only once when you create it, so save it right away. The help center says creating a key opens up 20 concurrent requests.

The security guidance in the official docs is clear. Do not call the API directly from browser or mobile app code, because anyone who inspects the app can extract the secret and spend your account balance. Keep credentials in a secrets manager or encrypted environment variables, use different keys for development and production, and never put them in URLs, logs, screenshots, or support requests. If you suspect exposure, rotate immediately. Wrong credentials return 401. A model that passes authentication but is not allowed for the account may return 404, 423, or 503 depending on its state.

MCP OAuth tokens and API keys are different in nature. An MCP token delegates a person's account permissions to an agent. An API key is a long-lived credential a server uses on its own. MCP authentication is covered in Chapter 7.

Asynchronous Requests and Status

A generation request does not return the result right away. When submission succeeds, a request is created and a response comes back immediately, while the work proceeds in the background.

StatusTerminalMeaning
queuedNoWaiting to start. Can be canceled only at this stage
in_progressNoGeneration started, cannot be canceled
completedYesOutput URL available
failedYesFailed, may include error
nsfwYesInput or output rejected by content moderation
canceledYesCanceled before processing started

Drawn as transitions, the statuses in the table look like this. Cancellation is possible only from queued, and of the four terminal states, only completed is billed.

The first response contains request_id, status_url, cancel_url, and expires_after, which gives the retention period in seconds. request_id is a fixed identifier used for polling, cancellation, webhook deduplication, and support requests, so save it as soon as you receive it. Do not build URLs yourself. Use the values in the response.

Send an Idempotency-Key header with the submission. If submission times out without a response, sending it again with the same key does not create a duplicate request. Reusing the same key with different parameters returns 422.

export IDEMPOTENCY_KEY=$(uuidgen | tr '[:upper:]' '[:lower:]')
curl --request POST \
  --url https://api.higgsfield.ai/higgsfield-ai/soul/v2/standard \
  --header "Authorization: Key ${HF_API_KEY_ID}:${HF_API_KEY_SECRET}" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: ${IDEMPOTENCY_KEY}" \
  --data '{ "prompt": "A quiet alpine lake at sunrise, editorial photography" }'

Polling and Webhooks

There are two ways to receive results. With polling, query status_url starting at 2-second intervals and gradually increasing to 10 seconds. If many workers poll at the same time, add random delay (jitter). Stop at completed, failed, nsfw, or canceled. Retry 5xx or network errors on status queries with exponential backoff, and on 401 or 404, stop and fix the cause.

Webhooks are recommended for long jobs in production. Put an HTTPS endpoint in the hf_webhook query parameter when you submit, and a POST arrives when the request reaches completed, failed, or nsfw. The endpoint must be reachable over public HTTPS, accept a JSON body, and respond within 10 seconds. The signature follows the Standard Webhooks scheme and is carried in the webhook-signature header. Verify it with the official library before parsing the raw body. The same delivery may arrive more than once, so deduplicate with webhook-id. When you rotate the secret, the old secret stays valid alongside the new one for 24 hours. The official docs recommend keeping webhooks as the primary path and polling as the recovery path.

MethodAdvantagesCautions
PollingSimple to implement, no public endpoint neededMore requests, needs interval and timeout design
WebhooksImmediate notice on completion, less loadSignature verification, deduplication, 10-second response

The operating flow with webhooks as the primary path and polling as the recovery path is shown below. If a submission ends ambiguously, resend it with the same key. When you get the completion notice, move the file to your own storage within the retention period.

Files and Retention

If an input file is not at a public HTTPS URL, get a presigned upload URL and upload it. The upload URL expires after 1 hour. After uploading, put the public_url you receive into model parameters such as image_url, video_url, or audio_url. Supported formats are JPEG, PNG, WebP, and GIF images, WAV audio, and MP4 video. Be careful not to send API credentials to the storage URL.

Output files are kept for 7 days by default after the request finishes, then deleted. The expires_at field in the status response and webhook is the deletion time. If you need long-term storage, download to your own storage as soon as the job completes. To keep files for a shorter time, send a value of 3600 seconds or more in the Hf-Expires-After header, or delete a finished request's data with the delete endpoint. Turn on training exclusion with Exclude data from training under console Settings. This setting is independent of retention (Chapter 16).

This is where the API differs from MCP. MCP outputs stay in Assets on higgsfield.ai, but API results disappear after a set period. Without your own storage pipeline, you lose the outputs.

Concurrency and Queues

The basic unit of limits is concurrency, meaning the number of requests that can be processed at once. There is an account-wide limit and separate limits for some models, and you can check the values in the console. Requests over the limit are not rejected. They are accepted as queued and start automatically when earlier jobs finish. The queue length also has a cap, though. It is set as a multiple of concurrency, and each output in a batch counts separately. When the queue is full, you get 429 Too Many Requests with the code account_queue_full and a Retry-After header, and nothing is created or billed. Wait for the Retry-After period, then resend with the same Idempotency-Key. If entering the queue is temporarily unavailable, you get 503 with admission_control_unavailable.

The flow below shows what happens when a submission meets the concurrency limit and the queue cap. A 429 creates and bills nothing, so you can wait and resend with the same key.

The official docs recommend submitting through a worker pool or semaphore sized to your concurrency to keep the queue short. If you need higher limits or dedicated capacity isolated from other customers, tell support@higgsfield.ai or your account manager the model and expected peak concurrent requests before traffic grows.

SDKs and Agent Setup

There are two official SDKs: Python (higgsfield-client, Python 3.8 or later, sync and async) and Node.js and TypeScript (@higgsfield/client). They handle authentication, submission, polling, cancellation, and file uploads, and should be used only in trusted server environments.

# pip install higgsfield-client
# export HF_KEY="your-api-key-id:your-api-key-secret"
import higgsfield_client

result = higgsfield_client.subscribe(
    "higgsfield-ai/soul/v2/standard",
    arguments={"prompt": "Editorial portrait in soft daylight"},
)
print(result["images"][0]["url"])

Each model page provides sample code along with setup prompts for Claude Code, Cursor, and ChatGPT (Codex). When you hand API integration to a coding agent, start with these prompts. The API docs' llms.txt tells agents to use the model docs as the primary source, not to conclude that a model missing from the OpenAPI spec is unavailable, and not to switch production and preview environments or models on their own. Pass these principles along when you hand off API work.

Console Address Confusion

As of 2026-11-21, official materials give two API console addresses. The authentication, quickstart, and limits pages in the API docs (docs.higgsfield.ai) and llms.txt point to console.higgsfield.ai. The help center's API introduction, its list of official platforms, and the enterprise usage analytics docs point to open.higgsfield.ai as the API console, under the name Open Higgsfield. We could not confirm from official materials which one is an alias. The help center's official platforms article says to treat anything not linked from higgsfield.ai as unofficial, so it is safer to reach the console by following links from docs.higgsfield.ai or higgsfield.ai.

Advanced Use

Do not move work you refined in MCP to the API all at once. The order below is a transition sequence this book put together based on the recommendations in the official docs.

Settle the model, resolution, length, and prompt template in MCP or the CLI. The results of this step become the baseline for API requests.
Create a separate API account, split development and production keys, and keep them in your server's secrets manager.
Check the dollar cost of the same settings with the estimate endpoint, and set the top-up amount and auto top-up threshold.
Implement Idempotency-Key handling, webhook signature verification, a polling recovery path, and transfer to your own storage.
Start with a small amount of traffic through a worker pool sized to the concurrency limit, and request more capacity from support if needed.

CLI script automation, the step before moving to the API, is covered in Chapter 26, CLI Automation Pipeline, and the structure for placing conversation, the CLI, and the API in one production flow is covered in Chapter 21, Production Architecture.

Official Sources

  • What is the Higgsfield API, and how do I get started?
  • Meet the Higgsfield API
  • Authentication
  • Requests and lifecycle
  • Webhooks
  • Rate limits
  • Billing and retention
  • Client libraries

Related docs

1. What Is Higgsfield MCP

How Higgsfield MCP lets AI agents like Claude make images, video, and audio, its official connection paths, and how it differs from the API and web.

3. Choosing a Connection Path

Compare MCP, CLI and Skills, the Higgsfield API, Supercomputer, and app plugins to pick the path that fits your work and tools.

Cmd. /claude-api

Claude Code Command Master · Claude API reference, migration, cost optimization, and evaluation workflows

API Docs and Specs

Agentic Documentation · Connect OpenAPI 3.2, tool schemas, MCP Resources, and contract tests.

Forms and Data Input

Design Systems for the AI Era · Standardize validation, errors, and complex form composition.

17. Teams and Enterprise

Deploying the connector in Team, Scale, and Enterprise workspaces, choosing a CLI workspace, spending controls, and what Claude org billing covers.

19. Official Recipes

Reproduce founder campaigns, URL-based UGC ads, talking avatars, and multi-step video projects by following the official Higgsfield cookbook and blog workflows.

On this page

When to Use the APIAccount and BillingAuthentication and Key ManagementAsynchronous Requests and StatusPolling and WebhooksFiles and RetentionConcurrency and QueuesSDKs and Agent SetupConsole Address ConfusionAdvanced UseOfficial Sources