Cloudinary Billing Usage API

Access billing usage information for your account and product environments.

GitHub OpenAPI

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /billing_usage Get billing usage metrics · Get billing usage information #
Ask an LLM
“How much storage, bandwidth and transformations have I used this year?”
“Can I see usage broken down by product environment?”
Tell an agent
Show my billing usage for {year}.
Get annual usage for {year} with product environment breakdown.
GET /v1_1/provisioning/accounts/{account_id}/billing_usage Get billing usage information #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cloudinary:cloudinary-billing-usage-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cloudinary-billing-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloudinary Billing Usage API
  contact:
    name: Cloudinary Support
    email: support@cloudinary.com
    url: https://support.cloudinary.com
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  termsOfService: https://cloudinary.com/tou
  x-cld-module-context: account
  x-cld-module-name: account-provisioning
  version: '1.0'
  description: 'Operations tagged Billing Usage across 3 of this provider''s published API definitions: cloudinary-openapi.yml, cloudinary-provisioning-schema.yml, cloudinary-provisioning-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.cloudinary.com/v1_1/provisioning/accounts/{accountId}
  variables:
    accountId:
      default: ACCOUNT_ID
      description: Your Account ID.
- url: https://{region}.cloudinary.com
  description: Regional API endpoints for optimal performance.
  variables:
    region:
      default: api
      description: Regional endpoint selection
      enum:
      - api
      - api-eu
      - api-ap
- url: https://{host}
  description: Custom domains for enterprise deployments.
  variables:
    host:
      default: api.cloudinary.com
      description: API host domain.
security:
- basicAuth: []
tags:
- name: Billing Usage
  description: Access billing usage information for your account and product environments.
  externalDocs:
    description: Learn more about billing and usage information.
    url: https://cloudinary.com/documentation/provisioning_api#billing_usage
paths:
  /billing_usage:
    get:
      tags:
      - Billing Usage
      summary: Get billing usage information
      description: 'Retrieve billing usage metrics for your account and product environments,

        including storage, bandwidth, impressions, and transformations.


        If `year` is provided:

        - **Annual subscription**: Returns the single annual usage cycle that began in the specified year (if any).

        - **Monthly subscription**: Returns all monthly usage cycles that began in the specified year.


        If `year` is not provided:

        - Returns usage for the year in which the current active subscription period began.

        - If no active subscription exists, an empty list is returned.


        **Note**: Usage metrics are updated daily, so calling this endpoint once per day gives you the latest data.'
      operationId: getBillingUsage
      parameters:
      - name: year
        in: query
        required: false
        schema:
          type: integer
          format: int32
        description: The year to retrieve billing usage for. Behavior depends on subscription type (see above).
        example: 2024
      - name: include_prodenv_breakdown
        in: query
        required: false
        schema:
          type: boolean
        description: 'Whether to include usage details by product environment. **Default**: false.

          '
      responses:
        '200':
          description: Successful operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingUsageResponse'
              examples:
                ProPAYG:
                  $ref: '#/components/examples/BillingUsageResponse_ProPAYG'
                AdvancedExtraPAYG:
                  $ref: '#/components/examples/BillingUsageResponse_AdvancedExtraPAYG'
                AdvancedPAYG:
                  $ref: '#/components/examples/BillingUsageResponse_AdvancedPAYG'
                ProPAYGPlus:
                  $ref: '#/components/examples/BillingUsageResponse_ProPAYGPlus'
                MultiPlan:
                  $ref: '#/components/examples/BillingUsageResponse_MultiPlan'
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthorized'
        '403':
          $ref: '#/components/responses/403NotAllowed'
        '404':
          $ref: '#/components/responses/404NotFound'
        '429':
          $ref: '#/components/responses/429TooManyRequests'
    servers:
    - url: https://api.cloudinary.com/v1_1/provisioning/accounts/{accountId}
      variables:
        accountId:
          default: ACCOUNT_ID
          description: Your Account ID.
  /v1_1/provisioning/accounts/{account_id}/billing_usage:
    parameters:
    - $ref: '#/components/parameters/AccountIdParam'
    get:
      tags:
      - Billing Usage
      summary: Get billing usage information
      description: 'Retrieve billing usage metrics for your account and product environments,

        including storage, bandwidth, impressions, and transformations.


        If `year` is provided:

        - **Annual subscription**: Returns the single annual usage cycle that began in the specified year (if any).

        - **Monthly subscription**: Returns all monthly usage cycles that began in the specified year.


        If `year` is not provided:

        - Returns usage for the year in which the current active subscription period began.

        - If no active subscription exists, an empty list is returned.


        **Note**: Usage metrics are updated daily, so calling this endpoint once per day gives you the latest data.'
      operationId: getV11ProvisioningAccountsByAccountIdBillingUsage
      parameters:
      - name: year
        in: query
        required: false
        schema:
          type: integer
          format: int32
        description: The year to retrieve billing usage for. Behavior depends on subscription type (see above).
        example: 2024
      - name: include_prodenv_breakdown
        in: query
        required: false
        schema:
          type: boolean
        description: 'Whether to include usage details by product environment. **Default**: false.

          '
      responses:
        '200':
          description: Successful operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingUsageResponse'
              examples:
                ProPAYG:
                  $ref: '#/components/examples/BillingUsageResponse_ProPAYG'
                AdvancedExtraPAYG:
                  $ref: '#/components/examples/BillingUsageResponse_AdvancedExtraPAYG'
                AdvancedPAYG:
                  $ref: '#/components/examples/BillingUsageResponse_AdvancedPAYG'
                ProPAYGPlus:
                  $ref: '#/components/examples/BillingUsageResponse_ProPAYGPlus'
                MultiPlan:
                  $ref: '#/components/examples/BillingUsageResponse_MultiPlan'
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthorized'
        '403':
          $ref: '#/components/responses/403NotAllowed'
        '404':
          $ref: '#/components/responses/404NotFound'
        '429':
          $ref: '#/components/responses/429TooManyRequests'
      x-operation-id-source: normalized
      x-operation-id-original: getBillingUsage
    servers:
    - url: https://{region}.cloudinary.com
      description: Regional API endpoints for optimal performance.
      variables:
        region:
          default: api
          description: Regional endpoint selection
          enum:
          - api
          - api-eu
          - api-ap
    - url: https://{host}
      description: Custom domains for enterprise deployments.
      variables:
        host:
          default: api.cloudinary.com
          description: API host domain.
