---
title: "Get Datasets"
method: GET
path: "/tailored-gen/datasets"
tags: ["Tailored Generation"]
---

# Get Datasets

`GET /tailored-gen/datasets`

Retrieve a list of all datasets. If there are no datasets, returns an empty array.

## Headers

- `api_token` string, required

## Response `200`

Successfully retrieved datasets

- object[]
  - `id` integer — Unique identifier for the dataset
  - `project_id` integer — Associated project ID
  - `name` string — Dataset name
  - `caption_prefix` string — Text automatically prepended to all image captions in the dataset. Each image caption should naturally continues this prefix. A default prefix is automatically created but can be modified, and this same prefix is later used as the default generation prefix during image generation.
  - `status` 'draft' | 'completed' — Status of the dataset
  - `captions_update_status` 'empty' | 'in_progress' | 'completed' — Status of captions update process
  - `created_at` string, date-time — Timestamp when the dataset was created
  - `updated_at` string, date-time — Timestamp when the dataset was last updated

## Other responses

- `401` — Unauthorized
- `429` — Request limit exceeded. Your account has reached its maximum allowed requests. Please upgrade your plan or try again later.
- `500` — Internal server error

---

[API](https://skmtc.net/bria-ai/apis/the-bria-api.md) · [All operations](https://skmtc.net/bria-ai/apis/the-bria-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bria-ai/the-bria-api/versions/2768230345a5/schema)
