Skip to content

Width/Height parameters for civitai.image.create are limited to 1024, Civitai UI allows otherwise #8

@roytiburcio

Description

@roytiburcio

For civitai.image.create(..), both width and height are limited to 1024. A reasonable default, but it prevents full SDXL in landscape (1216x832) or portrait (832x1216) mode. These dimensions are available on civitai.com's UI.

I was able to work around it locally by modifying civitai/schemas/__init__py:30 (params_validator), and the service accepted me generating a 832x1216 portrait image.

Happy to send a PR if I could get some clarity on the actual intent of the limitation, e.g.: are you aiming for a single dimension max of 1024? or a max of 1024*1024 pixels for the total image? other?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions