Getting Started With Stadio

This page will help you get started with Stadio

Authorization

In order to generate your bearer token, navigate to the API page. From there, click the big grey "Generate API key" button. Make sure to take down the bearer token now, as you'll only see it the one time (although you can always generate another).

Starting your server

To start your server, navigate to the "My Server" page. That big green "Start Server" button is all you need to get started. This is also the page where you'll add and load whatever models you need.

Hello World

Your first txt2img request is as simple as:

curl --request POST \
  --url https://stadio.ai/api/v1/txt2img \
  --header 'Authorization: Bearer $YOUR_BEARER_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
"prompt": "Astronaut standing on a barren planet"
}'