Amazon Rekognition Image Analysis API

Detect labels, objects, scenes, and concepts in images.

GitHub OpenAPI

Operations 1

POST /#DetectLabels Detect Labels #

Work with this as data

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

MCP server

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

https://apis.io/mcp

Tools for apis

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

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-rekognition:amazon-rekognition-image-analysis-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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

Get an API key

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

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

OpenAPI Specification

amazon-rekognition-image-analysis-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Rekognition Image Analysis API
  version: '2016-06-27'
  description: Generated from AWS's published Smithy model for Amazon Rekognition. 1 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://rekognition.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#DetectLabels:
    post:
      operationId: DetectLabels
      summary: Detect Labels
      description: Detects instances of real-world entities within an image (JPEG or PNG) provided as input. This includes
        objects like flower, tree, and table; events like wedding, graduation, and birthday party; and concepts like landscape,
        evening, and nature. For an example, see Analyzing images stored in an Amazon S3 bucket in the Amazon Rekognition
        Developer Guide. You pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon
        S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The
        image must be either a PNG or JPEG formatted file. Optional Parameters You can specify one or both of the GENERAL_LABELS
        and IMAGE_PROPERTIES feature types when calling the DetectLabels API. Including GENERAL_LABELS will ensure the response
        includes the labels detected in the input image, while including IMAGE_PROPERTIES will ensure the response includes
        information about the image quality and color. When using GENERAL_LABELS and/or IMAGE_PROPERTIES you can provide filtering
        criteria to the Settings parameter. You can filter with sets of individual labels or with label categories. You can
        specify inclusive filters, exclusive
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DetectLabelsResponse'
              example:
                Labels:
                - Confidence: 99.25072479248047
                  Name: People
                - Confidence: 99.25074005126953
                  Name: Person
        '400':
          description: AccessDeniedException; ImageTooLargeException; InvalidImageFormatException; InvalidParameterException;
            InvalidS3ObjectException; ProvisionedThroughputExceededException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerError; ThrottlingException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - RekognitionService.DetectLabels
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DetectLabelsRequest'
            example:
              Image:
                S3Object:
                  Bucket: mybucket
                  Name: myphoto
              MaxLabels: 123
              MinConfidence: 70
      tags:
      - Image Analysis
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: rekognition
  schemas:
    AccessDeniedException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
        Logref:
          type: string
          description: A universally unique identifier (UUID) for the request.
    BoundingBox:
      type: object
      properties:
        Width:
          type: number
          description: Width of the bounding box as a ratio of the overall image width.
        Height:
          type: number
          description: Height of the bounding box as a ratio of the overall image height.
        Left:
          type: number
          description: Left coordinate of the bounding box as a ratio of overall image width.
        Top:
          type: number
          description: Top coordinate of the bounding box as a ratio of overall image height.
    DetectLabelsImageBackground:
      type: object
      properties:
        Quality:
          $ref: '#/components/schemas/DetectLabelsImageQuality'
        DominantColors:
          type: array
          items:
            $ref: '#/components/schemas/DominantColor'
          description: The dominant colors found in the background of an image, defined with RGB values, CSS color name, simplified
            color name, and PixelPercentage (the percentage of image pixels that have a particular color).
    DetectLabelsImageForeground:
      type: object
      properties:
        Quality:
          $ref: '#/components/schemas/DetectLabelsImageQuality'
        DominantColors:
          type: array
          items:
            $ref: '#/components/schemas/DominantColor'
          description: The dominant colors found in the foreground of an image, defined with RGB values, CSS color name, simplified
            color name, and PixelPercentage (the percentage of image pixels that have a particular color).
    DetectLabelsImageProperties:
      type: object
      properties:
        Quality:
          $ref: '#/components/schemas/DetectLabelsImageQuality'
        DominantColors:
          type: array
          items:
            $ref: '#/components/schemas/DominantColor'
          description: Information about the dominant colors found in an image, described with RGB values, CSS color name,
            simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).
        Foreground:
          $ref: '#/components/schemas/DetectLabelsImageForeground'
        Background:
          $ref: '#/components/schemas/DetectLabelsImageBackground'
    DetectLabelsImagePropertiesSettings:
      type: object
      properties:
        MaxDominantColors:
          type: integer
          description: The maximum number of dominant colors to return when detecting labels in an image. The default value
            is 10.
    DetectLabelsImageQuality:
      type: object
      properties:
        Brightness:
          type: number
          description: The brightness of an image provided for label detection.
        Sharpness:
          type: number
          description: The sharpness of an image provided for label detection.
        Contrast:
          type: number
          description: The contrast of an image provided for label detection.
    DetectLabelsRequest:
      type: object
      properties:
        Image:
          $ref: '#/components/schemas/Image'
        MaxLabels:
          type: integer
          description: Maximum number of labels you want the service to return in the response. The service returns the specified
            number of highest confidence labels. Only valid when GENERAL_LABELS is specified as a feature type in the Feature
            input parameter.
        MinConfidence:
          type: number
          description: Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return
            any labels with confidence lower than this specified value. If MinConfidence is not specified, the operation returns
            labels with a confidence values greater than or equal to 55 percent. Only valid when GENERAL_LABELS is specified
            as a feature type in the Feature input parameter.
        Features:
          type: array
          items:
            type: string
            enum:
            - GENERAL_LABELS
            - IMAGE_PROPERTIES
          description: A list of the types of analysis to perform. Specifying GENERAL_LABELS uses the label detection feature,
            while specifying IMAGE_PROPERTIES returns information regarding image color and quality. If no option is specified
            GENERAL_LABELS is used by default.
        Settings:
          $ref: '#/components/schemas/DetectLabelsSettings'
      required:
      - Image
    DetectLabelsResponse:
      type: object
      properties:
        Labels:
          type: array
          items:
            $ref: '#/components/schemas/Label'
          description: An array of labels for the real-world objects detected.
        OrientationCorrection:
          type: string
          enum:
          - ROTATE_0
          - ROTATE_90
          - ROTATE_180
          - ROTATE_270
          description: 'The value of OrientationCorrection is always null. If the input image is in .jpeg format, it might
            contain exchangeable image file format (Exif) metadata that includes the image''s orientation. Amazon Rekognition
            uses this orientation information to perform image correction. The bounding box coordinates are translated to
            represent object locations after the orientation information in the Exif metadata is used to correct the image
            orientation. Images in .png format don''t contain Exif metadata. Amazon Rekognition doesn’t perform image correction
            for images in .png format and .jpeg images without '
        LabelModelVersion:
          type: string
          description: Version number of the label detection model that was used to detect labels.
        ImageProperties:
          $ref: '#/components/schemas/DetectLabelsImageProperties'
    DetectLabelsSettings:
      type: object
      properties:
        GeneralLabels:
          $ref: '#/components/schemas/GeneralLabelsSettings'
        ImageProperties:
          $ref: '#/components/schemas/DetectLabelsImagePropertiesSettings'
    DominantColor:
      type: object
      properties:
        Red:
          type: integer
          description: The Red RGB value for a dominant color.
        Blue:
          type: integer
          description: The Blue RGB value for a dominant color.
        Green:
          type: integer
          description: The Green RGB value for a dominant color.
        HexCode:
          type: string
          description: The Hex code equivalent of the RGB values for a dominant color.
        CSSColor:
          type: string
          description: The CSS color name of a dominant color.
        SimplifiedColor:
          type: string
          description: One of 12 simplified color names applied to a dominant color.
        PixelPercent:
          type: number
          description: The percentage of image pixels that have a given dominant color.
    GeneralLabelsSettings:
      type: object
      properties:
        LabelInclusionFilters:
          type: array
          items:
            type: string
          description: The labels that should be included in the return from DetectLabels.
        LabelExclusionFilters:
          type: array
          items:
            type: string
          description: The labels that should be excluded from the return from DetectLabels.
        LabelCategoryInclusionFilters:
          type: array
          items:
            type: string
          description: The label categories that should be included in the return from DetectLabels.
        LabelCategoryExclusionFilters:
          type: array
          items:
            type: string
          description: The label categories that should be excluded from the return from DetectLabels.
    Image:
      type: object
      properties:
        Bytes:
          type: string
          format: byte
          description: Blob of image bytes up to 5 MBs. Note that the maximum image size you can pass to DetectCustomLabels
            is 4MB.
        S3Object:
          $ref: '#/components/schemas/S3Object'
    Instance:
      type: object
      properties:
        BoundingBox:
          $ref: '#/components/schemas/BoundingBox'
        Confidence:
          type: number
          description: The confidence that Amazon Rekognition has in the accuracy of the bounding box.
        DominantColors:
          type: array
          items:
            $ref: '#/components/schemas/DominantColor'
          description: The dominant colors found in an individual instance of a label.
    InternalServerError:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
        Logref:
          type: string
          description: A universally unique identifier (UUID) for the request.
    Label:
      type: object
      properties:
        Name:
          type: string
          description: The name (label) of the object or scene.
        Confidence:
          type: number
          description: Level of confidence.
        Instances:
          type: array
          items:
            $ref: '#/components/schemas/Instance'
          description: If Label represents an object, Instances contains the bounding boxes for each instance of the detected
            object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.
        Parents:
          type: array
          items:
            $ref: '#/components/schemas/Parent'
          description: The parent labels for a label. The response includes all ancestor labels.
        Aliases:
          type: array
          items:
            $ref: '#/components/schemas/LabelAlias'
          description: A list of potential aliases for a given label.
        Categories:
          type: array
          items:
            $ref: '#/components/schemas/LabelCategory'
          description: A list of the categories associated with a given label.
    LabelAlias:
      type: object
      properties:
        Name:
          type: string
          description: The name of an alias for a given label.
    LabelCategory:
      type: object
      properties:
        Name:
          type: string
          description: The name of a category that applies to a given label.
    Parent:
      type: object
      properties:
        Name:
          type: string
          description: The name of the parent label.
    S3Object:
      type: object
      properties:
        Bucket:
          type: string
          description: Name of the S3 bucket.
        Name:
          type: string
          description: S3 object key name.
        Version:
          type: string
          description: If the bucket is versioning enabled, you can specify the object version.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/rekognition/service/2016-06-27/rekognition-2016-06-27.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)