
jyoung105/apisr
Public
2
runs
Run jyoung105/apisr 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 |
---|---|---|---|
image |
string
|
Input image to upscale
|
|
model |
None
|
4xGRL
|
Choose the upscaling model
|
crop_for_4x |
boolean
|
True
|
Automatically crop image to match 4x size requirements (recommended)
|
output_format |
None
|
png
|
Output image format
|
output_quality |
integer
|
95
Min: 1 Max: 100 |
Output image quality (only applies to jpg and webp)
|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Input image to upscale"
},
"model": {
"enum": [
"2xRRDB",
"4xGRL"
],
"type": "string",
"title": "model",
"description": "Choose the upscaling model",
"default": "4xGRL",
"x-order": 1
},
"crop_for_4x": {
"type": "boolean",
"title": "Crop For 4X",
"default": true,
"x-order": 2,
"description": "Automatically crop image to match 4x size requirements (recommended)"
},
"output_format": {
"enum": [
"png",
"jpg",
"webp"
],
"type": "string",
"title": "output_format",
"description": "Output image format",
"default": "png",
"x-order": 3
},
"output_quality": {
"type": "integer",
"title": "Output Quality",
"default": 95,
"maximum": 100,
"minimum": 1,
"x-order": 4,
"description": "Output image quality (only applies to jpg and webp)"
}
}
}
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"
}