usamaehsan/ernie-image-turbo-fast

ERNIE-Image-Turbo tuned for cost: FP8 + torch.compile + lean forward, 1-8 steps, optional hires refine

Public
52 runs

Run usamaehsan/ernie-image-turbo-fast with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

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
width
integer
1024

Min: 256

Max: 2048

Rounded down to a multiple of 16
height
integer
1024

Min: 256

Max: 2048

Rounded down to a multiple of 16
num_inference_steps
integer
2

Min: 1

Max: 8

Denoising steps (the draft's steps when hires_from is set)
sigma_shift
number
4

Min: 1

Max: 12

Flow-matching timestep shift; the model card uses 4
hires_from
integer
0

Max: 2048

0 = off. Otherwise draft at this long side, upscale, then refine at full size
hires_steps
integer
1

Min: 1

Max: 4

Full-size refine steps when hires_from is set
hires_strength
number
0.35

Min: 0.05

Max: 1

Noise level the refine restarts from (before shift)
hires_mode
None
latent
Upscale the draft in latent space or through a VAE decode/encode
seed
integer
Random seed
output_format
None
jpg
None
output_quality
integer
90

Min: 1

Max: 100

None
eager
boolean
False
Debug: skip torch.compile (compare speed)
dump_compile_cache
boolean
False
Debug: return the torch.compile cache instead of the image

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "string",
  "title": "Output",
  "format": "uri"
}