Skip to main content

1. Add Dependency

Maven

Gradle

2. Set API Key

Set your API key as an environment variable:

3. Basic Example

4. Check Task Status

Error Handling

Available APIs

  • ImageApi - Text to image, variations, upscaling, editing
  • VideoApi - Video generation, upscaling, and task status
  • AccountManagementApi - Account balance and information