Cloud storage
List safe cloud-storage metadata, browse paginated entries, and import approved paths into a project.
Import images from an existing cloud connection, wait for processing, and verify the imported files before adding labels. This example imports two images from S3 without uploading another original copy into Unitlab's bucket.
Before you start
Use Unitlab SDK 3.1.6, a configured Unitlab API key, an existing project, and a cloud connection created in Workspace Settings. Follow authentication if UnitlabClient() is not configured.
Configure the provider before automation

Workspace Settings › Cloud storage creates the approved provider connection used by SDK and CLI cloud-storage operations. Credentials are never returned by the SDK.
The Python SDK can list existing connections and browse their objects. It does not have a connection-create or credential-update method. Configure and rotate provider credentials in Workspace Settings with Manage cloud storage permission. Your Unitlab workspace API key authenticates the SDK; it is separate from the credentials Unitlab uses to access S3.
The Amazon S3 form accepts an access key ID and secret access key, plus bucket, region, and optional prefix. Role ARN/AssumeRole and session-token configuration are not exposed by this connection flow. See Cloud providers for credentials, CORS, and scoped read/write requirements.
Example storage layout
Assume your S3 connection has prefix datasets/ and the bucket contains:
Use incoming/ in SDK calls because paths are relative to the saved connection prefix. Selecting it imports the two immediate images. It does not include incoming/later/tunnel.jpg; select that child directory separately when needed. labels/predictions.json is optional and used only in the annotation example below.
Browse, import, and verify
Source storage and generated data
Importing cloud images registers their existing object references rather than uploading another original copy into Unitlab's bucket. Unitlab still reads the bytes for processing and browser viewing. Ordinary project-image thumbnails and annotation previews are written into the connected bucket under <connection-prefix>/unitlab-<workspace-id-prefix>/, using categories such as thumbnails and thumbnail_annotations.
The standard image workflow therefore needs source-read access and generated-preview write access. A successful connection check reads bucket availability and AWS CORS settings; it does not test writes. Optional features can store other derived data, including Find Similar reference crops in Unitlab's platform storage. For permission scope and deployment-specific ACL compatibility, use the S3 access guidance.
Import labels onto cloud-referenced images
On a deployment with annotation-import support, wait for the cloud media to finish processing, then import local label JSON or JSON stored in a connected bucket. The media references must match the project's existing items. You do not need to upload the original images again.
Save supported annotation JSON as predictions.json in your local working directory. This file must reference the images just imported. Reuse project from the steps above:
Inspect the preview and resolve any media or class mappings before calling labels.commit(). Alternatively, read the JSON from the labels/ directory in the example bucket:
Choose one label source. The annotation key is relative to the connection prefix, so this reads datasets/labels/predictions.json. Inspect the preview before committing this import too.
For explicit mappings, accepted JSON formats, repeated imports, and review behavior, follow Annotation imports. Imported labels can be edited and reviewed in Unitlab. The client methods require Unitlab SDK 3.1.6 and a backend deployment exposing the annotation-import endpoints; installing the SDK alone does not enable the server feature.
Resume or recover an import
Replace BATCH_QUEUE_ID with the ID you saved:
If processing times out, continue checking this queue rather than starting the import again. If only some files fail, inspect and correct those files or their storage permissions before retrying that subset. A successful connection check alone does not verify preview-write access.
Related Unitlab capability guides: Unitlab’s data curation platform
Model predictions to a reviewed delivery
Follow Pre-labels, review, and export for the complete workflow and the limits of approved-only filtering.