Skip to content
Fourohtwo

OpenAI-compatible chat completions API (POST /v1/chat/completions)

pagetext.yashil.workers.dev/v1/chat/completions

OpenAI-compatible chat completions API (POST /v1/chat/completions): send messages, get the assistant reply in the standard OpenAI format, stream or not. Model: Google Gemma 4 26B. Up to 32,000 characters in and 2,048 tokens out per request. Works with any OpenAI client by setting the base URL. Errors are not charged.

BaseAnswering
POSThttps://pagetext.yashil.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

// 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://pagetext.yashil.workers.dev/v1/chat/completions", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_tokens":200,"messages":[{"content":"Write a haiku about the sea.","role":"user"}],"model":"gemma-4-26b"}),
});
console.log(await res.json());

Example input

{
  "max_tokens": 200,
  "messages": [
    {
      "content": "Write a haiku about the sea.",
      "role": "user"
    }
  ],
  "model": "gemma-4-26b"
}

More from PageTextProvider status