prompthunt
/
upscale
- Public
- 12 runs
Run prompthunt/upscale 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 |
---|---|---|---|
img |
string
|
Input
|
|
version |
string
(enum)
|
General - v3
Options: 4x ultrasharp, General - RealESRGANplus, General - v3, Anime - anime6B, AnimeVideo - v3 |
RealESRGAN version. Please see [Readme] below for more descriptions
|
scale |
number
|
2
|
Rescaling factor
|
face_enhance |
boolean
|
False
|
Enhance faces with GFPGAN. Note that it does not work for anime images/vidoes
|
tile |
integer
|
0
|
Tile size. Default is 0, that is no tile. When encountering the out-of-GPU-memory issue, please specify it, e.g., 400 or 200
|
{
"type": "object",
"title": "Input",
"required": [
"img"
],
"properties": {
"img": {
"type": "string",
"title": "Img",
"format": "uri",
"x-order": 0,
"description": "Input"
},
"tile": {
"type": "integer",
"title": "Tile",
"default": 0,
"x-order": 4,
"description": "Tile size. Default is 0, that is no tile. When encountering the out-of-GPU-memory issue, please specify it, e.g., 400 or 200"
},
"scale": {
"type": "number",
"title": "Scale",
"default": 2,
"x-order": 2,
"description": "Rescaling factor"
},
"version": {
"enum": [
"4x ultrasharp",
"General - RealESRGANplus",
"General - v3",
"Anime - anime6B",
"AnimeVideo - v3"
],
"type": "string",
"title": "version",
"description": "RealESRGAN version. Please see [Readme] below for more descriptions",
"default": "General - v3",
"x-order": 1
},
"face_enhance": {
"type": "boolean",
"title": "Face Enhance",
"default": false,
"x-order": 3,
"description": "Enhance faces with GFPGAN. Note that it does not work for anime images/vidoes"
}
}
}
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"
}