Documentation Index

Fetch the complete documentation index at: https://cloudinary.com/documentation/llms.txt

Use this file to discover all available pages before exploring further.

v0.2.0OAS 3.0.3

Analyze API (Beta)

Download OpenAPI Document

Overview

The Analyze API provides a mechanism for analyzing your assets programmatically. Select an analysis type and return details about your assets based on the type of analysis requested. Run analysis on assets stored with Cloudinary, or located externally.

Take advantage of Cloudinary AI Vision for visual content queries or perform analysis using a variety of models included with Cloudinary AI Content Analysis.

See the Analyze API guide for more details about the analysis options and how to use the API.

Notes:

  • The Analyze API is currently in development and is available as a Public Beta. There may be minor changes to parameter names or other implementation details before the general access release. We value your feedback, so please feel free to share any thoughts with us.
  • The analysis options require an active subscription to the relevant add-on. Learn more about registering for add-ons.

Authentication

The Analyze API supports both Basic Authentication using your Cloudinary API Key and API Secret (which can be found on the Dashboard page of your Cloudinary Console) or OAuth2 (Contact support for more information regarding OAuth).

Analyze - AI Vision General

Provides detailed answers to diverse questions about an image using AI Vision General mode.

Users can inquire about any aspect of an image, such as identifying objects, understanding scenes, or interpreting text within the image.

Body Required application/json

A JSON object containing request parameters

AnalyzeAIVisionGeneralRequest
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"
  • prompts string[]

    One or more prompts of open questions or tasks with an open answer

    min items 1max items 10

Responses

