Skip to main content

1. Install

2. Set API Key

Set your API key as an environment variable:

3. Basic Example

JavaScript (CommonJS)

TypeScript (ES6)

4. Check Task Status

Available APIs

  • ImageGenerationApi - Text to image, variations, upscaling, editing
  • VideoGenerationApi - Video generation and upscaling
  • TaskManagementApi - Check task status
  • AccountManagementApi - Account balance and information

Learn More

For complete API reference, see the generated docs/ folder in the package.