79trust / 100

Llm Gemini Flash

by x402engine.app in AI models & inference

x402 APIPassing, checked 45 min ago

Google's fast model — great balance of speed, quality, and cost for everyday tasks

POST https://x402engine.app/api/llm/gemini-flash

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
341 ms typical, 342 ms slowest 5%
Last check
45 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402engine.app/api/llm/gemini-flash" \
  -H "content-type: application/json" \
  -d '{"max_tokens":1024,"messages":[{"content":"Hello","role":"user"}]}'
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%2Fx402engine.app%2Fapi%2Fllm%2Fgemini-flash
const res = await pay("https://x402engine.app/api/llm/gemini-flash", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_tokens":1024,"messages":[{"content":"Hello","role":"user"}]}),
});
console.log(await res.json());

Example input

{
  "max_tokens": 1024,
  "messages": [
    {
      "content": "Hello",
      "role": "user"
    }
  ]
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
45 min agoPassed402341 ms$0.012
4 h agoPassed402431 ms$0.012
7 h agoPassed402342 ms$0.012
12 h agoPassed402210 ms$0.012