Create Augmentation Job
const url = 'https://example.com/v1/augmentation';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"project_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","dataset_id":"lerobot/pusht","augmentation_type":"deterministic","name":"example","augment_transforms":"lighting","augment_mode":"stacked","augment_copies":3,"augment_copies_per_transform":{"additionalProperty":1},"augment_dataset_mode":"copy","augment_brightness_min":-15,"augment_brightness_max":15,"augment_contrast_min":-10,"augment_contrast_max":10,"augment_color_temp_min":4000,"augment_color_temp_max":6500,"noise_type":"mixed","noise_gaussian_sigma_min":3,"noise_gaussian_sigma_max":15,"noise_shot_scale_min":0.3,"noise_shot_scale_max":1,"blur_type":"mixed","blur_motion_kernel_min":5,"blur_motion_kernel_max":15,"blur_defocus_sigma_min":0.5,"blur_defocus_sigma_max":2.5,"occlusion_type":"mixed","occlusion_num_patches_min":1,"occlusion_num_patches_max":3,"occlusion_patch_width_min":0.05,"occlusion_patch_width_max":0.2,"occlusion_patch_height_min":0.05,"occlusion_patch_height_max":0.2,"cosmos_prompt":"A robot arm performing a task in a different environment.","cosmos_prompts":["example"],"cosmos_control_type":"edge","cosmos_control_weight":1,"cosmos_guidance":3,"cosmos_num_steps":4,"cosmos_seed":42,"cosmos_model_variant":"edge/distilled","cosmos_disable_guardrails":false,"cosmos_camera_name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/augmentation \ --header 'Content-Type: application/json' \ --data '{ "project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "dataset_id": "lerobot/pusht", "augmentation_type": "deterministic", "name": "example", "augment_transforms": "lighting", "augment_mode": "stacked", "augment_copies": 3, "augment_copies_per_transform": { "additionalProperty": 1 }, "augment_dataset_mode": "copy", "augment_brightness_min": -15, "augment_brightness_max": 15, "augment_contrast_min": -10, "augment_contrast_max": 10, "augment_color_temp_min": 4000, "augment_color_temp_max": 6500, "noise_type": "mixed", "noise_gaussian_sigma_min": 3, "noise_gaussian_sigma_max": 15, "noise_shot_scale_min": 0.3, "noise_shot_scale_max": 1, "blur_type": "mixed", "blur_motion_kernel_min": 5, "blur_motion_kernel_max": 15, "blur_defocus_sigma_min": 0.5, "blur_defocus_sigma_max": 2.5, "occlusion_type": "mixed", "occlusion_num_patches_min": 1, "occlusion_num_patches_max": 3, "occlusion_patch_width_min": 0.05, "occlusion_patch_width_max": 0.2, "occlusion_patch_height_min": 0.05, "occlusion_patch_height_max": 0.2, "cosmos_prompt": "A robot arm performing a task in a different environment.", "cosmos_prompts": [ "example" ], "cosmos_control_type": "edge", "cosmos_control_weight": 1, "cosmos_guidance": 3, "cosmos_num_steps": 4, "cosmos_seed": 42, "cosmos_model_variant": "edge/distilled", "cosmos_disable_guardrails": false, "cosmos_camera_name": "example" }'Start a new dataset augmentation job.
Applies deterministic transforms (lighting, noise, blur, occlusion) to a HuggingFace dataset and uploads the augmented result. The GPU instance is auto-selected based on the augmentation type.
Generative augmentation (Cosmos Transfer2.5) is currently disabled and will return 400 if requested.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Request to start a dataset augmentation job.
Mirrors AugmentationJobCreateRequest in the training API. Field defaults must stay aligned — see q_training_api.models.training_models.
object
Project ID to associate the job with
HuggingFace dataset ID to augment
‘deterministic’ applies fast CPU transforms (lighting, noise, blur, occlusion). ‘generative’ uses Cosmos Transfer2.5 to re-render frames in a target environment (currently disabled).
Comma-separated transforms: lighting, noise, blur, occlusion
‘stacked’ applies all transforms to each copy. ‘independent’ creates one copy per transform.
Number of augmented copies per episode (when dataset_mode=copy)
‘copy’ adds augmented copies to the original dataset. ‘inplace’ replaces the originals with augmented versions.
Gaussian, shot, read, or mixed
Motion, defocus, or mixed
Rectangle, overlay, or mixed
Prompt for Cosmos Transfer2.5 generation
Multiple prompts — overrides cosmos_prompt if non-empty
Control type: edge, depth, seg, or vis
Responses
Section titled “ Responses ”Augmentation job created successfully
Response after creating an augmentation job.
object
Example generated
{ "job_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "status": "example", "message": "example"}Invalid request parameters
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}Invalid or missing API key
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}Validation error