66trust / 100

Models Pick

by Aayat AI in AI models & inference

x402 APIFailing, checked 33 min ago

Cheapest AI model that can do your job. Describe the task (or list needed features: tools, json, reasoning, vision...), expected input/output tokens and a quality level (budget/balanced/best); get the cheapest suitable models across all major providers with estimated USD cost per call and per 1,000 calls, from live prices. POST {task, inputTokens, outputTokens}.

POST https://aayatai.com/ai/models/pick

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
50.0%
Response time
59 ms typical, 59 ms slowest 5%
Last check
33 min ago: Expected HTTP 402, got 410
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://aayatai.com/ai/models/pick" \
  -H "content-type: application/json" \
  -d '{"inputTokens":3000,"outputTokens":400,"task":"Extract invoice fields from scanned PDF images into JSON"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Faayatai.com%2Fai%2Fmodels%2Fpick
const res = await pay("https://aayatai.com/ai/models/pick", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"inputTokens":3000,"outputTokens":400,"task":"Extract invoice fields from scanned PDF images into JSON"}),
});
console.log(await res.json());

Example input

{
  "inputTokens": 3000,
  "outputTokens": 400,
  "task": "Extract invoice fields from scanned PDF images into JSON"
}

Example output

{
  "recommended": {
    "cachedInputPerMTok": 0.075,
    "contextLength": 1048576,
    "created": "2025-06-17",
    "estimatedCostPer1000CallsUsd": 1.9,
    "estimatedCostPerCallUsd": 0.0019,
    "features": [
      "tools"
    ],
    "free": false,
    "id": "google/gemini-2.5-flash",
    "inputModalities": [
      "text"
    ],
    "inputPerMTok": 0.3,
    "knowledgeCutoff": null,
    "maxOutputTokens": 65535,
    "name": "Google: Gemini 2.5 Flash",
    "outputPerMTok": 2.5,
    "perRequestUsd": 0,
    "provider": "google"
  },
  "requirements": {
    "inputTokens": 3000,
    "minContext": 3400,
    "needs": [
      "json"
    ],
    "outputTokens": 400,
    "quality": "balanced",
    "reason": "Reads images and returns structured data."
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
33 min agoExpected HTTP 402, got 41041062 ms-
6 h agoPassed40259 ms$0.01