Loading...
Reference

AI Image Generator

Overview

Heavstal Image Engine uses high-speed latent diffusion models to generate images from text. Unlike standard wrappers, this endpoint generates, downloads, and re-hosts the result on a permanent public URL (Catbox), so you don't have to handle binary streams or temporary links.

It supports Batch Generation and Variations out of the box.

Endpoint

POST /image

Request Parameters

FieldTypeRequiredDescription
promptstring OR arrayRequiredDescription of the image(s). Pass a string for one, or an array of strings for batching.
countnumberOptionalNumber of variations to generate if 'prompt' is a single string. (Max: 5).

Example 1: Single Generation

javascript

Example 2: Variations (Batch)

Generate 4 versions of the same concept in parallel.

javascript

Successful Response (Single)

json

Successful Response (Batch)

json