Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint · rollforge · bestiary · statline · matchpoint · retail · agentops · browserworkflow · modelrouter · compose
$ man model-route-recommend

/model-route-recommend

agentutility / model-router / model-route-recommend
PRICE / CALL
$0.01
USDC · base mainnet · scheme: exact
METHOD
POST
CATEGORY
uncategorized
STATUS
live
NAME
model-route-recommend model routing api that answers 'which model should i use' from plain task requirements
SYNOPSIS
POST https://x402.agentutility.ai/model-route-recommend
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Model routing API that answers 'which model should I use' from plain task requirements. Send a task description plus optional constraints (latency, budget, context length, modality) and get back a recommended model tier, 2-4 concrete candidate model names, the reasoning behind the pick, tradeoffs, and a cheaper fallback tier when quality can flex. Heuristic route recommendation grounded in general model-capability tiers, not a live benchmark or pricing feed, so candidate models come with a caveat to verify current pricing and capability before committing. Use it as a model selection API, an LLM routing advisor, or a pre-flight check before wiring a new task into an agent pipeline.

INPUTrequest schema
propertytypedescriptionreq?
taskstringPlain-language description of the task the model needs to perform, e.g. 'classify inbound support tickets in real time'. Required, max 2,000 chars.required
constraintsobjectOptional constraints object with any of: latency (string), budget (string), context_length (string), modality (string). Each field max 200 chars.optional
OUTPUTresponse shape
fieldtypedescription
taskstring
constraintsstring
recommendationstring
heuristicstring
modelstring
sourcestring
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/model-route-recommend \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the model-route-recommend tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
model-routermodelrouterecommendmodel-route-recommend
methods
POST
cluster
modelrouter
price
$0.01 USDC per call
ADJACENTother endpoints in modelrouter
endpointdescriptionprice
llm-cost-estimateLLM cost estimate API and token cost calculator for comparing inference cost across models before you run a prompt.$0.005
SEE ALSO
agentutility · modelrouter · x402 · mcp · llms.txt · registry.json · bazaar.x402.org