Simple and flexible image generation API

Save time and money. Focus on building next-gen AI experiences rather than on maintaining your own scalable GPU infrastructure.

  • 🚀 Instant Integration as simple as a few lines of code.
  • đź’ˇ Lightning-Fast Responses powered by premium GPUs.
  • đź’° Top-Tier Services at the lowest prices
curl \
-X POST https://api.getimg.ai/v1/flux-schnell/text-to-image \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"prompt":"astronaut riding a horse on mars"}'
AI generated output

Easy-to-use API endpoints.
Powering 1M+ image generations daily.

Stable Diffusion XL

Stable Diffusion XL

High quality text to image generations for incredibly low price.

getimg.ai Essential

getimg.ai Essential

Highest quality outputs with the minimal configuration required.

FLUX [schnell]

FLUX [schnell]

Fast and high quality text to image generation.

Scalable image generation API for your business

From startups to enterprises, our image generation API is designed to grow with you. The pay-as-you-go model allows you to scale up seamlessly as your needs expand.

getimg.ai API

More than just a basic FLUX or Stable Diffusion API

Access a suite of powerful image manipulation tools through our Essential, FLUX and Stable Diffusion API. From Text-to-Image generation to Image-to-Image transformations, inpainting, and upscaling, we've got you covered.

curl --request POST \
--url https://api.getimg.ai/v1/enhancements/upscale \
--header 'authorization: Bearer $ACCESS_TOKEN' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"image": "base64 encoded image"}'

Pay only for what you use

Total price per image is based on the amount of compute required to fulfill the request.

FLUX.1 [schnell]

$0.0006 / 1M pixelsteps

/v1/flux-schnell/text-to-image
SizePrice
1024Ă—1024$0.00252 / image
1280Ă—720, 720Ă—1280$0.00221 / image

Essential V2

$0.015 / 1M pixelsteps

/v1/essential-v2/text-to-image
SizePrice
1536Ă—1536$0.035 / image
1152Ă—1440, 1440Ă—1152$0.025 / image
1152Ă—1728, 1728Ă—1152$0.03 / image
1152Ă—2016, 2016Ă—1152$0.035 / image

Stable Diffusion XL

$0.000075 / 1M pixelsteps

/v1/stable-diffusion-xl/text-to-image
/v1/stable-diffusion-xl/image-to-image
/v1/stable-diffusion-xl/inpainting
/v1/stable-diffusion-xl/ip-adapter
SizePrice
768Ă—768$0.00018 / image
1024Ă—1024$0.00031 / image

Frequently asked questions

What can you use image generation API for?

getimg.ai’s image generation API is a versatile tool that opens up a world of creative possibilities. For example, with our Text-to-Image API, you can effortlessly create unique artwork, design eye-catching marketing materials, or produce engaging visual content for social media.

But that’s just the beginning. Depending on your chosen model, you can access advanced features like inpainting (filling in parts of an image) and upscaling (enhancing the resolution of images). These features make our API invaluable for both artistic endeavors and business applications.

How to get Stable Diffusion API key?

It only takes a few moments to obtain an API key for popular Stable Diffusion models, like Stable Diffusion XL and v1.5 (as well as our own Essential styles). First, navigate to the API section on getimg.ai’s top menu, and open the Dashboard. Sign up or log in if you already have an account.

After logging into the Dashboard, go to the “API keys” segment and click the “Create new key” button. You can name it if you wish. Then, you’ll see your key for the first and last time—save it in a secure location.

Is Stable Diffusion API free?

While not free, our pricing model for both Essential and Stable Diffusion APIs is designed to be flexible and cost-effective. We employ a usage-based system, meaning you only pay for the computational resources you actually use.

This pay-as-you-go approach ensures that our API remains accessible for projects of all sizes, from small experiments to large-scale applications.

How to use Stable Diffusion API?

Using our Stable Diffusion API is a breeze. First, obtain an API key by signing up for an API account on getimg.ai and creating your key. Once you have it, top-up your balance and start making API requests.

This API is designed to be intuitive and predictable, allowing for seamless integration into a wide range of applications. Whether you’re a seasoned developer or just starting out, getimg.ai’s user-friendly API enables you to quickly harness the power of AI-generated images with minimal setup time.