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, editingVideoGenerationApi- Video generation and upscalingTaskManagementApi- Check task statusAccountManagementApi- Account balance and information
Learn More
For complete API reference, see the generateddocs/ folder in the package.