Cloudflare Images API

Upload, list, update, and delete image assets.

Operations 7

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 /accounts/{account_id}/images/v1 List the images stored in an account · Cloudflare List Images #
Ask an LLM
“Which images have I stored in Cloudflare Images?”
“Can I page through my images a set number at a time?”
Tell an agent
List the images in account {account_id}.
Show page {page} of my images, {per_page} per page.
POST /accounts/{account_id}/images/v1 Upload an image from a file or URL · Cloudflare Upload Image #
Ask an LLM
“How do I upload an image by pointing at a URL instead of a file?”
“Which image formats can I upload?”
Tell an agent
Upload the image at {url} to account {account_id}.
Upload this image file with custom ID {id}.
GET /accounts/{account_id}/images/v1/{image_id} Get the details of one image · Cloudflare Get Image Details #
Ask an LLM
“What details are stored for a specific uploaded image?”
“Can I look up one image by its ID?”
Tell an agent
Get image {image_id} in account {account_id}.
Show the details of image {image_id}.
PATCH /accounts/{account_id}/images/v1/{image_id} Update an image's metadata or signing · Cloudflare Update Image #
Ask an LLM
“Can I change the metadata on an image I already uploaded?”
“Is it possible to turn signed-URL protection on for an existing image?”
Tell an agent
Update the metadata of existing image {image_id} in account {account_id}.
Set requireSignedURLs to {requireSignedURLs} on existing image {image_id}.
DELETE /accounts/{account_id}/images/v1/{image_id} Delete an image and all its variants · Cloudflare Delete Image #
Ask an LLM
“Does deleting an image also remove its variants?”
“How do I permanently delete an image I uploaded?”
Tell an agent destructive · confirm first
Delete image {image_id} from account {account_id}.
Remove image {image_id} and every variant of it.
GET /zones/{zone_id}/images/v1/flows Get transformation flows #
PUT /zones/{zone_id}/images/v1/flows Update transformation flows #

Documentation

