---
title: "Generate a tileset for a project (async)"
method: POST
path: "/v1/projects/{projectId}/tilesets"
tags: ["Tilesets"]
---

# Generate a tileset for a project (async)

`POST /v1/projects/{projectId}/tilesets`

## Request

- Base URL: `https://api.sprixen.com`
- URL: `https://api.sprixen.com/v1/projects/{projectId}/tilesets`
- Auth: `bearer` (a scheme the document does not define)

Queues an async tileset generation job. Poll GET /projects/:projectId/tilesets for results.

## Path parameters

- `projectId` string, required

## Request body

- CreateTilesetDto
  - `prompt` string, required: Description of the tileset content and style. Max 6000 characters.
  - `type` 'ground' | 'wall' | 'decoration' | 'transition', required: Tileset category — controls top-down vs side perspective hints
  - `tileSize` number: Pixel size of each individual tile (default 32)

## Response `202`

Tileset generation queued

## Other responses

- `403`: Access denied
- `404`: Project not found

---

[API](https://skmtc.dev/sprixen/apis/sprixen-api.md) · [All operations](https://skmtc.dev/sprixen/apis/sprixen-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sprixen/apis/sprixen-api/revisions/6c0c57f6da58?raw)
