Hugging Face · Arazzo Workflow

Hugging Face Summarize Then Translate

Version 1.0.0

Summarize a long document with one model, then translate the summary with another.

1 workflow 1 source API 1 provider
View Spec View on GitHub ArazzoWorkflows

Provider

hugging-face

Workflows

summarize-then-translate
Summarize a document and translate the resulting summary.
Runs a summarization inference call on a long text and then translates the generated summary using a translation model.
2 steps inputs: hfToken, maxLength, minLength, summarizationModelId, text, translationModelId outputs: summaryText, translationText
1
summarize
Summarize the source text into a shorter version using the summarization model.
2
translate
Translate the generated summary into the target language using the translation model.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Hugging Face Summarize Then Translate
  summary: Summarize a long document with one model, then translate the summary with another.
  description: >-
    A two-stage NLP pipeline over the hosted Inference API. The workflow first
    summarizes a long input text using a summarization model, then feeds the
    produced summary into a translation model to render it in another language.
    Both hosted inference calls authenticate inline with a Bearer token. Every
    step spells out its request inline so the flow can be read and executed
    without opening the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-610.60
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-610.60
      capability_name: Artificial Intelligence Management
      spec: hugging-face-natural-language-processing-api-openapi.yml
      confidence: 0.8
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: naturalLanguageProcessingApi
  url: ../openapi/hugging-face-natural-language-processing-api-openapi.yml
  type: openapi
workflows:
- workflowId: summarize-then-translate
  summary: Summarize a document and translate the resulting summary.
  description: >-
    Runs a summarization inference call on a long text and then translates the
    generated summary using a translation model.
  inputs:
    type: object
    required:
    - hfToken
    - summarizationModelId
    - translationModelId
    - text
    properties:
      hfToken:
        type: string
        description: Hugging Face access token used as a Bearer credential.
      summarizationModelId:
        type: string
        description: Model id used for summarization (e.g. facebook/bart-large-cnn).
      translationModelId:
        type: string
        description: Model id used for translation (e.g. Helsinki-NLP/opus-mt-en-fr).
      text:
        type: string
        description: The long source text to summarize and then translate.
      minLength:
        type: integer
        description: Minimum length of the generated summary.
        default: 30
      maxLength:
        type: integer
        description: Maximum length of the generated summary.
        default: 130
  steps:
  - stepId: summarize
    description: >-
      Summarize the source text into a shorter version using the summarization
      model.
    operationId: summarization
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.hfToken
    - name: model_id
      in: path
      value: $inputs.summarizationModelId
    requestBody:
      contentType: application/json
      payload:
        inputs: $inputs.text
        parameters:
          min_length: $inputs.minLength
          max_length: $inputs.maxLength
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      summaryText: $response.body#/0/summary_text
  - stepId: translate
    description: >-
      Translate the generated summary into the target language using the
      translation model.
    operationId: translation
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.hfToken
    - name: model_id
      in: path
      value: $inputs.translationModelId
    requestBody:
      contentType: application/json
      payload:
        inputs: $steps.summarize.outputs.summaryText
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      translationText: $response.body#/0/translation_text
  outputs:
    summaryText: $steps.summarize.outputs.summaryText
    translationText: $steps.translate.outputs.translationText

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/hugging-face-summarize-then-translate-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.