Text to Image
Create high quality images from text using the FLUX model.

lora_model parameter. To use multiple LoRAs, pass comma-separated LoRA model IDs to lora_model (e.g. "more_details,animie") and matching comma-separated weights to lora_strength (e.g. "0.8,0.6").Request
Make aPOST request to the endpoint below with the required parameters.
Parameters
flux for the FLUX model."more_details,animie".lora_model, e.g. "0.8,0.6".Request Example
Response
Success Response
When the image is generated successfully:Processing Response
For complex requests, you may receive a processing status:Error Response
Response Fields
Tips for Better Results
Write Detailed Prompts
Write Detailed Prompts
- Subject description
- Style (photorealistic, cinematic, etc.)
- Lighting details
- Camera settings (for photorealistic images)
Use Negative Prompts
Use Negative Prompts
Adjust Guidance Scale
Adjust Guidance Scale
- Lower (3-7): More creative, varied results
- Higher (8-15): More literal prompt adherence
- Default (7.5): Good balance for most use cases
Apply LoRA Models
Apply LoRA Models
lora_model parameter to apply a LoRA and fine-tune the style or subject of your generation:- Pass a single LoRA ID, e.g.
"more_details". - For multiple LoRAs, pass comma-separated IDs to
lora_modeland matching weights tolora_strength. - Tune
lora_strength(typically0.6–1.0) to control how strongly each LoRA is applied.
Related Endpoints
Image to Image
Fetch Results
Body
Your API Key used for request authorization.
A text description of what you want in the generated image.
The ID of the model to be used. It can be a public model or one you have trained.
Items you don't want in the image.
If true, the prompt will be enhanced for better results. Default is (true).
The width of the image in pixels.
x <= 1024The height of the image in pixels.
x <= 1024The number of images to be returned in response. Maximum is 4.
x <= 4The number of denoising steps. Values range from 1 to 20, and any value above 20 will be capped at 20.
1 <= x <= 20A checker for NSFW images. If detected, such images will be replaced by a blank image.
How to modify the image if NSFW content is found.
blur, sensitive_content_text, pixelate, black Seed for reproducible results. The same seed generates the same image. Pass null for a random number.
Scale for classifier-free guidance.
1 <= x <= 20Use Karras sigmas to generate images. Produces nice results.
Used in DPMSolverMultistepScheduler scheduler.
none, dpmsolver+++ Use a custom VAE for generating images. Default is null.
Strength of the LoRa model(s). If multiple LoRa models, provide comma-separated values (0.1 to 1).
LoRa model ID(s). Multiple LoRa models are supported; pass comma-separated values (e.g., 'contrast-fix,yae-miko-genshin').
Number of CLIP layers to skip.
1 <= x <= 8If true, response output is base64 string. Input images can also be base64.
If true, stores image in temporary storage (cleaned every 24 hours).
URL to receive a POST API call once image generation is complete.
Unique ID used in webhook response to identify the request.
IP adapter ID.
ip-adapter_sdxl, ip-adapter_sd15, ip-adapter-plus-face_sd15, ip-adapter-plus_sdxl_vit-h, ip-adapter-plus-face_sdxl_vit-h Scale for the IP adapter (0 to 1).
0 <= x <= 1Valid image URL for IP adapter.
Available schedulers for image generation.
DDPMScheduler, DDIMScheduler, PNDMScheduler, LMSDiscreteScheduler, EulerDiscreteScheduler, EulerAncestralDiscreteScheduler, DPMSolverMultistepScheduler, HeunDiscreteScheduler, KDPM2DiscreteScheduler, DPMSolverSinglestepScheduler, KDPM2AncestralDiscreteScheduler, UniPCMultistepScheduler, DDIMInverseScheduler, DEISMultistepScheduler, IPNDMScheduler, KarrasVeScheduler, ScoreSdeVeScheduler, LCMScheduler Allow multilingual prompts. Set to 'true' if using a language other than English.
Set to 'true' to upscale the image resolution two times (2x).
Enable high-resolution fix for generated images.
Response
Text-to-image generation response
- Option 1
- Option 2
- Option 3
Status of the image generation.
success Time taken to generate the image in seconds.
Unique identifier for the image generation request.
Array of generated image URLs.
Array of proxy image URLs.
Metadata about the image generation including all parameters used.
Indicates if NSFW content was detected in the generated image.
Status of the webhook notification.
Additional information or tips for the user.

