Model selection / route and cost brief / which model / prompt cost in one call: describe a task and get a recommended model tier, candidate models, and, when you pass a sample…
Model selection / route and cost brief / which model / prompt cost in one call: describe a task and get a recommended model tier, candidate models, and, when you pass a sample prompt, its token count, a projected cost across those candidates, and a compressed version of the prompt. Composite: one call runs model-route-recommend + llm-cost-estimate + token-count + prompt-compress, merged into {route, token_count, cost_estimate, compressed_prompt}. model-route-recommend picks a tier and named models from the task and optional latency/budget/context constraints; token-count and llm-cost-estimate price that exact prompt against the recommended models; prompt-compress shortens the same prompt. Without a sample prompt, only routing runs. Use it as a model selection API, an LLM routing advisor, or a which-model-should-I-call tool.
| Method | Endpoint | Price | Description |
|---|---|---|---|
POST | /v1/marketplace/api/model-selection-brief | $0.0575 | Invoke Model Selection Brief (Llm) and return the upstream response. |
Requests are paid per call over the x402 protocol. Call the endpoint, receive a 402 Payment Required quote, then repeat the request with the signed payment header. The SDKs do both steps for you.
# 1. Ask for a quote
curl -i -X POST https://api.jarvisclaw.ai/v1/marketplace/api/model-selection-brief \
-H 'Content-Type: application/json' \
-d '{}'
# 2. Pay it (the SDK signs and retries for you)
curl -X POST https://api.jarvisclaw.ai/v1/marketplace/api/model-selection-brief \
-H 'Content-Type: application/json' \
-H 'X-PAYMENT: <signed-payload>' \
-d '{}'
Open in the marketplace
Docs: Getting started · x402 payments · x402 discovery · All APIs