NVIDIA NIM · Arazzo Workflow

NVIDIA NIM Health Gated Completion

Version 1.0.0

Check a self-hosted NIM container's readiness, and only run a text completion once the engine reports ready.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub Artificial IntelligenceInferenceMicroservicesLLMFoundation ModelsGPUKubernetesNVIDIAOpenAI-CompatibleArazzoWorkflows

Provider

nvidia-nim

Workflows

health-gated-completion
Gate a text completion behind the container readiness probe.
Checks the readiness probe, and only when the engine is ready lists models and issues a text completion; otherwise ends without inference.
3 steps inputs: apiKey, maxTokens, modelId, prompt outputs: readyMessage, text, totalTokens
1
checkReadiness
Probe the container readiness endpoint. A 200 means the model engine has loaded and the container can accept traffic.
2
listAvailableModels
List the models the ready container serves to confirm the requested model is available before inference.
3
runCompletion
Run a legacy text completion against the requested model now that the container is confirmed ready.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: NVIDIA NIM Health Gated Completion
  summary: Check a self-hosted NIM container's readiness, and only run a text completion once the engine reports ready.
  description: >-
    An operational safety flow for self-hosted NIM containers. The readiness
    probe is checked first; the container only returns 200 once its model engine
    has finished loading. The flow branches on readiness — when ready it lists
    the served models and runs a legacy text completion, and when not ready it
    short-circuits to an end without burning an inference request against a cold
    engine. 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
sourceDescriptions:
- name: completionsApi
  url: ../openapi/nvidia-nim-completions-api-openapi.yml
  type: openapi
- name: healthApi
  url: ../openapi/nvidia-nim-health-api-openapi.yml
  type: openapi
- name: modelsApi
  url: ../openapi/nvidia-nim-models-api-openapi.yml
  type: openapi
workflows:
- workflowId: health-gated-completion
  summary: Gate a text completion behind the container readiness probe.
  description: >-
    Checks the readiness probe, and only when the engine is ready lists models
    and issues a text completion; otherwise ends without inference.
  inputs:
    type: object
    required:
    - apiKey
    - prompt
    properties:
      apiKey:
        type: string
        description: NVIDIA developer API key (nvapi-...) sent as a Bearer token.
      prompt:
        type: string
        description: Raw text prompt for the legacy completions endpoint.
      modelId:
        type: string
        description: Model id to run the completion against.
        default: meta/llama-3.3-70b-instruct
      maxTokens:
        type: integer
        description: Maximum number of tokens to generate.
        default: 1024
  steps:
  - stepId: checkReadiness
    description: >-
      Probe the container readiness endpoint. A 200 means the model engine has
      loaded and the container can accept traffic.
    operationId: getReadiness
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      readyMessage: $response.body#/message
    onSuccess:
    - name: engineReady
      type: goto
      stepId: listAvailableModels
      criteria:
      - condition: $statusCode == 200
  - stepId: listAvailableModels
    description: >-
      List the models the ready container serves to confirm the requested model
      is available before inference.
    operationId: listModels
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      models: $response.body#/data
  - stepId: runCompletion
    description: >-
      Run a legacy text completion against the requested model now that the
      container is confirmed ready.
    operationId: createCompletion
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiKey
    requestBody:
      contentType: application/json
      payload:
        model: $inputs.modelId
        prompt: $inputs.prompt
        max_tokens: $inputs.maxTokens
        temperature: 0.2
        stream: false
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      completionId: $response.body#/id
      text: $response.body#/choices/0/text
      finishReason: $response.body#/choices/0/finish_reason
      totalTokens: $response.body#/usage/total_tokens
    onSuccess:
    - name: completed
      type: end
  outputs:
    readyMessage: $steps.checkReadiness.outputs.readyMessage
    text: $steps.runCompletion.outputs.text
    totalTokens: $steps.runCompletion.outputs.totalTokens

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/nvidia-nim-health-gated-completion-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.