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
Name | Type | Description | Required | Default |
---|---|---|---|---|
prompt | string | Text description of the image to generate | Required | - |
dimensions | string | Dimensions of the generated image Allowed values: SquareLandscapePortrait | Optional | Square |
model | string | AI model to use for generation (Pro feature only) Allowed values: BasicPremium | Optional | Basic |
background | string | Background style for the generated image (Pro Feature; Requires AI model to be "Premium") Allowed values: autotransparent | Optional | auto |