Sprites

Generate a sprite

Generate a still pixel art sprite from a text prompt. Synchronous: the PNG comes back inline as base64 in image.pngBase64. Costs 1 token.

post/api/sprites

Request

  • Base URL: https://www.sprite-ai.art
  • URL: https://www.sprite-ai.art/api/sprites
  • Auth: HTTP bearer

Request body

promptstring required
widthinteger
heightinteger
asset_type'character' | 'creature' | 'prop' | 'weapon' | 'vehicle' | 'tile' | 'background' | 'ui' | 'effect' | 'item'
direction'none' | 'south' | 'south-west' | 'west' | 'north-west' | 'north' | 'north-east' | 'east' | 'south-east'
camera_perspective'none' | 'front' | 'side' | 'top_down' | 'three_quarter' | 'isometric'
publicboolean
reference_asset_idstring uuid
palette_idstring uuid

Response

The generated sprite, with the PNG inline.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.