Infer

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
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.

null
required

An image input to edit. 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,2].

integer
enum
Defaults to 1024

The image height in pixels. Supported heights=[1568, 1504, 1456, 1392, 1328, 1248, 1184, 1104, 1024, 944, 880, 832, 800, 752, 720, 688, 672].

integer
enum
Defaults to 1024

The image width in pixels. Supported widths=[672, 688, 720, 752, 800, 832, 880, 944, 1024, 1104, 1184, 1248, 1328, 1392, 1456, 1504, 1568].

number
≤ 9
Defaults to 3.5

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

string
enum
Defaults to match_input_image

Aspect ratio of the image to generate.

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
20 to 50
Defaults to 30

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

Responses

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