B

Benlab · Chat

by Benlab

POSTBase

$0.01

per call · USD Coin on Base

Generate one bounded assistant response with the operator's self-hosted Ollama model. Use for short, single-message inference where local processing is preferred. Accepts up to 8,000 characters and returns the model name, response text, and token counts when Ollama supplies them.

Endpoint

POST https://fetchharbor.benlab.download/chat

4

Calls / 30d

2

Unique payers / 30d

Sep 5

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://fetchharbor.benlab.download/chat", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "message": "Explain this topic briefly."
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://fetchharbor.benlab.download/chat" \
  -H "Content-Type: application/json" \
  -d '{"message":"Explain this topic briefly."}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "model": "llama3.2:3b",
  "prompt_tokens": 14,
  "response": "Hello! How can I help?",
  "response_tokens": 8,
  "status": "success"
}

Payment details

Pay to0xaed4a496fed1132b94c0a5f9fb5ee7cf63d869c2
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from Benlab & similar services