82trust / 100

Openai Gpt 4 1 Mini

by NetIntel in AI models & inference

x402 APIPassing, checked 5 h ago

Call OpenAI's gpt-4.1-mini via a single pay-per-call x402 endpoint — no OpenAI account or API key needed, pay $0.005 per request in USDC. Standard OpenAI chat.completions request/response shape, capped input and output.

POST https://netintel.dev/openai/gpt-4-1-mini

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
178 ms typical, 178 ms slowest 5%
Last check
5 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://netintel.dev/openai/gpt-4-1-mini" \
  -H "content-type: application/json" \
  -d '{"max_tokens":16,"messages":[{"content":"Say hi in one word.","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%2Fnetintel.dev%2Fopenai%2Fgpt-4-1-mini
const res = await pay("https://netintel.dev/openai/gpt-4-1-mini", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_tokens":16,"messages":[{"content":"Say hi in one word.","role":"user"}]}),
});
console.log(await res.json());

Example input

{
  "max_tokens": 16,
  "messages": [
    {
      "content": "Say hi in one word.",
      "role": "user"
    }
  ]
}

Example output

{
  "choices": [
    {
      "finish_reason": "stop",
      "index": 0,
      "message": {
        "content": "Hi!",
        "role": "assistant"
      }
    }
  ],
  "created": 1735689600,
  "id": "chatcmpl-abc123",
  "model": "gpt-4.1-mini",
  "object": "chat.completion",
  "usage": {
    "completion_tokens": 2,
    "prompt_tokens": 11,
    "total_tokens": 13
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed402178 ms$0.005