Create Game SpriteSheet

Creating a 2D pixel art for your game.

The SpriteSheet Generation API allows developers to generate AI-powered 2D pixel-style spritesheets for use in game engines. By providing a textual prompt, the API will return a spritesheet in the requested style and format.

Super Mario, Sheet
Super Mario, gif
Pikachu, gif

1. Endpoint

POST https://api.rpggo.ai/v2/assets/spritesheet/create

2. Request Body

Name
Type
Example Value
Description

style

String

"v1"

Two versions available ["v1", "v2"]. Default is v1.

form

String

"sheet"

Tow formats available ["sheet", "gif"]. Default is "sheet", for game engine use case. "gif" is more suitable for profile, avatar needs.

prompt

String

"Super Mario in snow cloth"

Describe the appearance of the sprite sheet. Default is "", which means for a random generation.

scale_by

int

2

tile size of the sprite sheet. Default is 2.

Note, you need to fill in your own api key in the curl. For how to apply api key, Apply Your Test Key

Sample Curl
curl --location 'https://api.rpggo.ai/v2/assets/spritesheet/create' \
--header 'Content-Type: application/json' \
--header 'Authorization: YOUR-API-KEY' \
--data '{
    "style": "v1",
    "prompt": "a girl",
    "form": "sheet",
    "scale_by": 2
}'
{
    "code": 200,
    "msg": "ok",
    "data": {
        "img_url": "https://storage.googleapis.com/rpggo-imagegen/CHARACTER_SHEET/54d9b5f8d25d4a1991eb2d2f26cdaa3f.gif"
    }
}

Rate Limits

  • each api call will spend 30 GG coins. Make sure you have balance in your account.

Last updated

Was this helpful?