Skip to main content

1. Install

2. Set API Key

Set your API key as an environment variable:

3. Basic Example

4. Check Task Status

Error Handling

Available APIs

  • ImageGenerationAPI - Text to image, variations, upscaling, editing
  • VideoGenerationAPI - Video generation and upscaling
  • VideoAPI - Task status checking
  • AccountManagementAPI - Account balance and information