Skip to content
Fourohtwo

Xynaptic AI Chat

api.xynaptic.io/v1/ai-chat

Xynaptic AI Chat — LLM inference pay-per-call: OpenAI-compatible messages, model auto-routing (deepseek-flash / deepseek-v4-pro), JSON response with token usage. POST with body: {"model": "auto", "messages": [{"role": "user", "content": "..."}]}.

ArbitrumAnswering
POSThttps://api.xynaptic.io/v1/ai-chat

Uptime100% of 1 check in 30 days

30 days agoToday

Call it from an agent

import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";

const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(process.env.AGENT_KEY));
const res = await pay("https://api.xynaptic.io/v1/ai-chat", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"model":"auto","messages":[{"role":"user","content":"Summarize the main risks of paying APIs with x402 on Base in 3 bullets"}]}),
});
console.log(await res.json());

Example input

{
  "model": "auto",
  "messages": [
    {
      "role": "user",
      "content": "Summarize the main risks of paying APIs with x402 on Base in 3 bullets"
    }
  ]
}