📖
Documentation
https://developers.cloudflare.com/api/
📖
GettingStarted
https://developers.cloudflare.com/fundamentals/api/get-started/
📖
Authentication
https://developers.cloudflare.com/fundamentals/api/get-started/create-token/
📖
RateLimits
https://developers.cloudflare.com/fundamentals/api/reference/limits/
📖
Documentation
https://developers.cloudflare.com/api/operations/accounts-list-accounts
📖
APIReference
https://developers.cloudflare.com/api/resources/accounts/
📖
APIReference
https://developers.cloudflare.com/ssl/
📖
Documentation
https://developers.cloudflare.com/api/operations/ip-access-rules-for-a-user-list-ip-access-rules
📖
Documentation
https://developers.cloudflare.com/api/operations/user'-s-account-memberships-list-memberships
📖
Documentation
https://developers.cloudflare.com/api/operations/radar-get-search-global
📖
APIReference
https://developers.cloudflare.com/radar/
📖
GettingStarted
https://developers.cloudflare.com/radar/get-started/
📖
Documentation
https://developers.cloudflare.com/api/operations/user-user-details
📖
APIReference
https://developers.cloudflare.com/api/resources/user/
📖
Documentation
https://developers.cloudflare.com/api/operations/zones-get
📖
APIReference
https://developers.cloudflare.com/api/resources/zones/
📖
Documentation
https://developers.cloudflare.com/dns/
📖
APIReference
https://developers.cloudflare.com/api/resources/dns/
📖
Documentation
https://developers.cloudflare.com/workers/
📖
APIReference
https://developers.cloudflare.com/api/resources/workers/
📖
GettingStarted
https://developers.cloudflare.com/workers/get-started/
📖
Documentation
https://developers.cloudflare.com/workers-ai/
📖
GettingStarted
https://developers.cloudflare.com/workers-ai/get-started/rest-api/
📖
APIReference
https://developers.cloudflare.com/workers-ai/configuration/open-ai-compatibility/
📖
APIReference
https://developers.cloudflare.com/workers-ai/models/
📖
Documentation
https://developers.cloudflare.com/ai-gateway/
📖
APIReference
https://developers.cloudflare.com/ai-gateway/usage/providers/
📖
GettingStarted
https://developers.cloudflare.com/ai-gateway/get-started/
📖
Documentation
https://developers.cloudflare.com/r2/
📖
APIReference
https://developers.cloudflare.com/r2/api/s3/api/
📖
GettingStarted
https://developers.cloudflare.com/r2/get-started/
📖
Documentation
https://developers.cloudflare.com/d1/
📖
APIReference
https://developers.cloudflare.com/api/resources/d1/
📖
GettingStarted
https://developers.cloudflare.com/d1/get-started/
📖
Documentation
https://developers.cloudflare.com/kv/
📖
APIReference
https://developers.cloudflare.com/api/resources/kv/
📖
GettingStarted
https://developers.cloudflare.com/kv/get-started/
📖
Documentation
https://developers.cloudflare.com/queues/
📖
APIReference
https://developers.cloudflare.com/api/resources/queues/
📖
GettingStarted
https://developers.cloudflare.com/queues/get-started/
📖
Documentation
https://developers.cloudflare.com/durable-objects/
📖
GettingStarted
https://developers.cloudflare.com/durable-objects/get-started/
📖
APIReference
https://developers.cloudflare.com/durable-objects/api/
📖
Documentation
https://developers.cloudflare.com/vectorize/
📖
GettingStarted
https://developers.cloudflare.com/vectorize/get-started/intro/
📖
APIReference
https://developers.cloudflare.com/vectorize/reference/client-api/
📖
Documentation
https://developers.cloudflare.com/pages/
📖
APIReference
https://developers.cloudflare.com/pages/configuration/api/
📖
GettingStarted
https://developers.cloudflare.com/pages/get-started/
📖
Documentation
https://developers.cloudflare.com/stream/
📖
GettingStarted
https://developers.cloudflare.com/stream/get-started/
📖
APIReference
https://developers.cloudflare.com/api/resources/stream/
📖
Documentation
https://developers.cloudflare.com/images/
📖
GettingStarted
https://developers.cloudflare.com/images/get-started/
📖
APIReference
https://developers.cloudflare.com/api/resources/images/
📖
Documentation
https://developers.cloudflare.com/turnstile/
📖
GettingStarted
https://developers.cloudflare.com/turnstile/get-started/
📖
APIReference
https://developers.cloudflare.com/api/resources/turnstile/
📖
Documentation
https://developers.cloudflare.com/logs/
📖
APIReference
https://developers.cloudflare.com/api/resources/logpush/
📖
GettingStarted
https://developers.cloudflare.com/logs/get-started/
📖
Documentation
https://developers.cloudflare.com/hyperdrive/
📖
APIReference
https://developers.cloudflare.com/api/resources/hyperdrive/
📖
GettingStarted
https://developers.cloudflare.com/hyperdrive/get-started/

Specifications

Schemas & Data

Other Resources

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/cloudflare:cloudflare-images-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

cloudflare-images-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloudflare Images API
  version: '1.0'
  description: 'Operations tagged Images across 2 of this provider''s published API definitions: cloudflare-images-openapi.yml, cloudflare-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.cloudflare.com/client/v4
  description: Cloudflare API v4 Production Server
tags:
- name: Images
  description: Upload, list, update, and delete image assets.
