80trust / 100

Embeddings

by x402engine.app in AI models & inference

x402 APIPassing, checked 1 h ago

x402engine — Generate text embeddings using OpenAI text-embedding-3-small — for semantic search, clustering, RAG

POST https://x402engine.app/api/embeddings

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
276 ms typical, 349 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402engine.app/api/embeddings" \
  -H "content-type: application/json" \
  -d '{"text":"hello world","texts":["hello","world"]}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402engine.app%2Fapi%2Fembeddings
const res = await pay("https://x402engine.app/api/embeddings", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"hello world","texts":["hello","world"]}),
});
console.log(await res.json());

Example input

{
  "text": "hello world",
  "texts": [
    "hello",
    "world"
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402341 ms$0.001
5 h agoPassed402291 ms$0.001
8 h agoPassed402437 ms$0.001
12 h agoPassed402329 ms$0.001
15 h agoPassed402272 ms$0.001
19 h agoPassed402349 ms$0.001
23 h agoPassed402185 ms$0.001
26 h agoPassed402182 ms$0.001
30 h agoPassed402276 ms$0.001
33 h agoPassed402193 ms$0.001
39 h agoPassed402184 ms$0.001