O

Orthogonal · Chat Completions

by Orthogonal

POSTBaseSolanaMonad

$0.005

per call · USD Coin on Base

Send a conversation to a model and get a completion back. Works exactly like the OpenAI chat completions endpoint. Pass messages and a model slug, get a response with the assistant's reply. Supports streaming for real-time token delivery, tool calling for function execution, structured outputs via response_format, and controllable reasoning depth on supported models. | ERROR: Unable to calculate price.

Endpoint

POST https://x402.orthogonal.com/baseten/v1/chat/completions

240

Calls / 30d

1

Unique payers / 30d

Sep 5

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402.orthogonal.com/baseten/v1/chat/completions", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "messages": [],
    "model": "model"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402.orthogonal.com/baseten/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -d '{"messages":[],"model":"model"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0xdefada13f790cf39168691b391cfa0b6f1f5c267
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Monad
Schemesexact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from Orthogonal & similar services