components:
  responses:
    429TooManyRequests:
      description: Too many requests.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    400BadRequest:
      description: Bad request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    404NotFound:
      description: Not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              message: not found
    401Unauthorized:
      description: Authorization required.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              message: Invalid credentials
    403NotAllowed:
      description: Not allowed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  examples:
    BillingUsageResponse_MultiPlan:
      summary: Get billing usage example for multiple plans in a single response
      value:
      - plan_name: Advanced PAYG
        metric_usage:
        - metric: credit
          limit: 600
          cycles:
          - from_day: '2024-08-26'
            to_day: '2024-09-18'
            usage: 1830.25
            breakdown:
              storage_image: 1.98
              storage_video: 0.43
              storage_raw: 0.01
              transformations_image: 0.4
              transformations_video: 0
              bandwidth_image: 1827.43
              bandwidth_video: 0
              bandwidth_raw: 0
            product_environment_breakdown:
            - storage_image: 1.98
              storage_video: 0.43
              storage_raw: 0.01
              transformations_image: 0.4
              transformations_video: 0
              bandwidth_image: 1827.43
              bandwidth_video: 0
              bandwidth_raw: 0
              cloud_name: myproduct
      - plan_name: Advanced Extra PAYG
        metric_usage:
        - metric: credit
          limit: 1350
          cycles:
          - from_day: '2024-09-19'
            to_day: '2024-09-25'
            usage: 1133.49
            breakdown:
              storage_image: 4.25
              storage_video: 0.91
              storage_raw: 0.02
              transformations_image: 0.27
              transformations_video: 0
              bandwidth_image: 1128.03
              bandwidth_video: 0
              bandwidth_raw: 0
            product_environment_breakdown:
            - storage_image: 4.25
              storage_video: 0.91
              storage_raw: 0.02
              transformations_image: 0.27
              transformations_video: 0
              bandwidth_image: 1128.03
              bandwidth_video: 0
              bandwidth_raw: 0
              cloud_name: myproduct
    BillingUsageResponse_ProPAYG:
      summary: Get billing usage example for a Pro PAYG plan
      value:
      - plan_name: Pro PAYG
        metric_usage:
        - metric: credit
          limit: 2750
          cycles:
          - from_day: '2024-08-21'
            to_day: '2024-09-20'
            usage: 25641.55
            breakdown:
              storage_image: 7971.55
              storage_video: 1575.58
              storage_raw: 0
              transformations_image: 9603.73
              transformations_video: 2290.76
              bandwidth_image: 2972.57
              bandwidth_video: 1227.22
              bandwidth_raw: 0.14
            product_environment_breakdown:
            - storage_image: 0.04
              storage_video: 0.09
              storage_raw: 0
              transformations_image: 0
              transformations_video: 0
              bandwidth_image: 0
              bandwidth_video: 0
              bandwidth_raw: 0
              cloud_name: myproduct
    BillingUsageResponse_AdvancedExtraPAYG:
      summary: Get billing usage example for an Advanced Extra PAYG + plan
      value:
      - plan_name: Advanced Extra PAYG +
        metric_usage:
        - metric: credit
          limit: 1350
          cycles:
          - from_day: '2025-02-05'
            to_day: '2025-03-04'
            usage: 2300
            breakdown:
              storage_image: 517.71
              storage_video: 0.22
              storage_raw: 0
              transformations_image: 59.39
              transformations_video: 0
              video_seconds: 790.21
              bandwidth_raw: 0
              image_impressions: 932.46
            product_environment_breakdown:
            - storage_image: 0.04
              storage_video: 0.11
              storage_raw: 0
              transformations_image: 0
              transformations_video: 0
              video_seconds: 0
              bandwidth_raw: 0
              image_impressions: 0
              cloud_name: myproduct1
            - storage_image: 517.67
              storage_video: 0.11
              storage_raw: 0
              transformations_image: 59.39
              transformations_video: 0
              video_seconds: 790.21
              bandwidth_raw: 0
              image_impressions: 932.46
              cloud_name: myproduct2
    BillingUsageResponse_AdvancedPAYG:
      summary: Get billing usage example for an Advanced PAYG plan
      value:
      - plan_name: Advanced PAYG
        metric_usage:
        - metric: credit
          limit: 600
          cycles:
          - from_day: '2024-08-26'
            to_day: '2024-09-18'
            usage: 1830.25
            breakdown:
              storage_image: 1.98
              storage_video: 0.43
              storage_raw: 0.01
              transformations_image: 0.4
              transformations_video: 0
              bandwidth_image: 1827.43
              bandwidth_video: 0
              bandwidth_raw: 0
            product_environment_breakdown:
            - storage_image: 1.98
              storage_video: 0.43
              storage_raw: 0.01
              transformations_image: 0.4
              transformations_video: 0
              bandwidth_image: 1827.43
              bandwidth_video: 0
              bandwidth_raw: 0
              cloud_name: myproduct
    BillingUsageResponse_ProPAYGPlus:
      summary: Get billing usage example for a Pro PAYG + plan
      value:
      - plan_name: Pro PAYG +
        metric_usage:
        - metric: credit
          limit: 2750
          cycles:
          - from_day: '2025-01-14'
            to_day: '2025-02-04'
            usage: 1718.16
            breakdown:
              storage_image: 642.18
              storage_video: 0.24
              storage_raw: 0
              transformations_image: 59.66
              transformations_video: 0
              video_seconds: 0.02
              bandwidth_raw: 0
              image_impressions: 1016.06
            product_environment_breakdown:
            - storage_image: 0.05
              storage_video: 0.14
              storage_raw: 0
              transformations_image: 0
              transformations_video: 0
              video_seconds: 0
              bandwidth_raw: 0
              image_impressions: 0
              cloud_name: myproduct1
            - storage_image: 642.13
              storage_video: 0.1
              storage_raw: 0
              transformations_image: 59.66
              transformations_video: 0
              video_seconds: 0.02
              bandwidth_raw: 0
              image_impressions: 1016.06
              cloud_name: myproduct2
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: error
    CloudAssetTypeBreakdown:
      type: object
      properties:
        storage_image:
          type: number
          description: Storage usage for images in this product environment.
        storage_video:
          type: number
          description: Storage usage for videos in this product environment.
        storage_raw:
          type: number
          description: Storage usage for raw files in this product environment.
        transformations_image:
          type: number
          description: Transformation usage for images in this product environment.
        transformations_video:
          type: number
          description: Transformation usage for videos in this product environment.
        bandwidth_image:
          type: number
          description: Bandwidth usage for images in this product environment.
        bandwidth_video:
          type: number
          description: Bandwidth usage for videos in this product environment.
        bandwidth_raw:
          type: number
          description: Bandwidth usage for raw files in this product environment.
        image_impressions:
          type: number
          description: Number of times images were delivered (impressions) in this product environment.
        video_seconds:
          type: number
          description: Video delivery usage measured in billing seconds (actual viewed duration multiplied by a resolution-based ratio).
        cloud_name:
          type: string
          description: The name of the product environment.
    BillingUsageResponse:
      type: array
      items:
        type: object
        properties:
          plan_name:
            type: string
            description: The name of the plan (e.g., "Pro PAYG", "Advanced PAYG").
          metric_usage:
            type: array
            items:
              type: object
              properties:
                metric:
                  type: string
                  description: The type of metric being measured (e.g., "credit").
                limit:
                  type: number
                  description: The limit for this metric in the plan.
                cycles:
                  type: array
                  description: Full usage details per billing cycle (monthly or annual, depending on plan).
                  items:
                    type: object
                    properties:
                      from_day:
                        type: string
                        format: date
                        description: The start date of the billing cycle.
                        example: '2024-08-21'
                      to_day:
                        type: string
                        format: date
                        description: The end date of the billing cycle.
                        example: '2024-09-20'
                      usage:
                        type: number
                        description: Total usage for this cycle.
                        example: 25641.55
                      breakdown:
                        type: object
                        description: Usage breakdown by asset type and operation.
                        properties:
                          storage_image:
                            type: number
                            description: Storage usage for images.
                          storage_video:
                            type: number
                            description: Storage usage for videos.
                          storage_raw:
                            type: number
                            description: Storage usage for raw files.
                          transformations_image:
                            type: number
                            description: Transformation usage for images.
                          transformations_video:
                            type: number
                            description: Transformation usage for videos.
                          bandwidth_image:
                            type: number
                            description: Bandwidth usage for images.
                          bandwidth_video:
                            type: number
                            description: Bandwidth usage for videos.
                          bandwidth_raw:
                            type: number
                            description: Bandwidth usage for raw files.
                          image_impressions:
                            type: number
                            description: Number of times images were delivered (impressions).
                          video_seconds:
                            type: number
                            description: Video delivery usage measured in billing seconds (actual viewed duration multiplied by a resolution-based ratio).
                        additionalProperties: false
                      product_environment_breakdown:
                        type: array
                        description: Optional breakdown by product environment. May not be present in all responses.
                        items:
                          $ref: '#/components/schemas/CloudAssetTypeBreakdown'
                monthly_cycles:
                  type: array
                  description: Monthly-level breakdown within a single annual cycle.
                  items:
                    type: object
                    properties:
                      from_day:
                        type: string
                        format: date
                        description: The start date of the monthly billing cycle.
                      to_day:
                        type: string
                        format: date
                        description: The end date of the monthly billing cycle.
                      usage:
                        type: number
                        description: Total usage for this monthly cycle.
                      breakdown:
                        type: object
                        description: Usage breakdown by asset type and operation for the monthly cycle.
                        properties:
                          storage_image:
                            type: number
                            description: Storage usage for images.
                          storage_video:
                            type: number
                            description: Storage usage for videos.
                          storage_raw:
                            type: number
                            description: Storage usage for raw files.
                          transformations_image:
                            type: number
                            description: Transformation usage for images.
                          transformations_video:
                            type: number
                            description: Transformation usage for videos.
                          bandwidth_image:
                            type: number
                            description: Bandwidth usage for images.
                          bandwidth_video:
                            type: number
                            description: Bandwidth usage for videos.
                          bandwidth_raw:
                            type: number
                            description: Bandwidth usage for raw files.
                          image_impressions:
                            type: number
                            description: Number of times images were delivered (impressions).
                          video_seconds:
                            type: number
                            description: Video delivery usage measured in billing seconds (actual viewed duration multiplied by a resolution-based ratio).
                        additionalProperties: false
                      product_environment_breakdown:
                        type: array
                        description: Optional breakdown by product environment for the monthly cycle. May not be present in all responses.
                        items:
                          $ref: '#/components/schemas/CloudAssetTypeBreakdown'
  parameters:
    AccountIdParam:
      name: account_id
      description: Account ID
      in: path
      required: true
      schema:
        type: string
      x-speakeasy-globals-hidden: true
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
x-refined-from:
- cloudinary-openapi.yml
- cloudinary-provisioning-schema.yml
- cloudinary-provisioning-openapi.yml