Skip to content

Imagine Introduction

Introduction

The Genstack Imagine service provides a powerful API for AI-powered image generation using Stable Diffusion XL Lightning. It offers both programmatic access through a REST API and a user-friendly web interface.

Key Features

  • AI image generation using Stable Diffusion XL Lightning
  • Usage-based billing with balance management
  • Developer profit sharing system
  • Customizable generation parameters
  • Simple REST API interface
  • Web-based UI for image generation
  • Cross-origin resource sharing (CORS) support
  • Health monitoring and status checks

Demo UI

A demonstration page is served at https://imagine.genstack.app/ui

Authentication

The service requires Genstack token authentication for all image generation requests.

Pricing and Billing

The service implements a flexible pricing model that includes:

  • Base generation cost per image
  • Configurable gross margin percentages
  • Developer profit sharing
  • Automatic balance checking and fund reservation
  • Usage tracking and reporting

Resource Management

The service automatically handles:

  • Balance verification before generation
  • Fund reservation during processing
  • Usage recording and balance updates
  • Developer profit distribution

Image Generation

The service uses the Stable Diffusion XL Lightning model for image generation, supporting:

  • Custom prompts and negative prompts
  • Adjustable image dimensions
  • Seed control for reproducibility
  • Step count configuration

For more detailed information about specific endpoints and usage examples, refer to the Endpoints and Examples sections.