[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"spec-upscaler":3},{"host":4,"swagger":5,"info":6,"basePath":10,"schemes":11,"consumes":13,"produces":15,"securityDefinitions":16,"security":25,"tags":29,"paths":33,"definitions":233},"api-upscaler.icons8.com","2.0",{"version":7,"title":8,"description":9},"1.0.0","Upscaler API","This is a public version of the Upscaler API","\u002Fapi",[12],"https",[14],"application\u002Fjson",[14],{"api-key":17,"token":22},{"type":18,"name":19,"in":20,"description":21},"apiKey","Api-Key","header","Your key is on the [API keys page](\u002Fapi-keys).",{"type":18,"name":23,"in":24,"description":21},"token","query",[26],{"api-key":27,"token":28},[],[],[30],{"name":31,"description":32},"Enhance images","Operations about enhance images",{"\u002Fv1\u002Fenhance_images":34,"\u002Fv1\u002Fenhance_image":90,"\u002Fv1\u002Fenhance_image\u002F{id}":149},{"get":35},{"description":36,"summary":37,"operationId":38,"tags":39,"parameters":40,"responses":53},"Lists the images you sent through this API for upscaling, newest first, page by page. Each image shows its state and, when upscaling is finished, the upscaled version.","List your upscaled images","getV1EnhanceImages",[31],[41,48],{"name":42,"default":43,"minimum":43,"in":24,"description":44,"required":45,"type":46,"format":47},"page",1,"Page number",false,"integer","int32",{"name":49,"default":50,"minimum":43,"maximum":51,"in":24,"description":52,"required":45,"type":46,"format":47},"perPage",10,100,"Number of results per page. Max: 100",{"200":54,"401":83},{"description":55,"schema":56,"examples":58},"Response",{"$ref":57},"#\u002Fdefinitions\u002FMain_BatchImages",{"application\u002Fjson":59},{"total":60,"images":61},3,[62,72,76],{"id":63,"enhancement":64,"source":65,"enhanced":69,"status":70,"statusName":71},"5f6cea5d1744ceffd92c7a28",2,{"width":66,"height":66,"type":67,"url":68},1024,".jpg","https:\u002F\u002Fimages-upscaler.icons8.com\u002F584\u002F32f5e562-bbbb-4d94-937a-f287df4eeb7f.jpg",null,0,"queue",{"id":73,"enhancement":64,"source":74,"enhanced":69,"status":43,"statusName":75},"5f6c73741744cea26cb2e5f0",{"width":66,"height":66,"type":67,"url":68},"processing",{"id":77,"enhancement":64,"source":78,"enhanced":79,"status":64,"statusName":82},"5f6c73731744cea26cb2e5ec",{"width":66,"height":66,"type":67,"url":68},{"width":80,"height":80,"type":67,"url":81},2048,"https:\u002F\u002Fimages-upscaler.icons8.com\u002F143\u002Fc5e90f18-a2ae-4084-be5d-875a255f045b.jpg","ready",{"description":84,"schema":85,"examples":87},"Unauthorized error",{"$ref":86},"#\u002Fdefinitions\u002FAPIError",{"application\u002Fjson":88},{"error":89},"Unauthorized",{"get":91,"post":116},{"description":92,"summary":93,"operationId":94,"tags":95,"parameters":96,"responses":102},"Upscales an image that the service downloads from a link to twice its size. The link must lead to a JPEG, PNG or WebP image. The work runs in the background, so the answer comes back at once, without a result. Check the image until it is ready.","Upscale an image from a url","getV1EnhanceImage",[31],[97],{"name":98,"in":24,"required":99,"type":100,"pattern":101},"image_url",true,"string","(http(s?):)([\u002F|.\\w\\s:-])*\\.(?:jpg|jpeg|png|webp)",{"200":103,"401":109,"422":113},{"description":55,"schema":104,"examples":106},{"$ref":105},"#\u002Fdefinitions\u002FMain_BatchImage",{"application\u002Fjson":107},{"id":63,"enhancement":64,"source":108,"enhanced":69,"status":70,"statusName":71},{"width":66,"height":66,"type":67,"url":68},{"description":84,"schema":110,"examples":111},{"$ref":86},{"application\u002Fjson":112},{"error":89},{"description":114,"schema":115},"Unprocessable error",{"$ref":86},{"description":117,"summary":118,"operationId":119,"tags":120,"consumes":121,"parameters":123,"responses":137},"Upscales a JPEG, PNG or WebP file that you upload. The work runs in the background, so the answer comes back at once, without a result. Check the image until it is ready.","Upscale an uploaded image","postV1EnhanceImage",[31],[122],"multipart\u002Fform-data",[124,129,134],{"name":125,"description":126,"in":127,"required":99,"type":128},"image","File in jpeg, png or webp format","formData","file",{"name":130,"description":131,"in":127,"required":45,"type":46,"format":47,"enum":132,"default":64},"enhance_factor","Hidden Parameter",[64,133],4,{"name":135,"description":131,"in":127,"required":45,"type":136,"default":45},"optimize_size","boolean",{"201":138,"401":143,"422":147},{"description":55,"schema":139,"examples":140},{"$ref":105},{"application\u002Fjson":141},{"id":63,"enhancement":64,"source":142,"enhanced":69,"status":70,"statusName":71},{"width":66,"height":66,"type":67,"url":68},{"description":84,"schema":144,"examples":145},{"$ref":86},{"application\u002Fjson":146},{"error":89},{"description":114,"schema":148},{"$ref":86},{"get":150,"post":178,"delete":205},{"description":151,"summary":152,"operationId":153,"tags":154,"parameters":155,"responses":161},"Shows the state of an image and, when upscaling is finished, the upscaled version. An image waits in the queue, then runs, then ends as ready, as max enhanced when it has reached the largest size the service makes, or as an error. On request, the answer also carries a copy of the result with a watermark. Only the images you sent through this API are found.","Get an upscaled image","getV1EnhanceImageId",[31],[156,159],{"name":157,"in":158,"required":99,"type":100},"id","path",{"name":160,"in":24,"required":45,"type":136,"default":45},"with_watermark",{"200":162,"401":168,"404":172},{"description":55,"schema":163,"examples":164},{"$ref":105},{"application\u002Fjson":165},{"id":63,"enhancement":64,"source":166,"enhanced":167,"status":64,"statusName":82},{"width":66,"height":66,"type":67,"url":68},{"width":80,"height":80,"type":67,"url":81},{"description":84,"schema":169,"examples":170},{"$ref":86},{"application\u002Fjson":171},{"error":89},{"description":173,"schema":174,"examples":175},"Not found error",{"$ref":86},{"application\u002Fjson":176},{"error":177},"Image not found",{"description":179,"summary":180,"operationId":181,"tags":182,"parameters":183,"responses":185},"Upscales an image once more, starting from its latest upscaled version, so each pass makes it larger. The pass runs in the background; until it is finished, the image still shows the previous result. An image that has reached 7680 pixels on a side cannot be upscaled again.","Upscale an image again","postV1EnhanceImageId",[31],[184],{"name":157,"in":158,"required":99,"type":100},{"201":186,"401":195,"404":199,"422":203},{"description":55,"schema":187,"examples":188},{"$ref":105},{"application\u002Fjson":189},{"id":63,"enhancement":133,"source":190,"enhanced":191,"status":193,"statusName":194},{"width":66,"height":66,"type":67,"url":68},{"width":192,"height":192,"type":67,"url":81},3000,5,"maxEnhanced",{"description":84,"schema":196,"examples":197},{"$ref":86},{"application\u002Fjson":198},{"error":89},{"description":173,"schema":200,"examples":201},{"$ref":86},{"application\u002Fjson":202},{"error":177},{"description":114,"schema":204},{"$ref":86},{"description":206,"summary":207,"operationId":208,"tags":209,"parameters":210,"responses":212},"Deletes an image together with its original and its upscaled version. Only an image in the ready state can be deleted. After the delete, the image can no longer be found.","Delete an upscaled image","deleteV1EnhanceImageId",[31],[211],{"name":157,"in":158,"required":99,"type":100},{"200":213,"401":219,"403":223,"404":229},{"description":55,"schema":214,"examples":217},{"properties":215},{"success":216},{"type":136},{"application\u002Fjson":218},{"success":99},{"description":84,"schema":220,"examples":221},{"$ref":86},{"application\u002Fjson":222},{"error":89},{"description":224,"schema":225,"examples":226},"Forbidden error",{"$ref":86},{"application\u002Fjson":227},{"error":228},"Image not ready",{"description":173,"schema":230,"examples":231},{"$ref":86},{"application\u002Fjson":232},{"error":177},{"Main_BatchImage":234,"Main_BatchImages":258,"AssetWithWatermark":267,"Main_Asset":280,"APIError":290},{"type":235,"required":236,"properties":242},"object",[157,237,238,239,240,241],"filename","enhancement","source","status","statusName",{"id":243,"filename":244,"enhancement":245,"source":246,"enhanced":248,"enhanced_withwm":249,"status":252,"statusName":254},{"type":100},{"type":100},{"type":46,"format":47},{"$ref":247},"#\u002Fdefinitions\u002FMain_Asset",{"$ref":247},{"description":250,"$ref":251},"Only present when with_watermark is set","#\u002Fdefinitions\u002FAssetWithWatermark",{"type":46,"format":47,"description":253},"0 queue, 1 processing, 2 ready, 3 overuse, 4 error, 5 max_enhanced",{"type":100,"enum":255},[71,75,82,256,257,194],"overuse","error",{"type":235,"required":259,"properties":262},[260,261],"total","images",{"total":263,"images":264},{"type":46,"format":47},{"type":265,"items":266},"array",{"$ref":105},{"type":235,"required":268,"properties":274},[269,270,271,272,273],"width","height","type","url","thumb_url",{"width":275,"height":276,"type":277,"url":278,"thumb_url":279},{"type":46,"format":47},{"type":46,"format":47},{"type":100},{"type":100},{"type":100},{"type":235,"required":281,"properties":283},[269,270,271,272,273,282],"preview_url",{"width":284,"height":285,"type":286,"url":287,"thumb_url":288,"preview_url":289},{"type":46,"format":47},{"type":46,"format":47},{"type":100},{"type":100},{"type":100},{"type":100},{"type":235,"required":291,"properties":292},[257],{"error":293},{"type":100}]