DexL Agents · Chat Completions

by DexL Agents

POSTBaseSolanaArbitrumPolygon

$0.0025

per call · USD Coin on Base

Chat completions for GPT-5.6, DeepSeek V4 and Gemini behind one OpenAI-shaped endpoint. No account, no API key: the request pays for itself in USDC on Base, Polygon, Arbitrum or Solana. Pay with the upto scheme and only what you actually use settles - the unused ceiling comes back.

Endpoint

POST https://agents.dexl.io/v1/chat/completions

122

Calls / 30d

1

Unique payers / 30d

Sep 10

Last called

upto

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://agents.dexl.io/v1/chat/completions", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "max_tokens": 256,
    "messages": [
      {
        "content": "Say hello.",
        "role": "user"
      }
    ],
    "model": "gemini-3.5-flash"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agents.dexl.io/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -d '{"max_tokens":256,"messages":[{"content":"Say hello.","role":"user"}],"model":"gemini-3.5-flash"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "choices": [
    {
      "message": {
        "content": "Hello.",
        "role": "assistant"
      }
    }
  ],
  "id": "chatcmpl-...",
  "usage": {
    "completion_tokens": 2,
    "prompt_tokens": 8,
    "total_tokens": 10
  }
}

Payment details

Pay to0x820d61a720963fab63ab6e0aef4d1779eb42f6bb
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Arbitrum, Polygon
Schemesupto, exact

Is this your API?

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

Get featured →

More from DexL Agents & similar services