NVIDIA NIM · Arazzo Workflow

NVIDIA NIM Discover And Chat

Version 1.0.0

List the served models, confirm a target model's metadata, then run a chat completion against it.

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

Provider

nvidia-nim

Workflows

discover-and-chat
Discover a served model and run a chat completion against it.
Lists the NIM model catalog, retrieves the chosen model to confirm it is available, and then sends a chat completion request using that model.
3 steps inputs: apiKey, maxTokens, modelId, prompt outputs: answer, confirmedModelId, totalTokens
1
listAvailableModels
List the models exposed by this NIM endpoint to discover the exact model strings that can be passed to chat completions.
2
confirmModel
Retrieve metadata for the requested model id to confirm the endpoint actually serves it before attempting inference.
3
chatWithModel
Send a chat completion request using the confirmed model id and the supplied user prompt.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: NVIDIA NIM Discover And Chat
  summary: List the served models, confirm a target model's metadata, then run a chat completion against it.
  description: >-
    A model-grounded chat flow for NVIDIA NIM. The workflow first lists the
    models exposed by the NIM endpoint, retrieves the metadata for the desired
    model id to confirm it is actually served, and then issues an
    OpenAI-compatible chat completion using that confirmed model. Discovering
    the exact `model` string before inference avoids 404s from passing a model
    the endpoint does not host. 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: chatApi
  url: ../openapi/nvidia-nim-chat-api-openapi.yml
  type: openapi
- name: modelsApi
  url: ../openapi/nvidia-nim-models-api-openapi.yml
  type: openapi
workflows:
- workflowId: discover-and-chat
  summary: Discover a served model and run a chat completion against it.
  description: >-
    Lists the NIM model catalog, retrieves the chosen model to confirm it is
    available, and then sends a chat completion request using that model.
  inputs:
    type: object
    required:
    - apiKey
    - modelId
    - prompt
    properties:
      apiKey:
        type: string
        description: NVIDIA developer API key (nvapi-...) sent as a Bearer token.
      modelId:
        type: string
        description: The model id to confirm and use (e.g. meta/llama-3.3-70b-instruct).
      prompt:
        type: string
        description: The user prompt to send to the chat model.
      maxTokens:
        type: integer
        description: Maximum number of tokens to generate.
        default: 1024
  steps:
  - stepId: listAvailableModels
    description: >-
      List the models exposed by this NIM endpoint to discover the exact model
      strings that can be passed to chat completions.
    operationId: listModels
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      models: $response.body#/data
  - stepId: confirmModel
    description: >-
      Retrieve metadata for the requested model id to confirm the endpoint
      actually serves it before attempting inference.
    operationId: getModel
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiKey
    - name: model_id
      in: path
      value: $inputs.modelId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      confirmedModelId: $response.body#/id
      ownedBy: $response.body#/owned_by
  - stepId: chatWithModel
    description: >-
      Send a chat completion request using the confirmed model id and the
      supplied user prompt.
    operationId: createChatCompletion
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiKey
    requestBody:
      contentType: application/json
      payload:
        model: $steps.confirmModel.outputs.confirmedModelId
        messages:
        - role: user
          content: $inputs.prompt
        max_tokens: $inputs.maxTokens
        stream: false
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      completionId: $response.body#/id
      answer: $response.body#/choices/0/message/content
      finishReason: $response.body#/choices/0/finish_reason
      totalTokens: $response.body#/usage/total_tokens
  outputs:
    confirmedModelId: $steps.confirmModel.outputs.confirmedModelId
    answer: $steps.chatWithModel.outputs.answer
    totalTokens: $steps.chatWithModel.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-discover-and-chat-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.