All models

GPT-5.6 Terra Pro API, pay per call

Call GPT-5.6 Terra Pro (openai/gpt-5.6-terra-pro) with an OpenAI-compatible request and pay per call in USDC on Base with x402. No API key, no account, no subscription; automatic refund if the model fails to answer.

Endpoint: POST https://agent402-arb.rosariovitale0096.workers.dev/llm/gpt-5.6-terra-pro
Model id: openai/gpt-5.6-terra-pro (fixed by the path; body.model can be omitted)
Payment: x402 v2, USDC on Base, one payment per request, exact price in the 402 quote
Price: set per request from the live supplier cost; where the cost allows it the gateway charges less than BlockRun for the same request

How to call it

  1. POST your OpenAI-style request to https://agent402-arb.rosariovitale0096.workers.dev/llm/gpt-5.6-terra-pro without payment. The answer is HTTP 402 with a PAYMENT-REQUIRED header: the exact price in USDC for that prompt and max_tokens (x402 v2, scheme exact, Base mainnet).
  2. Sign the payment with any x402 client (EIP-3009 transferWithAuthorization; the wallet needs USDC on Base, no ETH).
  3. Send the same request again with the PAYMENT-SIGNATURE header. You get a standard chat.completion. If the model fails to answer, the payment is refunded automatically.
// npm i @x402/core @x402/evm @x402/fetch viem
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.WALLET_KEY), networks: ["eip155:8453"] });
const pay = wrapFetchWithPayment(fetch, client);
const r = await pay("https://agent402-arb.rosariovitale0096.workers.dev/llm/gpt-5.6-terra-pro", { method: "POST", headers: { "content-type": "application/json" },
  body: JSON.stringify({ messages: [{ role: "user", content: "Hello" }], max_tokens: 256 }) });
console.log((await r.json()).choices[0].message.content);

Quote only (free): curl -i -X POST https://agent402-arb.rosariovitale0096.workers.dev/llm/gpt-5.6-terra-pro -H 'content-type: application/json' -d '{"messages":[{"role":"user","content":"Hello"}],"max_tokens":256}'

Limits

Machine-readable: OpenAPI, llms.txt, x402 manifest. Terms of use. The gateway is independent and not affiliated with any model provider; model names only identify the model that answers.