Generations API
Endpoints for creating, retrieving, and managing AI-generated designs.Overview
Generations are the core output of the Studio—each represents an AI-created design that can be saved, shared, or sent to production.Endpoints
List Generations
Retrieve all generations for the current user.
| Param | Type | Description |
|---|---|---|
project_id | uuid | Filter by project |
thread_id | uuid | Filter by chat thread |
limit | number | Max results (default: 50) |
offset | number | Pagination offset |
Get Generation
Retrieve a single generation by ID.
Delete Generation
Delete a generation and its associated assets.
Generation Status
| Status | Description |
|---|---|
pending | Generation queued, awaiting AI processing |
processing | AI is actively generating |
completed | Successfully generated |
failed | Generation failed (check error) |
Token Cost
Each generation consumes tokens based on the model used:| Model | Cost |
|---|---|
nano-banana | 1 token |
nano-banana-pro | 2 tokens |