Create Upscale

POST

/v1/image/upscale/create

This endpoint is for upscaling images. You can upscale the result of your generations or an arbitrary image.

Request Example

Below is an example for an upscale. You can just send an output ID that belongs to your account or an arbitrary image url and the system will use the defaults for the rest.

Response

{

"outputs": [

{

"id": "a9c45ba2-af2a-4dd5-8d45-522d97c494bd",

"url": "https://b.stablecog.com/ad5120b5-7be4-4d7a-9865-91f1094b7a81.jpeg"

}

],

"remaining_credits": 1391,

"settings": {

"model_id": "14c9c5a4-33a8-4aed-a648-ee8510ae65b2",

"input": "daa383dc-42f7-4137-92b6-4087af7b4aab"

}

}

Request Headers

Authorization required

string

Send your API key as the value of this header in the following form:
Authorization: Bearer <YOUR_STABLECOG_API_KEY>.

Request Body

input required

string

The input for the upscale. An output ID belonging to your account or any image URL.
Here are the constraints for the input image:
  • Maximum width: 1024.
  • Maximum height: 1024.
  • Formats: JPG, PNG, WebP.

model_id

(enum) TUpscaleModelID

The ID of the upscale model.

Response Body

outputs

array of TOutput

Upscaled verions of the images.

remaining_credits

float

Your remaining credits after this request.

settings

(object) TUpscaleSettings

Settings for the upscale. Useful if you are using the defaults and want to know what they are.

© 2024 Stablecog, Inc.