Dataset Versions
Create dataset versions as point-in-time snapshots with preprocessing and augmentation before training.
About
Versions are point-in-time snapshots of the images and labels in your dataset. When you create a Version, you can apply preprocessing steps and augmentations to your dataset.
To train a model in Roboflow, you need to create a Dataset Version.
This section of our documentation walks through how to prepare to train a model. You will need to:
Open the Versions page and create a new version
Follow our guide to get to the page that lets you create a dataset version.
Choose preprocessing steps
Select the preprocessing steps you need to train your model.
Apply augmentations
Apply any augmentations to your dataset. We have a guide that walks through which augmentations are appropriate for different use cases.
Confirm your Version
Your Version will be created and will now be available for use in training models.
Train a model
Follow our model training documentation to configure your training job.
You can also export a dataset version.
HTTP API
View a Version
You can retrieve information about a Roboflow version using the Python SDK, REST API, and CLI.
Version ID
Each version generated in Roboflow has a sequential, numerical ID associated with it. You can see that through the app on your versions page or by listing your project versions in the API.
If you already know which project and version you want to retrieve information about, you can use the /:workspace/:project/:version endpoint. It returns similar information as the project endpoint but does not enumerate all of the project's other versions.
To retrieve information about a project, make a GET request to the following endpoint:
https://api.roboflow.com/roboflow/chess-sample-4ckfl/1?api_key=$ROBOFLOW_API_KEYThis endpoint returns the following response:
Keypoint Detection Skeletons
Keypoint Detection project versions will contain a skeletons field which contains your version skeletons for each class. For example, a project with a class person might have the following skeleton:
Note, vertices should be accessed by index with inference predictions class_id. Then, vertex id can be used to reference edge (from/to) and symmetries (points).
Python SDK
View a Version
To retrieve information about a version, get the project and request the version you want:
The model variable contains the following JSON values:
For listing and iterating over versions, see List Workspaces and Projects. To export a version, see Export a Dataset Version.
CLI
You can list, inspect, and export dataset versions from the command line.
List Versions
Example:
Get Version Details
Or use resource shorthand:
Export a Version
Trigger an async export of a version in a specific format:
Example:
JSON Output
All version commands support --json:
MCP Server
Connect your AI agent to the MCP Server and it can manage dataset versions with these tools:
versions_generate
Create a version with optional preprocessing and augmentation.
versions_get
Get version info including splits and its trainings.
versions_export
Check or trigger a dataset export for a version.
versions_delete
Delete a version, moving it to the workspace Trash.
Next steps
Use your version to train a model. See Train a Model.
Export your version in a training-ready format. See Export a Dataset Version.
Last updated
Was this helpful?