Bria Dataset API

Manage training datasets

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Artificial Intelligence Management BC-610.60

Operations 18

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /tailored-gen/datasets Create a new training dataset · Create Dataset #
Ask an LLM
“How do I start a new dataset for training?”
“What upload types can a new dataset use?”
Tell an agent
Create a dataset named {name}.
Create a {upload_type} dataset called {name}.
GET /tailored-gen/datasets List all my tailored generation datasets · Get Datasets #
Ask an LLM
“Which fine-tuning datasets do I have for consistent visuals?”
“Can I get a list of all my tailored generation datasets?”
Tell an agent
List my tailored generation datasets using API token {api_token}.
Show every dataset available for tailored models with token {api_token}.
GET /tailored-gen/projects/{project_id}/datasets List datasets in a project · Get Datasets by Project #
Ask an LLM
“What datasets belong to a particular project?”
“Can I include the models that use each dataset?”
Tell an agent
List datasets in project {project_id}.
Show project {project_id} datasets with models {include_models}.
GET /tailored-gen/datasets/{dataset_id} Get a training dataset · Get Dataset by ID #
Ask an LLM
“What images and schema does one dataset contain?”
“Can I limit how many images come back for a dataset?”
Tell an agent
Show dataset {dataset_id}.
Get dataset {dataset_id} with at most {max_images} images.
PUT /tailored-gen/datasets/{dataset_id} Update a training dataset · Update Dataset #
Ask an LLM
“How do I change a dataset's name or schema?”
“What status must a dataset have to edit its schema?”
Tell an agent
Rename dataset {dataset_id} to {name}.
Set dataset {dataset_id} status to {status}.
DELETE /tailored-gen/datasets/{dataset_id} Delete a training dataset · Delete Dataset #
Ask an LLM
“Does deleting a dataset also remove its images?”
“How do I permanently delete a dataset?”
Tell an agent destructive · confirm first
Delete dataset {dataset_id}.
Permanently remove training dataset {dataset_id}.
POST /tailored-gen/datasets/{dataset_id}/clone Copy a training dataset · Clone Dataset As Draft #
Ask an LLM
“Can I make a copy of a dataset to train a variation?”
“Does a cloned dataset keep the original schema?”
Tell an agent
Clone dataset {dataset_id} as {name}.
Make a copy of {dataset_id} called {name} with description {description}.
POST /tailored-gen/datasets/{dataset_id}/images Add one image to a dataset · Upload Image Files #
Ask an LLM
“How do I upload a single image to a dataset?”
“Can I upload an image by URL instead of a file?”
Tell an agent
Upload {file} to dataset {dataset_id}.
Add {image_name} from {image_url} to {dataset_id}.
GET /tailored-gen/datasets/{dataset_id}/images List images in a dataset · Get Images #
Ask an LLM
“Which images are in a given dataset?”
“Can I page through a dataset's images?”
Tell an agent
List the images in dataset {dataset_id}.
Show every image in {dataset_id}.
PUT /tailored-gen/datasets/{dataset_id}/images Regenerate captions for a dataset · Regenerate All Captions #
Ask an LLM
“Why do I need to regenerate captions after changing a dataset's schema?”
“How do I make sure all dataset captions match the new schema?”
Tell an agent
Regenerate captions for dataset {dataset_id}.
Re-run caption generation on {dataset_id} so it matches the schema.
POST /tailored-gen/datasets/{dataset_id}/images/bulk-upload Upload many images from a ZIP · Advanced Image Upload #
Ask an LLM
“How do I upload thousands of images at once?”
“Can I upload a ZIP of images to an advanced dataset?”
Tell an agent
Bulk upload the ZIP at {zip_url} to dataset {dataset_id}.
Load {zip_url} into {dataset_id} with content moderation {content_moderation}.
GET /tailored-gen/datasets/{dataset_id}/images/{image_id} Get one image in a dataset · Get Image by ID #
Ask an LLM
“What are the details of a single image in a dataset?”
“Can I fetch one image by its ID?”
Tell an agent
Show image {image_id} in dataset {dataset_id}.
Get the full record of {image_id} from {dataset_id}.
PUT /tailored-gen/datasets/{dataset_id}/images/{image_id} Edit an image's caption · Update Image Caption #
Ask an LLM
“How do I fix the caption on one image?”
“Can I regenerate a single image's caption automatically?”
Tell an agent
Set the caption of image {image_id} in {dataset_id} to {caption}.
Regenerate the caption on {image_id} in {dataset_id}.
DELETE /tailored-gen/datasets/{dataset_id}/images/{image_id} Remove an image from a dataset · Delete Image #
Ask an LLM
“Can I delete an image from a completed dataset?”
“How do I remove one image from a dataset?”
Tell an agent destructive · confirm first
Delete image {image_id} from dataset {dataset_id}.
Remove {image_id} from {dataset_id}.
GET /tailored-gen/datasets/{dataset_id}/images/bulk-upload/status Check a bulk image upload · Get Bulk Upload Status #
Ask an LLM
“Is my bulk image upload finished?”
“How far along is a large ZIP upload?”
Tell an agent
Check the bulk upload status for dataset {dataset_id}.
Tell me how many images were loaded in {dataset_id}'s bulk job.
POST /tailored-gen/generate_visual_schema Generate a visual schema from sample images · Generate Visual Schema #
Ask an LLM
“How do I get a structured visual schema for my training images?”
“How many sample images does schema generation need?”
Tell an agent
Generate a visual schema from {images}.
Create a training schema from these sample images {images}.
POST /tailored-gen/refine_structured_prompt Refine a visual schema or caption · Refine Structured Prompt #
Ask an LLM
“Can I make a visual schema more detailed with a refinement?”
“How do I fix a single image caption?”
Tell an agent
Refine the structured prompt {structured_prompt} in dataset {dataset_id} with {instruction}.
Rewrite {structured_prompt} in {dataset_id} per {instruction}.
GET /datasets/{dataset_id}/download Download an advanced dataset · Download Dataset #
Ask an LLM
“How do I download a finished dataset?”
“Can I get a pre-signed URL for a large dataset?”
Tell an agent
Download dataset {dataset_id}.
Give me a download link for {dataset_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/bria:bria-dataset-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

bria-dataset-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tailored Generation API Reference Dataset API
  version: ''
  description: 'Tailored Generation provides capabilities to generate visuals (photos, illustrations, vectors)

    that preserve and faithfully reproduce specific IP elements or guidelines, ensuring consistency

    across all generated outputs. The Tailored Generation APIs allow you to manage and train tailored models that maintain the

    integrity of your visual IP. You can train models through our Console or implement training

    directly via API. **Fully Automated Training Mode**

    Bria supports users in training high-quality finetuned models without the guesswork. Based on the selected IP type & dataset, Bria automatically selects the right training parameters. This means that the user only needs to spend time curating their dataset. **Advanced Customization and Access:** Bria offers 2 types of advanced training customization: Expert training mode and source-code & weights. - **Expert training mode** is for LoRa Finetune experts and provides the ability to finetune training parameters and upload larger training datasets. - **Source-code & Weights** is for developers seeking deeper customization and access to Bria''s source-available GenAI models via Hugging Face. All methods allow full control over fine-tuning, pipeline creation, and integration into proprietary workflows—empowering AI teams to develop and optimize their own generative AI solutions. The Tailored Generation Training API provides a set of endpoints to manage the entire lifecycle

    of a tailored generation project:


    1. **Project Management**: Create and manage projects that define IP characteristics:

    - **Create and Retrieve Projects**: Use the `/projects` endpoints to create a new project or

    retrieve existing projects that belong to your organization. - **Define IP Type**: Specify the IP type (e.g., multi_object_set, defined_character,

    stylized_scene) and medium. - **Manage Project Details**: Use the `/projects/{id}` endpoints to update or delete

    specific projects. 2. **Dataset Management**: Organize and refine datasets within your projects:

    - **Create and Retrieve Datasets**: Use the `/datasets` endpoints to create new datasets or

    retrieve existing ones. - **Generate a Visual Schema**

    - Use `/tailored-gen/generate_visual_schema` to create a structured visual schema using 5-10 sample images. - **Refine Structured Data**

    - Use `/tailored-gen/refine_structured_prompt` to iterate on your **Visual Schema** or **Image Captions** using natural language instructions. - *Example:* You can send your generated schema with the instruction "Character''s name is Lucy" to improve the training metadata programmatically. - **Upload and Manage Images**:

    - **Basic upload**: Use `/datasets/{dataset_id}/images` to upload up to 200 images individually. - **Bulk upload**: Use `/datasets/{dataset_id}/images/bulk` to upload zip files with >200 high-quality images (Advanced). - **Clone Datasets**: Create variations of existing datasets using the clone functionality. 3. **Model Management**: Train and optimize tailored models based on your datasets:

    - **Create and Retrieve Models**: Use the `/models` endpoints to create new models or list

    existing ones. - **Choose training mode**: Select between Fully automated mode (automatic training based on Bria''s recipes) and Expert mode (for training parameter tweaking). - **Monitor and Control**: Manage the model lifecycle, including training start/stop,

    status monitoring, and version control over the training parameters. 4. **Generation Capabilities**:

    - **Image Generation**: Use `/image/generate/tailored` for text-to-image generation. - **Structured Prompting**: Use `/structured_prompt/generate/tailored` to create structured prompts via VLM before generation. - **Video Generation**: Use `/video/generate/tailored/image-to-video` to animate tailored images. ### **Training Process**


    To train a tailored model:


    1. **Create a Project**: Use the `/projects` endpoint to define your IP type and medium. 2.'
servers:
- url: https://engine.prod.bria-api.com/v2/
tags:


# --- truncated at 32 KB (50 KB total) ---
# Full source: https://artifacts.apis.io/bria/openapi/bria-dataset-api-openapi.yml