API Reference

Comprehensive documentation for the APImage API. Use the sidebar to navigate between endpoints.

API Reference

Base URL:

https://apimage.org/api/

Generate AI Image

POST/ai-image-generate
Generate an image using AI based on the provided prompt and parameters.

Parameters

NameTypeDescriptionRequiredDefault
prompt
string
Text description of the image to generate
Required-
dimensions
string
Dimensions of the generated image
Allowed values:
SquareLandscapePortrait
OptionalSquare
model
string
AI model to use for generation (Pro feature only)
Allowed values:
BasicPremium
OptionalBasic
background
string
Background style for the generated image (Pro Feature; Requires AI model to be "Premium")
Allowed values:
autotransparent
Optionalauto