Add AI technology to your app, website, or workflow with the Hotpot SaaS API.
Self-hosted solutions are offered to enterprises requiring maximum privacy and architectural control.
API access requires payment.
Contact us for API access.
Add AI technology to your app, website, or workflow with the Hotpot SaaS API.
Self-hosted solutions are offered to enterprises requiring maximum privacy and architectural control.
API access requires payment.
Contact us for API access.
These API endpoints power the Hotpot.ai AI services and graphic platform. View the Tools page for AI product demos.
View code examples on our Github repo.
The Hotpot API is designed for enterprise-level scalability and reliability, suitable for bursty workloads or sustained high-volume traffic.
To ensure we adopt best practices and state-of-the-art technologies, Hotpot is proud to partner with leaders in cloud infrastructure and machine learning.
All API requests require authentication. To authenticate to the API, pass the Authorization HTTP header with the valid API key on each request. You can view and manage API credentials from your account.
Authorization: yMHw4UidZM1Hha82AZtMjI50bYCfC3sdX7vvB
https://api.hotpot.ai/
View the number of API credits left in the X-API-Credits-Left HTTP response header.
The Hotpot API uses standard HTTP status codes to communicate the result of API operations.
200 400 401 Authorization HTTP header. 403 Authorization header is invalid.404 429 500Create art and images with AI. Describe ideas in a few words, and watch our AI bring it to life.
POST
/make-art
curl -H 'Authorization: API_KEY_HERE' \
-F 'inputText=A pig in the style of Starry Night by Vincent Van Gogh' \
-F 'styleId=23' \
https://api.hotpot.ai/make-art
Create personalized art with AI. Our deep learning model uses Neural Style Transfer to offer arbitrary artistic style transfer, allowing you to extract the style from one image and apply it to another. Most image style transfer models are trained on fixed, pre-defined styles. Ours is designed for flexibility and can accommodate styles not encountered during the training phase.
POST
/remix-art
true or false. true if you want the result to resemble the base image (contentImage). Setting it to false will result in a more cartoonish image.
curl -H 'Authorization: API_KEY_HERE' \
-F 'contentImage=@/Users/porky/pig.jpg' \
-F 'styleImage=@/Users/porky/funky.jpg' \
-F 'focusContent=true' \
-o '/Users/porky/funky-pig.jpg' \
https://api.hotpot.ai/remix-art
Remove the background from images with AI.
POST
/remove-background
true or false. jpg, png, or webp. jpg or webp.
10-100. fileType is set to jpg or webp, the API uses a compression level of 85, which can be customized with this parameter. This value is ignored if fileType is not jpg or webp.
curl -H 'Authorization: API_KEY_HERE' \
-F 'image=@/Users/porky/pig.jpg' \
-o '/Users/porky/large-pig.jpg' \
https://api.hotpot.ai/remove-background
Remove people, animals, trees, and other objects from images in seconds. Our AI is designed to recognize people, trees, and other common objects, naturally erasing them from the picture and leaving behind only the photograph you want.
POST
/remove-object
curl -H 'Authorization: API_KEY_HERE' \
-F 'image=@/Users/porky/pig.jpg' \
-F 'mask=@/Users/porky/mask.jpg' \
-o '/Users/porky/funky-pig.jpg' \
https://api.hotpot.ai/remove-object
Upscale photos, arts, game assets, textures, and more in seconds. Our AI can upscale images without sacrifing quality and is optimized for people, art, and products.
POST
/upscale-photo
2, 4, 8, 10. png, jpg. png.
jpg or webp.
curl -H 'Authorization: API_KEY_HERE' \
-F 'image=@/Users/porky/pig.jpg' \
-F 'sizeFactor=2' \
-o '/Users/porky/big-pig.jpg' \
https://api.hotpot.ai/upscale-photo
Colorize black and white pictures with AI.
POST
/colorize-picture
0 - 50. curl -H 'Authorization: API_KEY_HERE' \
-F 'image=@/Users/porky/pig.jpg' \
-F 'renderFactor=20' \
-o '/Users/porky/large-pig.jpg' \
https://api.hotpot.ai/colorize-picture
Restore pictures with AI by removing scratches, sharpening colors, and enhancing faces. Repairs color and black & white photos.
POST
/restore-picture
true or false. curl -H 'Authorization: API_KEY_HERE' \
-F 'image=@/Users/porky/pig.jpg' \
-F 'withScratch=true' \
-o '/Users/porky/restored-pig.jpg' \
https://api.hotpot.ai/restore-picture
Stable Diffusion XL, enhanced with proprietary optimizations for improved quality and lower latency. Runs on Hotpot standard servers. See /art-generator for premium quality and to mimic Hotpot styles.
POST
/stable-diffusion-normal
curl -H 'Authorization: API_KEY_HERE' \
-F 'inputText=Happy pig on a mountain' \
-o '/Users/porky/funky-pig.jpg' \
https://api.hotpot.ai/stable-diffusion-normal
Enhanced version of /stable-diffusion-normal for even higher image quality and our lowest latency. Based on Stable Diffusion XL and runs on A100s. See /art-generator for maximum quality and to mimic Hotpot styles.
POST
/stable-diffusion-premium
curl -H 'Authorization: API_KEY_HERE' \
-F 'image=@/Users/porky/pig.jpg' \
-o '/Users/porky/funky-pig.jpg' \
https://api.hotpot.ai/stable-diffusion-premium
Stable Diffusion XL, optimized for the lowest possible cost.
POST
/stable-diffusion-budget
curl -H 'Authorization: API_KEY_HERE' \
-F 'image=@/Users/porky/pig.jpg' \
-o '/Users/porky/funky-pig.jpg' \
https://api.hotpot.ai/stable-diffusion-budget
Enhance and repair damaged faces with the latest technology. AI image generators and old photos often contain faces distorted in several ways: hazy colors, unnatural eyes, blurriness, scratches, and asymmetrical features. Our AI corrects these flaws in seconds, producing more natural images.
POST
/enhance-face
curl -H 'Authorization: API_KEY_HERE' \
-F 'image=@/Users/porky/pig.jpg' \
-o '/Users/porky/funky-pig.jpg' \
https://api.hotpot.ai/enhance-face
Generate color palettes or matching colors based on the given colors.
POST
/generate-color
curl -H 'Authorization: API_KEY_HERE' \
-H "Content-Type: application/json" \
--data '{"colorList": ["#4A86B3"]}' \
https://api.hotpot.ai/generate-color
Generate attractive and readable text colors, given a background color
POST
/text-color-generator
curl -H 'Authorization: API_KEY_HERE' \
-H "Content-Type: application/json" \
--data '{"backgroundColor": "#4A86B3"}' \
https://api.hotpot.ai/text-color-generator