Infer

Body Params
string
enum
Defaults to Image Generation

NIM inference mode. If Image Editing is selected an image input is required

Allowed:
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
0 to 0
Defaults to 0

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

null

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
1 to 4
Defaults to 4

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