80trust / 100
Text Embedding Ada 002 Embeddings
by OpenAI text-embedding-ada-002 in AI models & inference
x402 APIPassing, checked 2 h ago
text-embedding-ada-002: OpenAI Text Embedding Ada 002 embeddings, paid per call in USDC. OpenAI list $0.1 per 1M input tokens, plus $0.0005 (Base) or $0.0005 (Solana) per call; minimum $0.001 per call; up to 8192 tokens per input. Standard OpenAI body. Rates: https://openai.mm.family/x402/pricing
POST https://openai.mm.family/x402/v1/models/text-embedding-ada-002/embeddings
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 58 ms typical, 130 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://openai.mm.family/x402/v1/models/text-embedding-ada-002/embeddings" \
-H "content-type: application/json" \
-d '{"input":"Hello","model":"text-embedding-ada-002"}'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%2Fopenai.mm.family%2Fx402%2Fv1%2Fmodels%2Ftext-embedding-ada-002%2Fembeddings
const res = await pay("https://openai.mm.family/x402/v1/models/text-embedding-ada-002/embeddings", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"input":"Hello","model":"text-embedding-ada-002"}),
});
console.log(await res.json());Example input
{
"input": "Hello",
"model": "text-embedding-ada-002"
}Example output
{
"data": [
{
"embedding": [
0.01,
-0.02
],
"index": 0,
"object": "embedding"
}
],
"model": "text-embedding-ada-002",
"object": "list",
"usage": {
"prompt_tokens": 1,
"total_tokens": 1
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 94 ms | $0.001 |
| 5 h ago | Passed | 402 | 188 ms | $0.001 |
| 9 h ago | Passed | 402 | 30 ms | $0.001 |
| 13 h ago | Passed | 402 | 33 ms | $0.001 |
| 16 h ago | Passed | 402 | 130 ms | $0.001 |
| 20 h ago | Passed | 402 | 91 ms | $0.001 |
| 23 h ago | Passed | 402 | 34 ms | $0.001 |
| 27 h ago | Passed | 402 | 29 ms | $0.001 |
| 32 h ago | Passed | 402 | 58 ms | $0.001 |