$ man model-route-recommend
/model-route-recommend
PRICE / CALL
$0.01
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
modelrouterCATEGORY
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.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| task | string | Plain-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 |
| constraints | object | Optional constraints object with any of: latency (string), budget (string), context_length (string), modality (string). Each field max 200 chars. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| task | string | — |
| constraints | string | — |
| recommendation | string | — |
| heuristic | string | — |
| model | string | — |
| source | string | — |
EXAMPLES — two 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
ADJACENT — other endpoints in modelrouter
| endpoint | description | price |
|---|---|---|
| llm-cost-estimate | LLM cost estimate API and token cost calculator for comparing inference cost across models before you run a prompt. | $0.005 |
SEE ALSO