---
title: "Get Dataset by ID"
method: GET
path: "/tailored-gen/datasets/{dataset_id}"
tags: ["Tailored Generation"]
---

# Get Dataset by ID

`GET /tailored-gen/datasets/{dataset_id}`

Retrieve a specific dataset

## Path parameters

- `dataset_id` string, required

## Headers

- `api_token` string, required

## Response `200`

Successfully retrieved dataset

- 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
  - `images_count` integer — Number of images in the dataset
  - `images` object[] — Array of images in the dataset
    - `id` integer — Unique identifier for the image
    - `dataset_id` integer — ID of the dataset this image belongs to
    - `caption` string — Once an image is uploaded, a caption is generated automatically. The caption is a natural continuation of the caption_prefix.
    - `caption_source` 'automatic' | 'manual' — Source of the caption
    - `image_name` string — Name of the image
    - `image_url` string — URL of the original image file
    - `thumbnail_url` string — URL of the image thumbnail
    - `created_at` string, date-time — Timestamp when the image was created
    - `updated_at` string, date-time — Timestamp when the image was last updated
  - `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
- `404` — Dataset 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)
