Hugging Face · Arazzo Workflow
Hugging Face Chat Completion with Model Discovery
Version 1.0.0
Discover an available router model, confirm it exists, then run an OpenAI-compatible chat completion.
Provider
Workflows
chat-completion-with-model-discovery
Confirm a router model is available and run a chat completion against it.
Lists router models, retrieves the requested model record to confirm it is servable, and then creates a chat completion using that model.
1
listRouterModels
List the models currently available through the inference providers router so the requested model can be confirmed before billing a completion.
2
confirmModel
Fetch the requested model record from the router to confirm it exists and is servable. Branches to the chat completion on success.
3
createChat
Send an OpenAI-compatible chat completion request with a system and user message; the router selects the optimal provider automatically.
Source API Descriptions
openapi
openapi
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.