{"uid":"cap_zQPzmXc6pdvFKvgqMsjW0","slug":"text-embeddings-api-openai-compatible-x402-usdc-09b7373a","name":"Text Embeddings API (OpenAI-Compatible, x402 USDC)","description":"Text embeddings API for AI agents: OpenAI-compatible /v1/embeddings paid per request in USDC on Base — no account or API key. Embed documents for RAG, semantic search, clustering, deduplication with text-embedding-3-small or text-embedding-3-large. Embeddings are deterministic, so repeated texts hit our cache and bill at 55% of provider price — re-embedding a corpus costs roughly half. Misses at cost + 4%, from $0.001/call. Standard OpenAI POST format.","url":"https://agent-production-1daa.up.railway.app/v1/embeddings","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"description":"String or array of strings to embed"},"model":{"enum":["text-embedding-3-small","text-embedding-3-large"],"type":"string","description":"Embedding model"},"dimensions":{"type":"number","description":"Optional output dimensionality (model-dependent)"}}},"responseSchema":null,"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_WJW8afq6IFVIRnk_-A6ME","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 text embeddings using OpenAI-compatible models (text-embedding-3-small or text-embedding-3-large), billed per-request in USDC on Base with no API key required and a caching discount for repeated inputs.","exampleAgentPrompt":"Embed these 10 product descriptions using text-embedding-3-small so I can index them for semantic search — pay with USDC on Base, no API key needed.","exampleUseCases":[{"title":"Deduplicating content across document collections","prompt":"I have thousands of old customer support tickets stored in different systems. Embed them all using text-embedding-3-large so I can find and merge near-duplicate conversations — just pay per request in USDC, I don't want to manage API keys."},{"title":"Building semantic search for internal knowledge base","prompt":"Our team has a library of internal docs, FAQs, and runbooks scattered everywhere. Embed all of them with text-embedding-3-small so we can query and surface the most relevant answers — use the caching to keep costs down since we'll be searching the same corpus repeatedly."},{"title":"Clustering similar user feedback at scale","prompt":"I need to group thousands of user survey responses and feedback by topic to identify patterns. Generate embeddings for all of them so I can cluster similar feedback together — just charge my agent directly in USDC on Base without any account setup."}],"resultDescription":"Returns a JSON object in OpenAI /v1/embeddings format: an array of embedding objects each containing an index and a float-array vector, plus a usage object with prompt_token_count. Repeated inputs are served from cache at 55% of provider price; cache misses are billed at cost plus 4%, starting from $0.001 per call.","failureModes":["Invalid model name (not in enum) returns 400 Bad Request","Input too long for model context window returns 400","Payment not included or insufficient USDC returns 402 Payment Required","Model or dimensions combination unsupported returns 422","Service unavailable on Railway returns 503"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-compatible text embeddings but want to avoid managing API keys or monthly billing — particularly useful for AI agents that can pay per-request in USDC on Base. The built-in caching makes it especially cost-efficient when re-embedding a corpus or processing repetitive text. Prefer text-embedding-3-large when embedding quality is paramount; use text-embedding-3-small for lower cost and faster throughput.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:39.338Z","isFirstParty":false}