Image models on Replicate do not agree on how they take a size. imgen does not keep a list of models: it reads the input schema of the model you name and sends exact pixels, the closest allowed aspect ratio, or plain width and height, whichever the model accepts.
Then it creates the prediction, polls until the image is ready and saves it. With--webp, models that can deliver WebP do so directly; for all others imgen converts the download locally.



