Skip to content
Fourohtwo

Drop-in OpenAI Chat Completions endpoint

quickbuild.quynguyenbac.workers.dev/v1/chat/completions

Drop-in OpenAI Chat Completions endpoint: POST {model, messages, max_tokens, temperature, top_p, seed, stream, response_format} and get a chat.completion object (or SSE chunks with stream=true). Models (Cloudflare Workers AI): llama-3.1-8b (default), llama-3.2-3b, llama-3.2-1b, mistral-7b, granite-4.0-micro; any other model name maps to the default (actual model is in the response). Text only, no

BaseAnswering
GEThttps://quickbuild.quynguyenbac.workers.dev/v1/chat/completions

Uptime100% of 1 check 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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://quickbuild.quynguyenbac.workers.dev/v1/chat/completions?model=llama-3.1-8b&messages=%3Cmessages%3E&max_tokens=128");
console.log(await res.json());

Example input

{
  "model": "llama-3.1-8b",
  "messages": [
    {
      "role": "user",
      "content": "In one sentence, what does HTTP status 402 mean?"
    }
  ],
  "max_tokens": 128
}

More from QuickBuild