Image

Given a prompt and/or an input image, the model will generate a new image.

Create image

Create image with URL

Parameters

ParameterTypeRequiredDescription

prompt

string

required

A description of the desired images. Maximum length varies by model.

model

string

required

The model to use for image generation.

steps

integer

Defaults to 20

Number of generation steps.

seed

integer

optional

Seed used for generation. Can be used to reproduce image generations.

n

integer

Defaults to 1

Number of image results to generate.

height

integer

Defaults to 1024

Height of the image to generate in number of pixels.

width

integer

Defaults to 1024

Width of the image to generate in number of pixels.

negative_prompt

string

optional

The prompt or prompts not to guide the image generation.

Last updated