Skip to main content
Official SDKs handle authentication, submission, polling, cancellation, and file uploads. Use them only in trusted server-side environments.

Python

Synchronous and asynchronous APIs for Python 3.8+.

Node.js and TypeScript

Typed server-side client with automatic polling and retries.

Python

Install

Configure credentials

Submit and wait

Use submit or submit_async when you need a request controller for explicit polling, status checks, or cancellation. The Python SDK also provides upload, upload_file, and upload_image helpers.

Node.js and TypeScript

Install

Configure credentials

Submit and wait

The v2 TypeScript client is server-side only and blocks browser use to prevent credential exposure.

Choose an integration style

See the Python SDK repository and TypeScript SDK repository for the complete client APIs.

Agent API

The Agent API is available through client.agents.sessions (create, run() with automatic polling and question handling, send, messages, interrupt) and client.agents.media (one-call input upload):
  • Python 0.2.0+: SyncClient and AsyncClient.
  • TypeScript 0.2.4+: createHiggsfieldClient(...).agents and the configured higgsfield.agents singleton from the recommended @higgsfield/client/v2 entry point.
See the agent quickstart for installation and complete examples, or use the REST API.