200 Analysis succeeded
application/json
AnalyzeAIVisionGeneralResponse
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis AIVisionGeneralAnalysisData
      ShowHide child attributes of analysis
      • responses object[]Required
        ShowHide child attributes of responses
        Items object
        • value string
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
202 Analysis accepted
application/json
AsyncOperationAcceptedResponse
  • data object
    ShowHide child attributes of data
    • task_id stringRequired
    • status stringRequired

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
POST/analyze/ai_vision_general
curl -X POST 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/analyze/ai_vision_general' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "source": {
    "uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  },
  "prompts": [
    "Describe this image in detail",
    "Does this image contain an insect?"
  ]
}'
Response
{
  "data": {
    "entity": "string",
    "analysis": {
      "responses": [
        {
          "value": "The image contains one cat."
        },
        {
          "value": "The cat is on top of the table."
        }
      ],
      "model_version": 1
    }
  },
  "limits": {
    "items": [
      {
        "type": "ai_vision",
        "used_by_request": 123,
        "remaining": 500,
        "limit": 10000,
        "reset_time": "2024-01-20T12:34:56Z"
      }
    ]
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Analyze - AI Vision Moderation

Evaluates an image against multiple yes/no questions, responding with "yes," "no," or "unknown."

This allows for nuanced evaluation of whether the image adheres to specific content policies, creative specs, or aesthetic criteria.

Body Required application/json

A JSON object containing request parameters

AnalyzeAIVisionModerationRequest
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"
  • rejection_questions string[]

    A list of yes/no questions

    min items 1max items 10

Responses

200 Analysis succeeded
application/json
AnalyzeAIVisionModerationResponse
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis AIVisionModerationAnalysisData
      ShowHide child attributes of analysis
      • responses object[]Required
        ShowHide child attributes of responses
        Items object
        • prompt string
        • value string
          enum "yes" "no" "unknown"
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
202 Analysis accepted
application/json
AsyncOperationAcceptedResponse
  • data object
    ShowHide child attributes of data
    • task_id stringRequired
    • status stringRequired

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
POST/analyze/ai_vision_moderation
curl -X POST 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/analyze/ai_vision_moderation' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "source": {
    "uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  },
  "rejection_questions": [
    "Does this image contain any violent activity?",
    "Is there any nudity in the image?"
  ]
}'
Response
{
  "data": {
    "entity": "string",
    "analysis": {
      "responses": [
        {
          "prompt": "Does the image contain any violent activity?",
          "value": "no"
        },
        {
          "prompt": "Is there any nudity in the image?",
          "value": "yes"
        }
      ],
      "model_version": 1
    }
  },
  "limits": {
    "items": [
      {
        "type": "ai_vision",
        "used_by_request": 123,
        "remaining": 500,
        "limit": 10000,
        "reset_time": "2024-01-20T12:34:56Z"
      }
    ]
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Analyze - AI Vision Tagging

Tags an image based on a list of custom tag names and their corresponding descriptions.

If the image matches a description, it's appropriately tagged. This allows you to align metadata with your own brand taxonomy, offering a dynamic, flexible, and open method for image classification.

Body Required application/json

A JSON object containing request parameters

AnalyzeAIVisionTaggingRequest
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"
  • tag_definitions object[]Required
    min items 1max items 10
    ShowHide child attributes of tag_definitions
    Items object
    • name stringRequired

      The name of the tag to apply. This can be any string and does not affect the decision process

      example "cigarettes"
    • description stringRequired

      A description to be used by the AI to determine whether the tag should be applied

      example "Does the image contain a pack of cigarettes?"

Responses

200 Analysis succeeded
application/json
AnalyzeAIVisionTaggingResponse
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis AIVisionTaggingAnalysisData
      ShowHide child attributes of analysis
      • tags object[]Required
        example [{"name":"cat"},{"name":"table"}]
        ShowHide child attributes of tags
        Items object
        • name string
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
202 Analysis accepted
application/json
AsyncOperationAcceptedResponse
  • data object
    ShowHide child attributes of data
    • task_id stringRequired
    • status stringRequired

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
POST/analyze/ai_vision_tagging
curl -X POST 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/analyze/ai_vision_tagging' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "source": {
    "uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  },
  "tag_definitions": [
    {
      "name": "cigarettes",
      "description": "Does the image contain a pack of cigarettes?"
    },
    {
      "name": "furniture",
      "description": "Does the image contain any tables, chairs, couches or sofas?"
    }
  ]
}'
Response
{
  "data": {
    "entity": "string",
    "analysis": {
      "tags": [
        {
          "name": "cat"
        },
        {
          "name": "table"
        }
      ],
      "model_version": 1
    }
  },
  "limits": {
    "items": [
      {
        "type": "ai_vision",
        "used_by_request": 123,
        "remaining": 500,
        "limit": 10000,
        "reset_time": "2024-01-20T12:34:56Z"
      }
    ]
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Analyze - Captioning

Provides a caption for an image.

Body Required application/json

A JSON object containing request parameters

AnalyzeCaptioningRequest
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

Responses

200 Analysis succeeded
application/json
AnalyzeCaptioningResponse
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis CaptioningAnalysisData
      ShowHide child attributes of analysis
      • data objectRequired
        ShowHide child attributes of data
        • caption stringRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
202 Analysis accepted
application/json
AsyncOperationAcceptedResponse
  • data object
    ShowHide child attributes of data
    • task_id stringRequired
    • status stringRequired

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
POST/analyze/captioning
curl -X POST 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/analyze/captioning' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "source": {
    "uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  }
}'
Response
{
  "data": {
    "entity": "string",
    "analysis": {
      "data": {
        "caption": "A cat sitting on a table"
      },
      "model_version": 1
    }
  },
  "limits": {
    "items": [
      {
        "type": "ai_vision",
        "used_by_request": 123,
        "remaining": 500,
        "limit": 10000,
        "reset_time": "2024-01-20T12:34:56Z"
      }
    ]
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Analyze - Cld-Fashion

Analyzes an image using the cld-fashion content-aware detection model.

Cloudinary's fashion model is specifically dedicated to items of clothing. The response includes attributes of the clothing identified, for example whether the garment contains pockets, its material and the fastenings used.

Body Required application/json

A JSON object containing request parameters

AnalyzeCldFashionRequest
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

Responses

200 Analysis succeeded
application/json
AnalyzeCldFashionResponse
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis CldFashionAnalysisData
      ShowHide child attributes of analysis
      • tags objectRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
202 Analysis accepted
application/json
AsyncOperationAcceptedResponse
  • data object
    ShowHide child attributes of data
    • task_id stringRequired
    • status stringRequired

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
POST/analyze/cld_fashion
curl -X POST 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/analyze/cld_fashion' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "source": {
    "uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  }
}'
Response
{
  "data": {
    "entity": "string",
    "analysis": {
      "tags": {},
      "model_version": 1
    }
  },
  "limits": {
    "items": [
      {
        "type": "ai_vision",
        "used_by_request": 123,
        "remaining": 500,
        "limit": 10000,
        "reset_time": "2024-01-20T12:34:56Z"
      }
    ]
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Analyze - Cld-Text

Analyzes an image using the cld-text content-aware detection model.

Cloudinary's text model tells you if your image includes text, and where it's located. Used with image tagging, you can then search for images that contain blocks of text. Used with object-aware cropping, you can choose to keep only the text part, or specify a crop that avoids the text.

Body Required application/json

A JSON object containing request parameters

AnalyzeCldTextRequest
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

Responses

200 Analysis succeeded
application/json
AnalyzeCldTextResponse
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis CldTextAnalysisData
      ShowHide child attributes of analysis
      • tags objectRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
202 Analysis accepted
application/json
AsyncOperationAcceptedResponse
  • data object
    ShowHide child attributes of data
    • task_id stringRequired
    • status stringRequired

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
POST/analyze/cld_text
curl -X POST 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/analyze/cld_text' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "source": {
    "uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  }
}'
Response
{
  "data": {
    "entity": "string",
    "analysis": {
      "tags": {},
      "model_version": 1
    }
  },
  "limits": {
    "items": [
      {
        "type": "ai_vision",
        "used_by_request": 123,
        "remaining": 500,
        "limit": 10000,
        "reset_time": "2024-01-20T12:34:56Z"
      }
    ]
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Analyze - Coco

Analyzes an image using the coco content-aware detection model.

The Common Objects in Context model contains just 80 common objects.

Body Required application/json

A JSON object containing request parameters

AnalyzeCocoRequest
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

Responses

200 Analysis succeeded
application/json
AnalyzeCocoResponse
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis CocoAnalysisData
      ShowHide child attributes of analysis
      • tags objectRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
202 Analysis accepted
application/json
AsyncOperationAcceptedResponse
  • data object
    ShowHide child attributes of data
    • task_id stringRequired
    • status stringRequired

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
POST/analyze/coco
curl -X POST 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/analyze/coco' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "source": {
    "uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  }
}'
Response
{
  "data": {
    "entity": "string",
    "analysis": {
      "tags": {},
      "model_version": 1
    }
  },
  "limits": {
    "items": [
      {
        "type": "ai_vision",
        "used_by_request": 123,
        "remaining": 500,
        "limit": 10000,
        "reset_time": "2024-01-20T12:34:56Z"
      }
    ]
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Analyze - Google Logo Detection

Detects popular product logos within an image.

Body Required application/json

A JSON object containing request parameters

AnalyzeGoogleLogoDetectionRequest
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

Responses

200 Analysis succeeded
application/json
AnalyzeGoogleLogoDetectionResponse
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis GoogleLogoDetectionAnalysisData
      ShowHide child attributes of analysis
      • logo_annotations object[]Required
        ShowHide child attributes of logo_annotations
        Items object
        • mid string
        • description stringRequired
        • score numberRequired
        • bounding_poly objectRequired
          ShowHide child attributes of bounding_poly
          • vertices object[]
            ShowHide child attributes of vertices
            Items object
            • x integer
            • y integer
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
POST/analyze/google_logo_detection
curl -X POST 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/analyze/google_logo_detection' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "source": {
    "uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  }
}'
Response
{
  "data": {
    "entity": "string",
    "analysis": {
      "logo_annotations": [
        {
          "mid": "/m/045c7b",
          "description": "google",
          "score": 0.980325,
          "bounding_poly": {
            "vertices": [
              {
                "x": 12,
                "y": 42
              },
              {
                "x": 439,
                "y": 42
              },
              {
                "x": 439,
                "y": 285
              },
              {
                "x": 12,
                "y": 285
              }
            ]
          }
        }
      ]
    }
  },
  "limits": {
    "items": [
      {
        "type": "ai_vision",
        "used_by_request": 123,
        "remaining": 500,
        "limit": 10000,
        "reset_time": "2024-01-20T12:34:56Z"
      }
    ]
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Analyze - Google Tagging

Provides tags for an image using Google's tagging service.

Body Required application/json

A JSON object containing request parameters

AnalyzeGoogleTaggingRequest
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

Responses

200 Analysis succeeded
application/json
AnalyzeGoogleTaggingResponse
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis GoogleTaggingAnalysisData
      ShowHide child attributes of analysis
      • label_annotations objectRequired
        ShowHide child attributes of label_annotations
        • labels object[]
          ShowHide child attributes of labels
          Items object
          • label stringRequired
          • score numberRequired
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
202 Analysis accepted
application/json
AsyncOperationAcceptedResponse
  • data object
    ShowHide child attributes of data
    • task_id stringRequired
    • status stringRequired

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
POST/analyze/google_tagging
curl -X POST 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/analyze/google_tagging' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "source": {
    "uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  }
}'
Response
{
  "data": {
    "entity": "string",
    "analysis": {
      "label_annotations": {
        "labels": [
          {
            "label": "cat",
            "score": 0.9
          },
          {
            "label": "table",
            "score": 0.8
          }
        ]
      }
    }
  },
  "limits": {
    "items": [
      {
        "type": "ai_vision",
        "used_by_request": 123,
        "remaining": 500,
        "limit": 10000,
        "reset_time": "2024-01-20T12:34:56Z"
      }
    ]
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Analyze - Human Anatomy

Analyzes an image using the human-anatomy content-aware detection model.

Cloudinary's human anatomy model identifies parts of the human body in an image. It works best when the majority of a human body is detected in the image.

Body Required application/json

A JSON object containing request parameters

AnalyzeHumanAnatomyRequest
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

Responses

200 Analysis succeeded
application/json
AnalyzeHumanAnatomyResponse
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis HumanAnatomyAnalysisData
      ShowHide child attributes of analysis
      • tags objectRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
202 Analysis accepted
application/json
AsyncOperationAcceptedResponse
  • data object
    ShowHide child attributes of data
    • task_id stringRequired
    • status stringRequired

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
POST/analyze/human_anatomy
curl -X POST 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/analyze/human_anatomy' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "source": {
    "uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  }
}'
Response
{
  "data": {
    "entity": "string",
    "analysis": {
      "tags": {},
      "model_version": 1
    }
  },
  "limits": {
    "items": [
      {
        "type": "ai_vision",
        "used_by_request": 123,
        "remaining": 500,
        "limit": 10000,
        "reset_time": "2024-01-20T12:34:56Z"
      }
    ]
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Analyze - Image Quality Analysis

Analyzes an image using the Image Quality Analysis model.

Body Required application/json

A JSON object containing request parameters

AnalyzeImageQualityRequest
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

Responses

200 Analysis succeeded
application/json
AnalyzeImageQualityResponse
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis ImageQualityAnalysisData
      ShowHide child attributes of analysis
      • quality string
        example "medium"
      • score number
        example 0.45218
      • confidence number
        example 0.8
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
202 Analysis accepted
application/json
AsyncOperationAcceptedResponse
  • data object
    ShowHide child attributes of data
    • task_id stringRequired
    • status stringRequired

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
POST/analyze/image_quality
curl -X POST 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/analyze/image_quality' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "source": {
    "uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  }
}'
Response
{
  "data": {
    "entity": "string",
    "analysis": {
      "quality": "medium",
      "score": 0.45218,
      "confidence": 0.8,
      "model_version": 1
    }
  },
  "limits": {
    "items": [
      {
        "type": "ai_vision",
        "used_by_request": 123,
        "remaining": 500,
        "limit": 10000,
        "reset_time": "2024-01-20T12:34:56Z"
      }
    ]
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Analyze - Lvis

Analyzes an image using the lvis content-aware detection model.

The Large Vocabulary Instance Segmentation model contains thousands of general objects.

Body Required application/json

A JSON object containing request parameters

AnalyzeLvisRequest
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

Responses

200 Analysis succeeded
application/json
AnalyzeLvisResponse
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis LvisAnalysisData
      ShowHide child attributes of analysis
      • tags objectRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
202 Analysis accepted
application/json
AsyncOperationAcceptedResponse
  • data object
    ShowHide child attributes of data
    • task_id stringRequired
    • status stringRequired

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
POST/analyze/lvis
curl -X POST 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/analyze/lvis' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "source": {
    "uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  }
}'
Response
{
  "data": {
    "entity": "string",
    "analysis": {
      "tags": {},
      "model_version": 1
    }
  },
  "limits": {
    "items": [
      {
        "type": "ai_vision",
        "used_by_request": 123,
        "remaining": 500,
        "limit": 10000,
        "reset_time": "2024-01-20T12:34:56Z"
      }
    ]
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Analyze - Shop Classifier

Analyzes an image using the shop-classifier content-aware detection model.

Cloudinary's shop-classifier model detects if the image is a product image taken in a studio, or if it's a natural image.

Body Required application/json

A JSON object containing request parameters

AnalyzeShopClassifierRequest
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

Responses

200 Analysis succeeded
application/json
AnalyzeShopClassifierResponse
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis ShopClassifierAnalysisData
      ShowHide child attributes of analysis
      • tags objectRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
202 Analysis accepted
application/json
AsyncOperationAcceptedResponse
  • data object
    ShowHide child attributes of data
    • task_id stringRequired
    • status stringRequired

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
POST/analyze/shop_classifier
curl -X POST 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/analyze/shop_classifier' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "source": {
    "uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  }
}'
Response
{
  "data": {
    "entity": "string",
    "analysis": {
      "tags": {},
      "model_version": 1
    }
  },
  "limits": {
    "items": [
      {
        "type": "ai_vision",
        "used_by_request": 123,
        "remaining": 500,
        "limit": 10000,
        "reset_time": "2024-01-20T12:34:56Z"
      }
    ]
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Analyze - Unidet

Analyzes an image using the unidet content-aware detection model.

The UniDet model is a unified model, combining a number of object models, including Objects365, which focuses on diverse objects in the wild.

Body Required application/json

A JSON object containing request parameters

AnalyzeUnidetRequest
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

Responses

200 Analysis succeeded
application/json
AnalyzeUnidetResponse
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis UnidetAnalysisData
      ShowHide child attributes of analysis
      • tags objectRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
202 Analysis accepted
application/json
AsyncOperationAcceptedResponse
  • data object
    ShowHide child attributes of data
    • task_id stringRequired
    • status stringRequired

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
POST/analyze/unidet
curl -X POST 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/analyze/unidet' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "source": {
    "uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  }
}'
Response
{
  "data": {
    "entity": "string",
    "analysis": {
      "tags": {},
      "model_version": 1
    }
  },
  "limits": {
    "items": [
      {
        "type": "ai_vision",
        "used_by_request": 123,
        "remaining": 500,
        "limit": 10000,
        "reset_time": "2024-01-20T12:34:56Z"
      }
    ]
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Analyze - Watermark Detection

Analyzes an image using the Watermark Detection detection model.

Body Required application/json

A JSON object containing request parameters

AnalyzeWatermarkDetectionRequest
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

Responses

200 Analysis succeeded
application/json
AnalyzeWatermarkDetectionResponse
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis WatermarkDetectionAnalysisData
      ShowHide child attributes of analysis
      • detections object[]
        example [{"name":"banner","confidence":0.99}]
        ShowHide child attributes of detections
        Items object
        • name stringRequired
          example "banner"
        • confidence numberRequired
          example 0.99
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
202 Analysis accepted
application/json
AsyncOperationAcceptedResponse
  • data object
    ShowHide child attributes of data
    • task_id stringRequired
    • status stringRequired

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
POST/analyze/watermark_detection
curl -X POST 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/analyze/watermark_detection' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "source": {
    "uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  }
}'
Response
{
  "data": {
    "entity": "string",
    "analysis": {
      "detections": [
        {
          "name": "banner",
          "confidence": 0.99
        }
      ],
      "model_version": 1
    }
  },
  "limits": {
    "items": [
      {
        "type": "ai_vision",
        "used_by_request": 123,
        "remaining": 500,
        "limit": 10000,
        "reset_time": "2024-01-20T12:34:56Z"
      }
    ]
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Tasks

Query the status of analysis tasks.

Get analysis task status

Retrieves the status of an analysis task.

Path parameters

  • task_id stringRequired

    The ID of the analysis task

    example "053f4bde4b933c8ecef23724ecde63b667c1ea21816d56c161c7ec1df6297da4b43109625650e9edf0f42152cc4cc32c8ad57824ac75ba8e05020f827c415559ac1248076a2d72c0a73af0479cca77eb"

Responses

200 Analysis task status
application/json
GetTaskStatusResponse
  • data object
    ShowHide child attributes of data
    • task_id string
      example "053f4bde4b933c8ecef23724ecde63b667c1ea21816d56c161c7ec1df6297da4b43109625650e9edf0f42152cc4cc32c8ad57824ac75ba8e05020f827c415559ac1248076a2d72c0a73af0479cca77eb"
    • status string

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
400 Bad request
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
401 Unauthorized
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
403 Forbidden
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
404 Not found
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
429 Rate limited
application/json
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
500 Internal server error
application/json
ErrorResponse
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
GET/tasks/{task_id}
curl 'https://api.cloudinary.com/v2/analysis/CLOUD_NAME/tasks/053f4bde4b933c8ecef23724ecde63b667c1ea21816d56c161c7ec1df6297da4b43109625650e9edf0f42152cc4cc32c8ad57824ac75ba8e05020f827c415559ac1248076a2d72c0a73af0479cca77eb' \
  -u 'API_KEY:API_SECRET'
Response
{
  "data": {
    "task_id": "053f4bde4b933c8ecef23724ecde63b667c1ea21816d56c161c7ec1df6297da4b43109625650e9edf0f42152cc4cc32c8ad57824ac75ba8e05020f827c415559ac1248076a2d72c0a73af0479cca77eb",
    "status": "processing"
  },
  "request_id": "17c3b70c5096df0e77e838323abb7029"
}

Models

Source

Show schema
object
One of
With asset_id

Requires asset_id.

With uri

Requires uri.

  • asset_id string

    The asset ID to analyze

    example "e12345b5c456c8901bbb0efc00c0fcf"
  • uri string

    The URI of the asset to analyze

    format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"

BaseAnalyzeRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

AnalyzeAIVisionGeneralRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"
  • prompts string[]

    One or more prompts of open questions or tasks with an open answer

    min items 1max items 10

AnalyzeAIVisionModerationRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"
  • rejection_questions string[]

    A list of yes/no questions

    min items 1max items 10

AnalyzeAIVisionTaggingRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"
  • tag_definitions object[]Required
    min items 1max items 10
    ShowHide child attributes of tag_definitions
    Items object
    • name stringRequired

      The name of the tag to apply. This can be any string and does not affect the decision process

      example "cigarettes"
    • description stringRequired

      A description to be used by the AI to determine whether the tag should be applied

      example "Does the image contain a pack of cigarettes?"

AnalyzeCaptioningRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

AnalyzeCldFashionRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

AnalyzeCldTextRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

AnalyzeCocoRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

AnalyzeGoogleLogoDetectionRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

AnalyzeGoogleTaggingRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

AnalyzeHumanAnatomyRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

AnalyzeImageQualityRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

AnalyzeLvisRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

AnalyzeShopClassifierRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

AnalyzeUnidetRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

AnalyzeWatermarkDetectionRequest

Show schema
object
  • source SourceRequired
    ShowHide child attributes of source
    One of
    With asset_id

    Requires asset_id.

    With uri

    Requires uri.

    • asset_id string

      The asset ID to analyze

      example "e12345b5c456c8901bbb0efc00c0fcf"
    • uri string

      The URI of the asset to analyze

      format uri URIexample "https://res.cloudinary.com/demo/image/upload/sample.jpg"
  • async boolean

    Whether to perform the analysis asynchronously. If true, the response is returned immediately and analysis is done in the background. Once complete, a webhook notification will be sent to the specified URL and/or to the URLs defined in the Webhook Notifications settings of your Cloudinary Console.

  • notification_url string

    The webhook URL to notify when the analysis is complete. Only relevant when async is set to true.

    example "https://path.to/webhook"

BaseAnalyzeResponse

Show schema
object
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

AnalyzeAIVisionGeneralResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis AIVisionGeneralAnalysisData
      ShowHide child attributes of analysis
      • responses object[]Required
        ShowHide child attributes of responses
        Items object
        • value string
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

AIVisionGeneralAnalysisData

Show schema
object
  • responses object[]Required
    ShowHide child attributes of responses
    Items object
    • value string
  • model_version integer
    example 1

AnalyzeAIVisionModerationResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis AIVisionModerationAnalysisData
      ShowHide child attributes of analysis
      • responses object[]Required
        ShowHide child attributes of responses
        Items object
        • prompt string
        • value string
          enum "yes" "no" "unknown"
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

AIVisionModerationAnalysisData

Show schema
object
  • responses object[]Required
    ShowHide child attributes of responses
    Items object
    • prompt string
    • value string
      enum "yes" "no" "unknown"
  • model_version integer
    example 1

AnalyzeAIVisionTaggingResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis AIVisionTaggingAnalysisData
      ShowHide child attributes of analysis
      • tags object[]Required
        example [{"name":"cat"},{"name":"table"}]
        ShowHide child attributes of tags
        Items object
        • name string
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

AIVisionTaggingAnalysisData

Show schema
object
  • tags object[]Required
    example [{"name":"cat"},{"name":"table"}]
    ShowHide child attributes of tags
    Items object
    • name string
  • model_version integer
    example 1

AnalyzeCaptioningResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis CaptioningAnalysisData
      ShowHide child attributes of analysis
      • data objectRequired
        ShowHide child attributes of data
        • caption stringRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

CaptioningAnalysisData

Show schema
object
  • data objectRequired
    ShowHide child attributes of data
    • caption stringRequired
  • model_version integer
    example 1

AnalyzeCldFashionResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis CldFashionAnalysisData
      ShowHide child attributes of analysis
      • tags objectRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

CldFashionAnalysisData

Show schema
object
  • tags objectRequired
  • model_version integer
    example 1

AnalyzeCldTextResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis CldTextAnalysisData
      ShowHide child attributes of analysis
      • tags objectRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

CldTextAnalysisData

Show schema
object
  • tags objectRequired
  • model_version integer
    example 1

AnalyzeCocoResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis CocoAnalysisData
      ShowHide child attributes of analysis
      • tags objectRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

CocoAnalysisData

Show schema
object
  • tags objectRequired
  • model_version integer
    example 1

AnalyzeGoogleLogoDetectionResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis GoogleLogoDetectionAnalysisData
      ShowHide child attributes of analysis
      • logo_annotations object[]Required
        ShowHide child attributes of logo_annotations
        Items object
        • mid string
        • description stringRequired
        • score numberRequired
        • bounding_poly objectRequired
          ShowHide child attributes of bounding_poly
          • vertices object[]
            ShowHide child attributes of vertices
            Items object
            • x integer
            • y integer
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

GoogleLogoDetectionAnalysisData

Show schema
object
  • logo_annotations object[]Required
    ShowHide child attributes of logo_annotations
    Items object
    • mid string
    • description stringRequired
    • score numberRequired
    • bounding_poly objectRequired
      ShowHide child attributes of bounding_poly
      • vertices object[]
        ShowHide child attributes of vertices
        Items object
        • x integer
        • y integer

AnalyzeGoogleTaggingResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis GoogleTaggingAnalysisData
      ShowHide child attributes of analysis
      • label_annotations objectRequired
        ShowHide child attributes of label_annotations
        • labels object[]
          ShowHide child attributes of labels
          Items object
          • label stringRequired
          • score numberRequired
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

GoogleTaggingAnalysisData

Show schema
object
  • label_annotations objectRequired
    ShowHide child attributes of label_annotations
    • labels object[]
      ShowHide child attributes of labels
      Items object
      • label stringRequired
      • score numberRequired

AnalyzeHumanAnatomyResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis HumanAnatomyAnalysisData
      ShowHide child attributes of analysis
      • tags objectRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

HumanAnatomyAnalysisData

Show schema
object
  • tags objectRequired
  • model_version integer
    example 1

AnalyzeImageQualityResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis ImageQualityAnalysisData
      ShowHide child attributes of analysis
      • quality string
        example "medium"
      • score number
        example 0.45218
      • confidence number
        example 0.8
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

ImageQualityAnalysisData

Show schema
object
  • quality string
    example "medium"
  • score number
    example 0.45218
  • confidence number
    example 0.8
  • model_version integer
    example 1

AnalyzeLvisResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis LvisAnalysisData
      ShowHide child attributes of analysis
      • tags objectRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

LvisAnalysisData

Show schema
object
  • tags objectRequired
  • model_version integer
    example 1

AnalyzeShopClassifierResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis ShopClassifierAnalysisData
      ShowHide child attributes of analysis
      • tags objectRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

ShopClassifierAnalysisData

Show schema
object
  • tags objectRequired
  • model_version integer
    example 1

AnalyzeUnidetResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis UnidetAnalysisData
      ShowHide child attributes of analysis
      • tags objectRequired
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

UnidetAnalysisData

Show schema
object
  • tags objectRequired
  • model_version integer
    example 1

AnalyzeWatermarkDetectionResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • entity string
    • analysis WatermarkDetectionAnalysisData
      ShowHide child attributes of analysis
      • detections object[]
        example [{"name":"banner","confidence":0.99}]
        ShowHide child attributes of detections
        Items object
        • name stringRequired
          example "banner"
        • confidence numberRequired
          example 0.99
      • model_version integer
        example 1
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

WatermarkDetectionAnalysisData

Show schema
object
  • detections object[]
    example [{"name":"banner","confidence":0.99}]
    ShowHide child attributes of detections
    Items object
    • name stringRequired
      example "banner"
    • confidence numberRequired
      example 0.99
  • model_version integer
    example 1

TaskStatus

Show schema
string

The status of an async task

enum "pending" "processing" "completed" "failed"

LimitsResponse

Show schema
object
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time

LimitsObject

Show schema
object
  • items object[]
    ShowHide child attributes of items
    Items object
    • type stringRequired
      enum "google_tagging" "object_detection" "ai_vision"
    • used_by_request integernullable

      The amount of quota used by the current request

    • remaining integernullable

      The remaining quota

    • limit integernullable

      The total quota limit

    • reset_time stringnullable

      Time in UTC when the limit will be reset

      format date-time RFC 3339 date-time

Feature

Show schema
string
enum "google_tagging" "object_detection" "ai_vision"

ErrorCategory

Show schema
string
enum "user_error" "auth_error" "server_error" "rate_limit_error"

AsyncOperationAcceptedResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • task_id stringRequired
    • status stringRequired

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

BaseWebhookPayload

Show schema
object

Base payload for webhook notifications

  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • operation_name string
    example "analyze"
  • operation_type string
    enum "single" "bulk"
  • notification_type string
    example "analyze"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
  • task_id string
    example "053f4bde4b933c8ecef23724ecde63b667c1ea21816d56c161c7ec1df6297da4b43109625650e9edf0f42152cc4cc32c8ad57824ac75ba8e05020f827c415559ac1248076a2d72c0a73af0479cca77eb"
  • http_status integer
    example 200

AnalysisWebhookPayload

Show schema
object

Payload for webhook notifications for analysis operations

  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"
  • limits LimitsObjectnullable
    ShowHide child attributes of limits
    • items object[]
      ShowHide child attributes of items
      Items object
      • type stringRequired
        enum "google_tagging" "object_detection" "ai_vision"
      • used_by_request integernullable

        The amount of quota used by the current request

      • remaining integernullable

        The remaining quota

      • limit integernullable

        The total quota limit

      • reset_time stringnullable

        Time in UTC when the limit will be reset

        format date-time RFC 3339 date-time
  • operation_name string
    example "analyze"
  • operation_type string
    enum "single" "bulk"
  • notification_type string
    example "analyze"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"
  • task_id string
    example "053f4bde4b933c8ecef23724ecde63b667c1ea21816d56c161c7ec1df6297da4b43109625650e9edf0f42152cc4cc32c8ad57824ac75ba8e05020f827c415559ac1248076a2d72c0a73af0479cca77eb"
  • http_status integer
    example 200
  • data object

GetTaskStatusResponse

Show schema
object
  • data object
    ShowHide child attributes of data
    • task_id string
      example "053f4bde4b933c8ecef23724ecde63b667c1ea21816d56c161c7ec1df6297da4b43109625650e9edf0f42152cc4cc32c8ad57824ac75ba8e05020f827c415559ac1248076a2d72c0a73af0479cca77eb"
    • status string

      The status of an async task

      enum "pending" "processing" "completed" "failed"
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"

ErrorResponse

Show schema
object
  • error ErrorObjectnullable
    ShowHide child attributes of error
    • category string
      enum "user_error" "auth_error" "server_error" "rate_limit_error"
    • code string
      example "MA_00001"
    • message string
      example "missing parameters"
    • details object
    • request_id string
      example "17c3b70c5096df0e77e838323abb7029"

ErrorObject

Show schema
object
  • category string
    enum "user_error" "auth_error" "server_error" "rate_limit_error"
  • code string
    example "MA_00001"
  • message string
    example "missing parameters"
  • details object
  • request_id string
    example "17c3b70c5096df0e77e838323abb7029"