Skip to content
Fourohtwo

OpenAI-compatible LLM inference, paid per call

yiduochan.com/api/x402/chat/completions

OpenAI-compatible LLM inference, paid per call. POST a standard chat completion body with an x402 payment and the response is the completion itself; the API key and remaining balance come back in headers, so the next call can skip payment. Serves MiniMax language models: MiniMax-M3 for long-context reasoning with a 1,048,576-token window, and MiniMax-M2.7 for general chat, agent loops and coding.

ArbitrumAnswering
https://yiduochan.com/api/x402/chat/completions

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://yiduochan.com/api/x402/chat/completions");
console.log(await res.json());