Skip to content
Fourohtwo

chat.gedx402.com/v1/chat/completions

OpenAI-compatible chat completions across many open models, paid per call in USDC with no API key. POST { model, messages, max_tokens? } and pick model from GET /v1/models (fast, smart, code, reasoning and 70B tiers, among others). The price is set from the model's rates and your request size, so short prompts on small models cost the least; the 402 shows the exact amount before you pay. Hero: GET

BaseAnswering
POSThttps://chat.gedx402.com/v1/chat/completions

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://chat.gedx402.com/v1/chat/completions", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_tokens":128,"messages":[{"content":"Say hello in one sentence.","role":"user"}],"model":"fast"}),
});
console.log(await res.json());

Example input

{
  "max_tokens": 128,
  "messages": [
    {
      "content": "Say hello in one sentence.",
      "role": "user"
    }
  ],
  "model": "fast"
}

More from GEDX402 ChatProvider status