Skip to main content

Options

apiToken
string
required
The API token for Replicate.com.
model
string
required
The model to use, e.g. black-forest-labs/flux-dev.
guidance
number
Guidance parameter for image generation.
num_inference_steps
integer
Number of inference steps for image generation.
costs
number
The cost per image.

Arguments

prompt
string
required
The prompt for the LLM to fill the argument for image generation.Example:
The prompt for image generation
aspect_ratio
string
The aspect ratio of the image.Example:
The aspect ratio, e.g. 1:1 or 16:9
quality
integer
The quality level.Example:
The quality of the image in percent. (e.g. 80 or 100)
megapixels
string
The desired number of megapixels.Example:
The megapixels of the image. One of 1 or 0.25
format
string
The image format. Possible values: webp, jpg, pngExample:
The file format of the image. One of "jpg", "webp" or "png". Default is "webp"