Storage

View storage usage for generated images

Overview

Check storage usage for AI-generated images stored in your account.

Authentication: OAuth token
Required Scopes: billing:read


Get Storage Usage

View storage statistics.

Endpoint: GET /api/storage/usage

const response = await fetch('https://hypery.ai/api/storage/usage', {
  headers: {
    'Authorization': `Bearer ${oauthToken}`
  }
})
 
const { data } = await response.json()
console.log('Storage used:', data.totalSizeGB, 'GB')

Response:

{
  "success": true,
  "data": {
    "totalFiles": 142,
    "totalSizeBytes": 524288000,
    "totalSizeGB": 0.488,
    "monthlyCost": 0,
    "breakdown": [
      {
        "provider": "replicate",
        "count": 120,
        "sizeBytes": 450000000,
        "sizeGB": 0.419
      },
      {
        "provider": "openrouter",
        "count": 22,
        "sizeBytes": 74288000,
        "sizeGB": 0.069
      }
    ],
    "limits": {
      "maxStorageGB": 10,
      "usedPercentage": 4.88
    }
  }
}

Output Fields

FieldTypeDescription
totalFilesnumberNumber of stored images
totalSizeBytesnumberTotal size in bytes
totalSizeGBnumberTotal size in GB
monthlyCostnumberEstimated monthly storage cost
breakdownarrayUsage by provider
limitsobjectStorage limits and usage percentage

Next Steps