Skip to main content

1. Install

2. Set API Key

3. Basic Example

That’s it! Your first API call is complete.

Next Steps

  • Polling - Use client.tasks.wait_for_completion() with on_progress callback
  • Webhooks - Set callback parameter for async notifications
  • API Methods - See Image Generation reference
  • Async - Learn about AsyncClient in Task Management
  • Errors - See error handling in Task Management

Common Use Cases

Generate and upscale:
With webhook (production):
Async batch:

Learn More