Skip to content
Fourohtwo

api.maxwellinternational.ai/v1/llm/chat

AI assistant from the Maxwell International LLM service (model maxwell-chat), OpenAI-style chat completion: POST {model, messages, max_tokens}. Priced before it runs: prompt tokens (yours plus ~860 of service instructions) x $1.50/M + max_tokens x $3.00/M + $0.005; max_tokens is your spend limit (short question, max_tokens 80: about $0.0066). Text only. Free model list: GET /v1/llm/models.

BaseSolanaAnswering
POSThttps://api.maxwellinternational.ai/v1/llm/chat

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.maxwellinternational.ai/v1/llm/chat", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_tokens":80,"messages":[{"content":"In one sentence: what is x402?","role":"user"}],"model":"maxwell-chat"}),
});
console.log(await res.json());

Example input

{
  "max_tokens": 80,
  "messages": [
    {
      "content": "In one sentence: what is x402?",
      "role": "user"
    }
  ],
  "model": "maxwell-chat"
}

More from Maxwell x402Provider status