This API can enlarge images from 64x64 up to 1 million pixels to 4K resolution with one click. It is characterized by enlarging images by approximately 20-40 times while maintaining the original image quality, and sometimes it can even enhance the image quality. It is best suited for handling images with severe quality loss and is not recommended for photos above 1 million pixels, as it will involve a lot of reimagining (controlled according to the creative ratio).For details, please view: https://platform.stability.ai/docs/api-reference#tag/Upscale/paths/~1v2beta~1stable-image~1upscale~1creative/postPrice: 0.5 PTC / call
请求参数
Header 参数
Body 参数multipart/form-data
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.302.ai/sd/v2beta/stable-image/upscale/creative' \
--header'Content-Type: multipart/form-data' \
--form'image=@""' \
--form'prompt=""'