---
title: "Create Dataset"
method: POST
path: "/tailored-gen/datasets"
tags: ["Tailored Generation"]
---

# Create Dataset

`POST /tailored-gen/datasets`

Create a new dataset.

Constraints:
* Dataset must have at least 1 image to be completed
* Maximum of 200 images per dataset

## Headers

- `api_token` string, required

## Request body

- object
  - `project_id` integer — Associated project ID (required)
  - `name` string — Dataset name (required)

## Response `201`

Dataset successfully created

- 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' — 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

- `400` — Bad request - validation error
- `401` — Unauthorized
- `404` — Project not found
- `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/revisions/2768230345a5/schema)
