{"uid":"cap_j_jfp8Q58Y7q-2igTlPZW","slug":"openai-text-embedding-ada-002-embeddings-x402-usdc-2db0191c","name":"OpenAI text-embedding-ada-002 Embeddings (x402/USDC)","description":"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","url":"https://openai.mm.family/x402/v1/models/text-embedding-ada-002/embeddings?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":["string","array"]},"model":{"enum":["text-embedding-ada-002"],"type":"string"},"dimensions":{"type":"integer"},"encoding_format":{"enum":["float","base64"],"type":"string"}}},"responseSchema":{"type":"json","example":{"data":[{"index":0,"object":"embedding","embedding":[0.01,-0.02]}],"model":"text-embedding-ada-002","usage":{"total_tokens":1,"prompt_tokens":1},"object":"list"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nTlYS98RJIn2HApSBLQIY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates vector embeddings for text using OpenAI's text-embedding-ada-002 model, billed per call in USDC via the x402 payment protocol.","exampleAgentPrompt":"Generate text-embedding-ada-002 embeddings for this sentence: 'The quick brown fox jumps over the lazy dog' — return the float vector so I can store it in my vector database.","exampleUseCases":[{"title":"Semantic search index population","prompt":"Convert these 50 product descriptions into text-embedding-ada-002 float vectors so I can index them in Pinecone for semantic search."},{"title":"Duplicate document detection","prompt":"Embed both of these support ticket texts using ada-002 and give me their float vectors — I want to compare cosine similarity to detect if they're duplicates."},{"title":"RAG query vectorization","prompt":"Turn this user question — 'What is the refund policy for annual subscriptions?' — into an ada-002 embedding so I can retrieve the closest matching chunks from my knowledge base."}],"resultDescription":"Returns a JSON object containing a list of embedding objects, each with an integer index, object type 'embedding', and a float array (or base64 string) representing the vector. Also includes the model name used, total token count, and prompt token count consumed.","failureModes":["Input exceeds 8192 token limit — request rejected","Malformed input (non-string, non-array) — schema validation error","Insufficient USDC balance for x402 payment — payment failure","Invalid encoding_format value outside enum — request rejected","Rate limiting or server-side quota exceeded — 429/503 response","Model field set to unsupported model name — validation error"],"whenToPreferThis":"Choose this endpoint when you need OpenAI's text-embedding-ada-002 embeddings specifically and want to pay per call in USDC via x402 micropayments without managing an OpenAI API key or subscription. Ideal for agents operating in crypto-native or decentralized payment environments, or for serverless workloads that benefit from pay-per-use pricing. Prefer when ada-002 compatibility is required for consistency with an existing vector index trained on ada-002 embeddings.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:41:07.151Z","isFirstParty":false,"canonicalSlug":"openai-text-embedding-ada-002-embeddings-x402-usdc-2db0191c"}