Skip to main content
Generate images from text prompts using models like FLUX.1, FLUX.2, and others.

Endpoint

Basic Usage

Parameters

Parameters vary by model. Common parameters include:

Model-Specific Parameters

Some models support additional inputs:
  • FLUX Kontext models: Accept input_image for image editing
  • FLUX Canny: Requires control_image for edge-guided generation
  • FLUX.2 Pro: Accepts up to 8 input_images for reference-based generation
  • FLUX Dev/Krea: Accept image for img2img mode with prompt_strength control
Check the Playground to see the exact parameters available for each model.

Response

The response includes either a url to the generated image or b64_json base64-encoded image data.

Available Image Models