Skip to main content
Higgsfield provides official client libraries to simplify integration with our API. These libraries handle authentication, request management, and provide a developer-friendly interface for all platform features.

Supported Languages

We currently support the following languages:

Python

Full-featured SDK with sync and async support

JavaScript/TypeScript

Coming soon
Have a specific language in mind? Let us know in our community channels, and we’ll consider adding support for it in future releases.

Python SDK

The official Python SDK for Higgsfield AI. Supports both synchronous and asynchronous usage.

Installation

Install the Higgsfield Python client using pip:

Authentication

Before using the client, set your API credentials as environment variables. You can use either a single key or separate API key and secret: Option 1: Single Key
Option 2: API Key + Secret
Get your credentials from the Higgsfield Cloud.

Quick Start

Usage Patterns

Pattern 1: Simple Submit and Wait

Submit a request and wait for the result.

Pattern 2: Submit and Track Progress

Submit a request and monitor its status in real-time.

Pattern 3: Submit with Callbacks

Use callbacks to handle status updates.

Pattern 4: Manage Existing Requests

Work with request controllers to manage requests.

File Uploads

Upload files to use in your requests.

Upload Bytes

Requirements

  • Python >= 3.8

Resources

JavaScript/TypeScript SDK

Coming Soon - Our JavaScript/TypeScript SDK is currently in development and will be available soon. The upcoming SDK will feature:
  • Full TypeScript support with type definitions
  • Promise-based async API
  • Support for Node.js and browser environments
  • Webhook utilities
  • Built-in retry logic
In the meantime, you can use the REST API directly.

Support

If you encounter any issues or have questions: