Amazon Rekognition · Arazzo Workflow

Amazon Rekognition Label and Moderate an Image

Version 1.0.0

Detect general labels in an image and then screen the same image for unsafe content.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Celebrity RecognitionComputer-VisionContent ModerationCustom LabelsDeep LearningFace LivenessFacial RecognitionImage AnalysisMachine-LearningObject DetectionText DetectionVideo AnalysisArazzoWorkflows

Provider

amazon-rekognition

Workflows

label-and-moderate-image
Detect labels then detect moderation labels for the same image.
Produces a descriptive label set for an image and a moderation screening of the same image so user-generated content can be both understood and gated.
2 steps inputs: bucket, minLabelConfidence, minModerationConfidence, name outputs: labels, moderationLabels
1
detectLabels
Detect general labels describing the contents of the image.
2
detectModeration
Screen the same image for unsafe or inappropriate content.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Rekognition Label and Moderate an Image
  summary: Detect general labels in an image and then screen the same image for unsafe content.
  description: >-
    A content-understanding-plus-safety flow for Amazon Rekognition. The
    workflow runs DetectLabels to understand what is in an image and then runs
    DetectModerationLabels against the same image to screen it for unsafe or
    inappropriate content. Each step spells out its AWS JSON 1.1 request inline,
    including the protocol-required X-Amz-Target header.
  version: 1.0.0
sourceDescriptions:
- name: contentModerationApi
  url: ../openapi/amazon-rekognition-content-moderation-api-openapi.yml
  type: openapi
- name: imageAnalysisApi
  url: ../openapi/amazon-rekognition-image-analysis-api-openapi.yml
  type: openapi
workflows:
- workflowId: label-and-moderate-image
  summary: Detect labels then detect moderation labels for the same image.
  description: >-
    Produces a descriptive label set for an image and a moderation screening of
    the same image so user-generated content can be both understood and gated.
  inputs:
    type: object
    required:
    - bucket
    - name
    properties:
      bucket:
        type: string
        description: S3 bucket holding the image to analyze.
      name:
        type: string
        description: S3 object key of the image.
      minLabelConfidence:
        type: number
        description: Minimum confidence for returned general labels.
        default: 75.0
      minModerationConfidence:
        type: number
        description: Minimum confidence for returned moderation labels.
        default: 50.0
  steps:
  - stepId: detectLabels
    description: Detect general labels describing the contents of the image.
    operationId: detectLabels
    parameters:
    - name: X-Amz-Target
      in: header
      value: RekognitionService.DetectLabels
    requestBody:
      contentType: application/x-amz-json-1.1
      payload:
        Image:
          S3Object:
            Bucket: $inputs.bucket
            Name: $inputs.name
        MaxLabels: 20
        MinConfidence: $inputs.minLabelConfidence
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      labels: $response.body#/Labels
      labelModelVersion: $response.body#/LabelModelVersion
  - stepId: detectModeration
    description: Screen the same image for unsafe or inappropriate content.
    operationId: detectModerationLabels
    parameters:
    - name: X-Amz-Target
      in: header
      value: RekognitionService.DetectModerationLabels
    requestBody:
      contentType: application/x-amz-json-1.1
      payload:
        Image:
          S3Object:
            Bucket: $inputs.bucket
            Name: $inputs.name
        MinConfidence: $inputs.minModerationConfidence
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      moderationLabels: $response.body#/ModerationLabels
      moderationModelVersion: $response.body#/ModerationModelVersion
  outputs:
    labels: $steps.detectLabels.outputs.labels
    moderationLabels: $steps.detectModeration.outputs.moderationLabels

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/amazon-rekognition-label-and-moderate-image-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

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

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

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