paths:
  /accounts/{account_id}/images/v1:
    get:
      operationId: listImages
      summary: Cloudflare List Images
      description: Returns a paginated list of all images in the account.
      tags:
      - Images
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - name: page
        in: query
        description: Page number for pagination.
        schema:
          type: integer
        example: 10
      - name: per_page
        in: query
        description: Number of images per page.
        schema:
          type: integer
        example: 10
      responses:
        '200':
          description: List of images.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageListResponse'
              examples:
                Listimages200Example:
                  summary: Default listImages 200 response
                  x-microcks-default: true
                  value:
                    result:
                      images:
                      - {}
                    success: true
        '401':
          description: Unauthorized.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      security:
      - bearerAuth: []
    post:
      operationId: uploadImage
      summary: Cloudflare Upload Image
      description: Upload an image via file upload or URL. Supports JPEG, PNG, GIF, WebP, and SVG formats.
      tags:
      - Images
      parameters:
      - $ref: '#/components/parameters/AccountId'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: The image file to upload.
                url:
                  type: string
                  format: uri
                  description: URL of an image to fetch and store.
                id:
                  type: string
                  description: Custom identifier for the image.
                metadata:
                  type: object
                  description: User-defined metadata.
                requireSignedURLs:
                  type: boolean
                  description: Whether signed URLs are required.
            examples:
              UploadimageRequestExample:
                summary: Default uploadImage request
                x-microcks-default: true
                value:
                  file: example_value
                  url: https://www.example.com
                  id: abc123
                  metadata: example_value
                  requireSignedURLs: https://www.example.com
      responses:
        '200':
          description: Image uploaded successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageResponse'
              examples:
                Uploadimage200Example:
                  summary: Default uploadImage 200 response
                  x-microcks-default: true
                  value:
                    result:
                      id: abc123
                      filename: example_value
                      metadata: example_value
                      uploaded: '2026-01-15T10:30:00Z'
                      requireSignedURLs: https://www.example.com
                      variants:
                      - {}
                    success: true
                    errors:
                    - {}
                    messages:
                    - {}
        '400':
          description: Bad request.
        '401':
          description: Unauthorized.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      security:
      - bearerAuth: []
    servers:
    - url: https://api.cloudflare.com/client/v4
      description: Cloudflare API v4 Production Server
  /accounts/{account_id}/images/v1/{image_id}:
    get:
      operationId: getImage
      summary: Cloudflare Get Image Details
      description: Retrieve details of a specific image.
      tags:
      - Images
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/ImageId'
      responses:
        '200':
          description: Image details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageResponse'
              examples:
                Getimage200Example:
                  summary: Default getImage 200 response
                  x-microcks-default: true
                  value:
                    result:
                      id: abc123
                      filename: example_value
                      metadata: example_value
                      uploaded: '2026-01-15T10:30:00Z'
                      requireSignedURLs: https://www.example.com
                      variants:
                      - {}
                    success: true
                    errors:
                    - {}
                    messages:
                    - {}
        '401':
          description: Unauthorized.
        '404':
          description: Image not found.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      security:
      - bearerAuth: []
    patch:
      operationId: updateImage
      summary: Cloudflare Update Image
      description: Update image metadata and settings.
      tags:
      - Images
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/ImageId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                metadata:
                  type: object
                requireSignedURLs:
                  type: boolean
            examples:
              UpdateimageRequestExample:
                summary: Default updateImage request
                x-microcks-default: true
                value:
                  metadata: example_value
                  requireSignedURLs: https://www.example.com
      responses:
        '200':
          description: Image updated.
        '401':
          description: Unauthorized.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      security:
      - bearerAuth: []
    delete:
      operationId: deleteImage
      summary: Cloudflare Delete Image
      description: Delete an image and all its variants.
      tags:
      - Images
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/ImageId'
      responses:
        '200':
          description: Image deleted.
        '401':
          description: Unauthorized.
        '404':
          description: Image not found.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      security:
      - bearerAuth: []
    servers:
    - url: https://api.cloudflare.com/client/v4
      description: Cloudflare API v4 Production Server
  /zones/{zone_id}/images/v1/flows:
    get:
      operationId: get_FlowsGet
      summary: Get transformation flows
      description: Get the current transformation flows configuration for a zone.
      parameters:
      - name: zone_id
        in: path
        description: Zone identifier.
        required: true
        schema:
          description: Zone identifier.
          type: string
          x-auditable: true
      responses:
        '200':
          description: Get flows config
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: object
                    properties:
                      etag:
                        type: string
                      flows:
                        type: array
                        items:
                          oneOf:
                          - properties:
                              enabled:
                                type: boolean
                                x-auditable: true
                              provider:
                                type: string
                                enum:
                                - fastly
                                x-auditable: true
                              type:
                                type: string
                                enum:
                                - provider
                              version:
                                type: number
                            required:
                            - enabled
                            - type
                            - provider
                            - version
                            type: object
                          - properties:
                              enabled:
                                type: boolean
                                x-auditable: true
                              name:
                                type: string
                                x-auditable: true
                              transformations:
                                type: array
                                items:
                                  properties:
                                    key:
                                      type: string
                                    value:
                                      type: string
                                  required:
                                  - key
                                  - value
                                  type: object
                              trigger:
                                oneOf:
                                - properties:
                                    triggers:
                                      type: array
                                      items:
                                        type: object
                                      minItems: 1
                                    type:
                                      type: string
                                      enum:
                                      - and
                                  required:
                                  - type
                                  - triggers
                                  type: object
                                - properties:
                                    triggers:
                                      type: array
                                      items:
                                        type: object
                                      minItems: 1
                                    type:
                                      type: string
                                      enum:
                                      - or
                                  required:
                                  - type
                                  - triggers
                                  type: object
                                - properties:
                                    paths:
                                      type: array
                                      items:
                                        type: string
                                    type:
                                      type: string
                                      enum:
                                      - path
                                  required:
                                  - type
                                  - paths
                                  type: object
                                - properties:
                                    extensions:
                                      type: array
                                      items:
                                        type: string
                                    type:
                                      type: string
                                      enum:
                                      - extension
                                  required:
                                  - type
                                  - extensions
                                  type: object
                                - properties:
                                    params:
                                      type: array
                                      items:
                                        properties:
                                          key:
                                            type: string
                                          value:
                                            type: string
                                        required:
                                        - key
                                        - value
                                        type: object
                                    type:
                                      type: string
                                      enum:
                                      - query-param
                                  required:
                                  - type
                                  - params
                                  type: object
                              type:
                                type: string
                                enum:
                                - custom
                            required:
                            - enabled
                            - type
                            - name
                            - trigger
                            - transformations
                            type: object
                        maxItems: 10
                      version:
                        type: number
                        enum:
                        - 2
                        x-fern-property-name: config-version
                    required:
                    - version
                    - flows
                  success:
                    type: boolean
                required:
                - success
                - result
        4XX:
          description: Get flows config failure
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                  success:
                    type: boolean
                required:
                - success
                - error
      security:
      - api_token: []
      tags:
      - Images
      x-fern-availability: generally-available
      x-fern-sdk-group-name: images.flows
      x-fern-sdk-method-name: get
      x-stability: stable
    put:
      operationId: put_FlowsUpdate
      summary: Update transformation flows
      description: Replace the entire transformation flows configuration for a zone.
      parameters:
      - name: zone_id
        in: path
        description: Zone identifier.
        required: true
        schema:
          description: Zone identifier.
          type: string
          x-auditable: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                etag:
                  type: string
                flows:
                  type: array
                  items:
                    oneOf:
                    - properties:
                        enabled:
                          type: boolean
                          x-auditable: true
                        provider:
                          type: string
                          enum:
                          - fastly
                          x-auditable: true
                        type:
                          type: string
                          enum:
                          - provider
                        version:
                          type: number
                      required:
                      - enabled
                      - type
                      - provider
                      - version
                      type: object
                    - properties:
                        enabled:
                          type: boolean
                          x-auditable: true
                        name:
                          type: string
                          x-auditable: true
                        transformations:
                          type: array
                          items:
                            properties:
                              key:
                                type: string
                              value:
                                type: string
                            required:
                            - key
                            - value
                            type: object
                        trigger:
                          oneOf:
                          - properties:
                              triggers:
                                type: array
                                items:
                                  type: object
                                minItems: 1
                              type:
                                type: string
                                enum:
                                - and
                            required:
                            - type
                            - triggers
                            type: object
                          - properties:
                              triggers:
                                type: array
                                items:
                                  type: object
                                minItems: 1
                              type:
                                type: string
                                enum:
                                - or
                            required:
                            - type
                            - triggers
                            type: object
                          - properties:
                              paths:
                                type: array
                                items:
                                  type: string
                              type:
                                type: string
                                enum:
                                - path
                            required:
                            - type
                            - paths
                            type: object
                          - properties:
                              extensions:
                                type: array
                                items:
                                  type: string
                              type:
                                type: string
                                enum:
                                - extension
                            required:
                            - type
                            - extensions
                            type: object
                          - properties:
                              params:
                                type: array
                                items:
                                  properties:
                                    key:
                                      type: string
                                    value:
                                      type: string
                                  required:
                                  - key
                                  - value
                                  type: object
                              type:
                                type: string
                                enum:
                                - query-param
                            required:
                            - type
                            - params
                            type: object
                        type:
                          type: string
                          enum:
                          - custom
                      required:
                      - enabled
                      - type
                      - name
                      - trigger
                      - transformations
                      type: object
                  maxItems: 10
                version:
                  type: number
                  enum:
                  - 2
                  x-fern-property-name: config-version
              required:
              - version
              - flows
      responses:
        '200':
          description: Update flows config
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: object
                    properties:
                      etag:
                        type: string
                      flows:
                        type: array
                        items:
                          oneOf:
                          - properties:
                              enabled:
                                type: boolean
                                x-auditable: true
                              provider:
                                type: string
                                enum:
                                - fastly
                                x-auditable: true
                              type:
                                type: string
                                enum:
                                - provider
                              version:
                                type: number
                            required:
                            - enabled
                            - type
                            - provider
                            - version
                            type: object
                          - properties:
                              enabled:
                                type: boolean
                                x-auditable: true
                              name:
                                type: string
                                x-auditable: true
                              transformations:
                                type: array
                                items:
                                  properties:
                                    key:
                                      type: string
                                    value:
                                      type: string
                                  required:
                                  - key
                                  - value
                                  type: object
                              trigger:
                                oneOf:
                                - properties:
                                    triggers:
                                      type: array
                                      items:
                                        type: object
                                      minItems: 1
                                    type:
                                      type: string
                                      enum:
                                      - and
                                  required:
                                  - type
                                  - triggers
                                  type: object
                                - properties:
                                    triggers:
                                      type: array
                                      items:
                                        type: object
                                      minItems: 1
                                    type:
                                      type: string
                                      enum:
                                      - or
                                  required:
                                  - type
                                  - triggers
                                  type: object
                                - properties:
                                    paths:
                                      type: array
                                      items:
                                        type: string
                                    type:
                                      type: string
                                      enum:
                                      - path
                                  required:
                                  - type
                                  - paths
                                  type: object
                                - properties:
                                    extensions:
                                      type: array
                                      items:
                                        type: string
                                    type:
                                      type: string
                                      enum:
                                      - extension
                                  required:
                                  - type
                                  - extensions
                                  type: object
                                - properties:
                                    params:
                                      type: array
                                      items:
                                        properties:
                                          key:
                                            type: string
                                          value:
                                            type: string
                                        required:
                                        - key
                                        - value
                                        type: object
                                    type:
                                      type: string
                                      enum:
                                      - query-param
                                  required:
                                  - type
                                  - params
                                  type: object
                              type:
                                type: string
                                enum:
                                - custom
                            required:
                            - enabled
                            - type
                            - name
                            - trigger
                            - transformations
                            type: object
                        maxItems: 10
                      version:
                        type: number
                        enum:
                        - 2
                        x-fern-property-name: config-version
                    required:
                    - version
                    - flows
                  success:
                    type: boolean
                required:
                - success
                - result
        4XX:
          description: Update flows config failure
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                  success:
                    type: boolean
                required:
                - success
                - error
      security:
      - api_token: []
      tags:
      - Images
      x-fern-availability: generally-available
      x-fern-sdk-group-name: images.flows
      x-fern-sdk-method-name: update
      x-stability: stable
    servers:
    - description: Client API
      url: https://api.cloudflare.com/client/v4
