Use this file to discover all available pages before exploring further.
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.
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
import higgsfield_client# Submit and wait for resultresult = higgsfield_client.subscribe( 'higgsfield-ai/soul/standard', arguments={ 'prompt': 'A serene lake at sunset with mountains', 'resolution': '2K', 'aspect_ratio': '16:9', 'camera_fixed': False })print(result['images'][0]['url'])
import higgsfield_clientrequest_controller = higgsfield_client.submit( 'higgsfield-ai/soul/standard', arguments={ 'prompt': 'A serene lake at sunset with mountains', 'resolution': '2K', 'aspect_ratio': '16:9', 'camera_fixed': False }, webhook_url='https://example.com/webhook')# Check statusstatus = request_controller.status()# Wait for completion and get resultresult = request_controller.get()# Cancel a queued requestrequest_controller.cancel()