v1

latestOpenAPI 3.1.02026-07-13154170539.0 KB
Storage

Download a GCS object as base64

Downloads the content of a Google Cloud Storage object and returns it as a base64-encoded string.

This is useful for retrieving binary content (images, files) through the API without requiring direct GCS access.

post/v0/storage/download

Request body

gcs_uristring required

GCS URI of the object (e.g., gs://bucket-name/path/to/object)

Example request

{
  "gcs_uri": "gs://my-bucket/images/photo.jpg"
}

Response

Object content downloaded successfully

content_base64string required

Base64-encoded content of the object

content_typestring nullable

MIME type of the object if available

size_bytesinteger required

Size of the object in bytes