Documentation Index
Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
Use this file to discover all available pages before exploring further.
Request
Make aPOST request to below endpoint and pass the required parameters in the request body.
curl
Body
json
Body Attributes
Your API Key used for request authorization.
Text prompt describing the image you want to generate.
Image URL (or array of URLs) to use as reference images for the generation.
Items you don’t want in the image.
Width of the generated image. Must be between 1024 and 2048 and divisible by 32. Defaults to reference image size.
Height of the generated image. Must be between 1024 and 2048 and divisible by 32. Defaults to reference image size.
Seed for reproducible generation. 0 triggers a random seed.
Number of images to return. Maximum: 4.
Starting noise scale for the generation process.
Ending noise scale for the generation process.
Noise clip standard deviation.
Keep the original aspect ratio of the reference image. Only applies when using a single reference image. Values: “yes” or “no”.
Whether to add a watermark to the generated image. Values: “yes” or “no”.
Store in temporary directory. Values: “yes” or “no”.
Return image as base64 encoded text. Values: “yes” or “no”.
A URL to receive a POST API call once the image generation is complete.
A unique ID used in the webhook response to identify the request.

