Skip to main content

BenchImageGenerationTaskParams

promptPrompt (string)required
background object
anyOf
string
modelModel (string)required
moderation object
anyOf
string
n object
anyOf
integer
output_compression object
anyOf
integer
output_formatOutput Format (string)

Possible values: [png, jpeg, webp]

Default value: png
partial_images object
anyOf
integer
quality object
anyOf
string

Possible values: [high, medium, low]

response_format object
anyOf
string

Possible values: [url, b64_json]

sizeSize (string)

Possible values: [auto, 512x512, 768x768, 1024x768, 768x1024, 1024x1024, 1024x1536, 1536x1024]

Default value: auto
stream object
anyOf
boolean
style object
anyOf
string
user object
anyOf
string
advanced_params object
anyOf
seed object
anyOf
integer

Possible values: >= 0

num_inference_steps object
anyOf
integer

Possible values: >= 1 and <= 100

guidance object
anyOf
number

Possible values: >= 1 and <= 20

negative_prompt object
anyOf
string
num_sync_steps object
anyOf
integer

Possible values: >= 1 and <= 100

benchBench (boolean)
Default value: true
BenchImageGenerationTaskParams
{
"prompt": "string",
"background": "string",
"model": "string",
"moderation": "string",
"n": 0,
"output_compression": 0,
"output_format": "png",
"partial_images": 0,
"quality": "high",
"response_format": "url",
"size": "auto",
"stream": true,
"style": "string",
"user": "string",
"advanced_params": {
"seed": 0,
"num_inference_steps": 0,
"guidance": 0,
"negative_prompt": "string",
"num_sync_steps": 0
},
"bench": true
}