Infer

Body Params
string
required
length ≤ 10000

What you wish to see in the output image. A strong, descriptive prompt that clearly defines elements, colors, and subjects will lead to better results.

integer
enum
Defaults to 1024

Height of the image to generate, in pixels. Only height=1024 is supported

integer
enum
Defaults to 1024

Width of the image to generate, in pixels. Only width=1024 is supported

number
≤ 9
Defaults to 5

How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt).

string
enum
Defaults to base

NIM inference mode. If canny or depth is selected an image input is required

Allowed:
string | null

An image input with a depth map or canny edges used if the mode is depth or canny respectively. Preview API NIM supports only a predefined set of images. The image should be in form of data:image/png;example_id,{example_id} with example_id in a range [0,3].

integer
1 to 1
Defaults to 1

Number of images to generate. Only samples=1 is supported

integer
≥ 0
Defaults to 0

The seed which governs generation. Changing the seed with other inputs fixed results in different outputs. (Use 0 for a random seed)

integer
5 to 100
Defaults to 50

The number of diffusion steps applied to generate an output image.

Responses

Language
Credentials
Bearer
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
country_code