components:
  parameters:
    AccountId:
      name: account_id
      in: path
      required: true
      description: The unique identifier of the Cloudflare account.
      schema:
        type: string
    ImageId:
      name: image_id
      in: path
      required: true
      description: The unique identifier of the image.
      schema:
        type: string
  schemas:
    ImageResponse:
      type: object
      properties:
        result:
          $ref: '#/components/schemas/Image'
        success:
          type: boolean
          example: true
        errors:
          type: array
          items:
            type: object
          example: []
        messages:
          type: array
          items:
            type: object
          example: []
    Image:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the image.
          example: abc123
        filename:
          type: string
          description: Original filename.
          example: example_value
        metadata:
          type: object
          description: User-defined metadata.
          example: example_value
        uploaded:
          type: string
          format: date-time
          description: Upload timestamp.
          example: '2026-01-15T10:30:00Z'
        requireSignedURLs:
          type: boolean
          example: https://www.example.com
        variants:
          type: array
          items:
            type: string
            format: uri
          description: URLs for each variant of the image.
          example: []
    ImageListResponse:
      type: object
      properties:
        result:
          type: object
          properties:
            images:
              type: array
              items:
                $ref: '#/components/schemas/Image'
          example: example_value
        success:
          type: boolean
          example: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API token with Images permissions.
    api_email:
      in: header
      name: X-Auth-Email
      type: apiKey
    api_key:
      in: header
      name: X-Auth-Key
      type: apiKey
    api_token:
      scheme: bearer
      type: http
    user_service_key:
      in: header
      name: X-Auth-User-Service-Key
      type: apiKey
x-refined-from:
- cloudflare-images-openapi.yml
- cloudflare-openapi.json
x-provenance:
  method: harvested
  publisher: Cloudflare
  source: https://developers.cloudflare.com/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)