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.
Authentication
Api-Keystring
API key for access control. Use in the header with the name “Api-Key”
Path parameters
dataset_id
Request
This endpoint expects a multipart form with multiple files.
files
Image files (JPEG, PNG, WebP), .txt caption sidecar files, and/or ZIP archives containing images and captions. Caption .txt files are matched to images by filename stem (e.g. sunset.txt provides the caption for sunset.jpg). Captions are optional!
Response
Upload summary
total_count
Total number of images processed.
success_count
Number of images successfully uploaded.
failure_count
Number of images that failed to upload.
successful_assets
Details of successfully uploaded assets.
failed_assets
Details of assets that failed to upload.
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error