An indispensable tool for improving the quality of images generated by Stable Diffusion.
This is an asynchronous API; only the task_id will be returned. You should use the task_id to request the Task Result API to retrieve the image generation results.
Control the data content of the mock event. When set to TASK_STATUS_SUCCEED, you’ll receive a normal response; when set to TASK_STATUS_FAILED, you’ll receive an error response.
Enum: TASK_STATUS_SUCCEED, TASK_STATUS_FAILED
Customer storage settings for saving the generated outputs. By default, the generated outputs will be saved to Novita AI Storage temporarily and privately.
Set this option to True to save the generated outputs directly to the specified path without creating any additional directory hierarchy. If set to False, Novita AI will create an additional directory in the path to save the generated outputs. The default is False.
0: Explicit Nudity, Explicit Sexual Activity, Sex Toys; Hate Symbols. 1: Explicit Nudity, Explicit Sexual Activity, Sex Toys; Hate Symbols; Non-Explicit Nudity, Obstructed Intimate Parts, Kissing on the Lips. 2: Explicit Nudity, Explicit Sexual Activity, Sex Toys; Hate Symbols; Non-Explicit Nudity, Obstructed Intimate Parts, Kissing on the Lips; Female Swimwear or Underwear, Male Swimwear or Underwear.
Enum: 0, 1, 2
curl--location--request POST 'https://api.novita.ai/v3/async/upscale'\--header'Authorization: Bearer {{API Key}}'\--header'Content-Type: application/json'\--data-raw '{"extra":{"response_image_type":"jpeg"},"request":{"model_name":"RealESRGAN_x4plus_anime_6B","scale_factor":2,"image_base64":"{{base64 encoded image}}"}}'
HTTP status codes in the 2xx range indicate that the request has been successfully accepted; code 400 indicates a request parameter error, while status codes in the 5xx range indicate internal server errors.
HTTP status codes in the 2xx range indicate that the request has been successfully accepted, while status codes in the 5xx range indicate internal server errors.
You can find the image URLs in the imgs field of the response.