v1

latestOpenAPI 3.0.3raw.githubusercontent.com2023-03-2673842.0 KB
v1/generation

image-to-image/upscale

Create a higher resolution version of an input image.

This operation outputs an image with a maximum pixel count of 4,194,304. This is equivalent to dimensions such as 2048x2048 and 4096x1024.

By default, the input image will be upscaled by a factor of 2. For additional control over the output dimensions, a width or height parameter may be specified.

post/generation/{engine_id}/image-to-image/upscale

Path parameters

engine_idstring required

Headers

Accept'application/json' | 'image/png'

The format of the response. Leave blank for JSON, or set to 'image/png' for a PNG image.

Organizationstring

Allows for requests to be scoped to an organization other than the user's default. If not provided, the user's default organization will be used.

Response

OK response.

base64string

Image encoded in base64

finishReason'SUCCESS' | 'ERROR' | 'CONTENT_FILTERED'
seednumber

The seed associated with this image

Example response

[
  {
    "base64": "Sed corporis modi et.",
    "finishReason": "CONTENT_FILTERED",
    "seed": 1229191277
  }
]