Pre-flight: cheapest listed model for your needs (paid: 0.003 RLUSD / 0.003 USDC on Base / 0.003 RLUSD on Base via x402)
decide_cheapest_modelPaid: 0.003 RLUSD per call via x402 on XRPL mainnet (xrpl:0), or 0.003 USDC on Base (eip155:8453). Pay per call, solves one question: Which listed models.dev prices meet these filters, lowest first? Raw lowest and next-vendor prices with reasons, exclusions, and status-page readings. Without payment this returns isError with the x402 PaymentRequired object (fresh invoiceId); retry with the signed payload in _meta["x402/payment"] or the payment_signature argument. Unpaid calls cost nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vendor | No | Comma list of allowed vendors | |
| capability | No | Comma list, all required: reasoning, coding, vision-input, image-output, audio, free-tier, tools, structured-output | |
| min_context | No | Minimum context length in tokens | |
| include_free | No | Allow zero-price / :free entries (default false) | |
| exclude_vendor | No | Comma list of vendors to skip | |
| max_input_per_1m | No | Max input price, USD per 1M tokens | |
| max_job_cost_usd | No | Max cost of 10k input + 1k output tokens, USD | |
| max_output_per_1m | No | Max output price, USD per 1M tokens | |
| payment_signature | No | Optional. Base64 x402 PAYMENT-SIGNATURE value (signed RLUSD or USDC PaymentPayload) for hosts that cannot set _meta["x402/payment"]. Omit on the first call to receive the payment requirements. |