datasets
Upload assets to a dataset
Upload image assets to a dataset for model training. Accepts individual images (JPEG, PNG, WebP), optional .txt caption sidecar files, and/or ZIP archives containing images and captions. A dataset can contain up to 100 images.
post/datasets/{dataset_id}/upload_assets
Path parameters
dataset_idstring required
Response
Upload summary
Example response
{
"successful_assets": [
{
"asset_identifier": "",
"file_name": "file_name"
},
{
"asset_identifier": "",
"file_name": "file_name"
}
],
"total_count": 0,
"failed_assets": [
{
"file_name": "file_name",
"failure_reason": null
},
{
"file_name": "file_name",
"failure_reason": null
}
],
"success_count": 6,
"failure_count": 1
}Changes
Changed in 1 of the 34 revisions of this API.31
- ▲
the
//response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
removed the required property
///from the response with the statusresponse-required-property-removed
- ▲
removed the required property
///from the response with the statusresponse-required-property-removed
- ○
added to the
//response propertyallOflist for the response statusresponse-property-all-of-added
- ▲