Vercel · Arazzo Workflow
Vercel AI Gateway Cost-Routed Two-Turn Conversation
Version 1.0.0
Run a cost-sorted chat completion, then send a follow-up turn carrying the prior reply.
Provider
Workflows
costRoutedConversation
Two cost-routed chat completions chained into a single conversation.
Issues a first cost-sorted chat completion, then sends a second completion that includes the first assistant reply and a follow-up message to continue the conversation.
1
firstTurn
createChatCompletion
Send the first chat completion, sorting providers by cost via the gateway routing options.
2
secondTurn
createChatCompletion
Continue the conversation by replaying the prior user and assistant turns and appending the follow-up message, again sorting by cost.
Source API Descriptions
Arazzo Workflow Specification
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.
Call it yourself
curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/vercel-cost-routed-conversation-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.