Image Generation
Image Generation
Endpoint: /images/api/v1/generations
/images/api/v1/generations
Description: Generates images based on text prompts using the configured image generation engine (OpenAI DALL-E, ComfyUI, or Automatic1111).
Authentication: Required (JWT token or Api Key)
HTTP Method: POST
Request Format:
Key Request Parameters:
model
string
No
Model to use (if different from default)
prompt
string
Yes
Text description of the desired image
size
string
No
Size of generated image (e.g., "512x512")
n
integer
No
Number of images to generate (default: 1)
negative_prompt
string
No
Characteristics to avoid in the image
Response Format:
Key Response Fields:
url
string
Path to access the generated image
Response Codes:
200: Successfully generated image(s)
400: Error in image generation or invalid parameters
Note: Image generation consumes user credits based on image size and quantity.
Last updated