Oblique Markets · Paid Chat Completion

by Oblique Markets

POSTBaseSolana

$0.01

per call · USD Coin on Base

Use when an agent needs chat completion. Returns One bounded OpenAI-compatible chat completion per paid call, with no account to open and no provider key to hold; max 24,000 input characters and 600 output tokens. $0.01.

Endpoint

POST https://api.oblique.markets/api/v1/paid/chat-completion

1

Calls / 30d

1

Unique payers / 30d

Sep 10

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://api.oblique.markets/api/v1/paid/chat-completion", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "messages": [
      {
        "content": "example",
        "role": "system"
      }
    ]
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.oblique.markets/api/v1/paid/chat-completion" \
  -H "Content-Type: application/json" \
  -d '{"messages":[{"content":"example","role":"system"}]}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "choices": [
    {
      "finish_reason": "stop",
      "index": 0,
      "message": {
        "content": "x402 is a protocol for HTTP-native machine payments.",
        "role": "assistant"
      }
    }
  ],
  "id": "chatcmpl_rep_example",
  "model": "inclusionai/ling-3.0-flash",
  "object": "chat.completion",
  "upstream": "openrouter",
  "usage": {
    "completion_tokens": 14,
    "prompt_tokens": 12,
    "total_tokens": 26
  }
}

Payment details

Pay to0x970007590acc5c938cd51345b17af51b1b40d3ab
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

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

Get featured →

More from Oblique Markets & similar services