Announcing Our Public API

Brandon Berhent

We’ve been working on a public API so that other developers can integrate Stablecog’s AI image models and leverage Stablecog’s infrastructure to power txt2img in their own applications. It’s been highly requested, and it’s finally here :)

A Simple API

We wanted the API to be as simple and easy to use as possible, and we think that we’ve achieved it. Developers can generate and upscale images with all of the same features as Stablecog’s web interface. There are additional APIs for retrieving the available settings for various models, querying images with a variety of filters, and more.

Visit Documentation
Stablecog API Documentation

Getting Started

The first step is to create an API token (you may create up to 10), this can easily be done from the account page.

Create API Keys
Stablecog API Keys

We have extensive documentation on how to use these APIs, as well as an OpenAPI specification that allows developers to generate clients in their programming language of choice - or import the collection to a tool like Postman to experiment with the APIs.

Pricing

To start, pricing is the exact same for the public API and the web interface. The same rules apply to the public API as they do the interface - such as the limits on parallel generations and public/private images.

Check Pricing
Stablecog API Pricing

If your application has additional requirements than what’s available in our standard subscriptions and credit packs feel free to email us and we will come up with a solution that fits your needs.

Other Details

You can now view your account’s usage on the account page. This shows your history for both API usage and web application usage.

View Your Usage
Stablecog Account Usage

Reach Out

If you have any questions about the API, or if you have any feature requests, feel free to join our Discord. We are happy to help.

Also, if you build something cool with the API, we’d love to hear about it! We have a #dev-showcase channel on Discord. You can also let us know through Twitter.

Join Discord

What’s Coming Next?

With the public API, we will look into creating clients in various programming languages to make integration with Stablecog even easier for developers.

We also have the intention of adding other types of AI models to Stablecog besides image generation, such as text to speech models and large language models.

Thanks for reading!

Back to Blog

Read More

Create amazing art in seconds with AI.

Start Generating

© 2023 Stablecog, Inc.