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
GET
https://quickbuild.quynguyenbac.workers.dev/v1/chat/completionsUptime100% 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
- quickbuild.quynguyenbac.workers.dev/api/auditPre-launch website audit: up to 3 pages crawled, 30 links checked, meta/OG/canonical, security headers, HTTPS, 404 handling, sitemap, and leaked-secret patterns in client JS (masked). Read-only.0.05
- quickbuild.quynguyenbac.workers.dev/api/base/gasLive gas snapshot for Base mainnet (chain 8453) read from public Base RPC: latest block number/time/utilization, base fee, eth_gasPrice, eth_maxPriorityFeePerGas, the last 10 blocks of base fees, slow/standard/fast EIP-1559 fee suggestions (10th/50th/90th percentile tips) in gwei and wei, and the estimated total cost (L2 execution + OP Stack L1 data-fee upper bound) of an ETH transfer, an ERC-20 t0.001
- quickbuild.quynguyenbac.workers.dev/api/base/tokenInspect a token or any address on Base mainnet: contract vs EOA (incl. EIP-7702 delegation), bytecode size, ERC-20 name/symbol/decimals/totalSupply (raw and formatted; bytes32 symbols handled), proxy implementation (EIP-1967, beacon, ZeppelinOS/FiatToken), whether it is a well-known Base token (guards against spoofed symbols), and optionally the balance of `holder`. Read live from public Base RPC;0.002
- quickbuild.quynguyenbac.workers.dev/api/base/token-verdictFixed documented point rules (returned in rules[]) over live public Base RPC reads, Blockscout and the free GeckoTerminal API (liquidity, volume, FDV, price change, top pool). Unavailable values are null and not scored (listed in unknown[]). No LLM. Every response has disclaimer: "informational only, not investment advice". Not a contract = 404, invalid = 400, never charged.0.01
- quickbuild.quynguyenbac.workers.dev/api/base/txLook up one transaction on Base mainnet by hash: status (success, failed or pending), block, timestamp, confirmations, from/to, value, method id, gas used, effective gas price, fee split into L2 execution and L1 data fee (ETH and USD), contract created, and decoded ERC-20 Transfer events (token, symbol, from, to, amount; up to 20). Useful to confirm a payment landed. Read live from public Base RPC0.002
- quickbuild.quynguyenbac.workers.dev/api/base/walletBalances of one address on Base mainnet in a single call: native ETH, the well-known tokens USDC, USDT, USDbC, DAI, WETH, cbETH, wstETH, AERO (non-zero only, or all with includeZero=true), plus up to 10 extra ERC-20 contracts you pass in `tokens` (symbol/name/decimals read on-chain). Also nonce, account type (EOA, EIP-7702 delegated EOA, or contract) and a USD total for ETH/WETH (Chainlink) and st0.002
- quickbuild.quynguyenbac.workers.dev/api/chatOne-shot LLM completion on Cloudflare Workers AI with a minimal interface: give `prompt` (and optionally `system`, or OpenAI-style `messages`), get {text, model, finish_reason, usage}. Models: llama-3.1-8b (default), llama-3.2-3b, llama-3.2-1b, mistral-7b, granite-4.0-micro. max_tokens capped at 512, input up to 24000 chars, Llama Guard 3 safety check, 503 "capacity" when the daily budget is used 0.003
- quickbuild.quynguyenbac.workers.dev/api/crypto/priceLive crypto prices for up to 25 coins per call: pass tickers in `symbols` (BTC,ETH,SOL,AERO,...; common tickers built in, others resolved by CoinGecko search to the largest coin with that ticker), CoinGecko `ids`, or one token `address` + `chain` (base default; ethereum, arbitrum, optimism, polygon, bsc, avalanche, solana). Returns price, market cap, 24h volume and 24h % change in each `vs` curren0.001
- quickbuild.quynguyenbac.workers.dev/api/fx/rateForeign-exchange rates from one base currency (`from`, default USD) to a list of currencies (`to`, comma-separated, or "all"; default 14 majors incl. EUR, GBP, JPY, CNY, INR, KRW, VND), with `amount` converted. Live mode uses Coinbase public exchange rates (updated about every minute, 160+ ISO 4217 currencies plus XAU/XAG), falling back to exchangerate-api daily rates. With `date=YYYY-MM-DD` it re0.002
- quickbuild.quynguyenbac.workers.dev/api/imageGenerate an original 1024x1024 image from a text prompt with FLUX.1 [schnell] on Workers AI (about 2-5 s). Returns JSON with image_base64 + mimeType, or the raw image bytes with format=jpeg. Content policy: no sexual/nude, gore, hate, real or famous people, or ID documents/currency; such prompts get HTTP 400 and are not charged. All params optional: with no prompt a sample watercolor lighthouse is0.01
- quickbuild.quynguyenbac.workers.dev/api/ipReturns the caller's public IP address (IPv4/IPv6) as seen at the Cloudflare edge, with approximate geolocation (country, EU flag, continent, region, city, postal code, latitude/longitude, timezone), network (ASN and AS organization), the Cloudflare colo that served the request, HTTP protocol and TLS version. Useful for an agent to check its own egress IP/region, confirm a proxy or VPN, or smoke-t0.001
- quickbuild.quynguyenbac.workers.dev/api/markdownFetch one public web page and return its main content (article/main/body, scripts/nav/footer stripped) as clean Markdown with absolute links, plus title and length. Up to 2 MB HTML, 10 s timeout; optional maxChars (default 50000, max 200000).0.005
