W

Workers · Embeddings

by Workers

POSTBaseSolana

$0.003

per call · USD Coin on Base

Text Embeddings

Endpoint

POST https://x402-agent.scope-research-api.workers.dev/embeddings

1

Calls / 30d

1

Unique payers / 30d

Sep 10

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://x402-agent.scope-research-api.workers.dev/embeddings", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": "Semantic search for agent payments"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402-agent.scope-research-api.workers.dev/embeddings" \
  -H "Content-Type: application/json" \
  -d '{"input":"Semantic search for agent payments"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "dimensions": 1536,
  "embeddings": [
    {
      "embedding": [
        0.0123,
        -0.0456,
        0.0789
      ],
      "index": 0
    }
  ],
  "endpoint": "/embeddings",
  "model": "text-embedding-3-small",
  "usage": {
    "promptTokens": 6,
    "totalTokens": 6
  }
}

Payment details

Pay to0xd0cb67af1adbf8982ed1cd085cd4b845704609ce
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Workers & similar services