AiSpace Venice · Embeddings

by AiSpace Venice

POSTBaseSolana

$0.01

per call · USD Coin on Base

Text embeddings on Venice models for retrieval, RAG, and semantic search, paid per request in USDC on Base via x402, no API key. Resolve a model id from GET /api/v1/models?type=embedding.

Endpoint

POST https://x402.aispace.bot/api/v1/embeddings

11

Calls / 30d

5

Unique payers / 30d

Sep 9

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.aispace.bot/api/v1/embeddings", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": "The quick brown fox jumps over the lazy dog.",
    "model": "text-embedding-bge-m3"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402.aispace.bot/api/v1/embeddings" \
  -H "Content-Type: application/json" \
  -d '{"input":"The quick brown fox jumps over the lazy dog.","model":"text-embedding-bge-m3"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": [
    {
      "embedding": [
        -0.05365830659866333
      ],
      "index": 0,
      "object": "embedding"
    }
  ],
  "model": "text-embedding-bge-m3",
  "object": "list",
  "usage": {
    "prompt_tokens": 3,
    "total_tokens": 3
  }
}

Payment details

Pay to0xa7f3ad0e69f61864092fabba6cee00af6e584689
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

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

Get featured →

More from AiSpace Venice & similar services