You're looking at a specific version of this model. Jump to the model overview.
prunaai /ernie-image:d5bfa498
Input schema
The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| prompt |
string
|
Text prompt for image generation
|
|
| width |
integer
|
1024
Min: 64 Max: 2048 |
Width of the generated image. Best results come from the model-card recommended sizes.
|
| height |
integer
|
1024
Min: 64 Max: 2048 |
Height of the generated image. Best results come from the model-card recommended sizes.
|
| num_inference_steps |
integer
|
50
Min: 1 Max: 100 |
Number of inference steps.
|
| guidance_scale |
number
|
4
Max: 20 |
Classifier-free guidance scale.
|
| use_pe |
boolean
|
True
|
Enable the prompt enhancer recommended by the model card.
|
| seed |
integer
|
Random seed. Set for reproducible generation.
|
|
| num_outputs |
integer
|
1
Min: 1 Max: 4 |
Number of output images to generate.
|
| output_format |
None
|
jpg
|
Format of the output image.
|
| output_quality |
integer
|
80
Max: 100 |
Quality when saving the output image, from 0 to 100.
|
Output schema
The shape of the response you’ll get when you run this model with an API.
{'items': {'format': 'uri', 'type': 'string'},
'title': 'Output',
'type': 'array'}