Quickstart

Your first sprite in three steps.

1. Create a key

Open the API keys tab and generate one. It starts with sai_sk_ and is shown once, so copy it now.

2. Send a request

POST a prompt and an asset type with your key as a Bearer token.

curl https://sprite-ai.art/api/sprites \
-H "Authorization: Bearer sai_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "prompt": "a knight with a blue cape", "asset_type": "character" }'

3. Save the image

The PNG is in image.pngBase64. Decode it and write it to a file.

echo "iVBORw0KGgoAAAANS..." | base64 -d > knight.png

That's it. Next: the full API reference.

We use cookies to enhance your experience. Essential cookies are required for the site to function. You can choose to accept all cookies or only essential ones.

Learn more