P

Prismnetwork · Inference Inference

by Prismnetwork

POSTBaseFraxtal

$0.0032

per call · USD Coin on Base

One LLM generation on a rented GPU, priced per request.

Endpoint

POST https://api.prismnetwork.tech/inference/v1/inference

10

Calls / 30d

2

Unique payers / 30d

Aug 28

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://api.prismnetwork.tech/inference/v1/inference", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "model": "llama3.2:3b",
    "options": {
      "num_predict": 64
    },
    "prompt": "Explain metered GPU compute in one sentence."
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.prismnetwork.tech/inference/v1/inference" \
  -H "Content-Type: application/json" \
  -d '{"model":"llama3.2:3b","options":{"num_predict":64},"prompt":"Explain metered GPU compute in one sentence."}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "lease_id": 1047,
  "model": "llama3.2:3b",
  "response": "Metered GPU compute bills by the second and settles onchain.",
  "usage": {
    "completion_tokens": 14,
    "duration_ms": 640,
    "prompt_tokens": 12
  }
}

Payment details

Pay to0xe67a61f8e2ac4057aa22e64306107e7120078447
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Fraxtal
Schemesexact

Is this your API?

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

Get featured →

More from Prismnetwork & similar services