{"uid":"cap_VacXpGON991ktK9UpCBeX","slug":"cortexcloud-embeddings-5d77f2d9","name":"CortexCloud Embeddings","description":"OpenAI-compatible AI and data API for agents. Pay per call in USDC on Base via x402 — no API keys, no subscriptions, no lock-in.","url":"https://api.cortexcloud.org/x402/v1/embeddings","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","description":"Text to embed"},"model":{"type":"string","description":"Embedding model id, e.g. gemini/text-embedding-004"}}},"responseSchema":{"type":"object","format":"application/json","example":{"id":"emb_abc","data":[{"index":0,"object":"embedding","embedding":[]}],"usage":{"total_tokens":0,"prompt_tokens":0},"object":"list"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rDJHARkkKRRBUy18z4JZs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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 a given text string using a specified embedding model, billed per call in USDC via x402.","exampleAgentPrompt":"Can you embed this sentence using the gemini/text-embedding-004 model: 'The quick brown fox jumps over the lazy dog'?","exampleUseCases":[{"title":"Semantic search index builder","prompt":"Take this product description — 'Lightweight waterproof hiking boots with ankle support' — and convert it to a vector embedding using gemini/text-embedding-004 so I can store it in my semantic search index."},{"title":"RAG pipeline query vectorization","prompt":"I need to embed this user question before doing a similarity lookup in my vector database: 'What is the return policy for online orders?' Use the text-embedding-004 model."},{"title":"Document similarity clustering","prompt":"Embed this customer review — 'The battery life is excellent but the screen is dim in sunlight' — with gemini/text-embedding-004 so I can cluster it with similar feedback."}],"resultDescription":"Returns a JSON object containing a 'data' array of embedding vectors (each an array of floats), the 'model' name used, and an 'object' field indicating the response type. The embedding array can be used directly for cosine similarity, nearest-neighbor search, or storage in a vector database.","failureModes":["Missing or empty 'input' field returns a 400 validation error","Invalid or unsupported model ID may return a 400 or 404 error","Insufficient USDC balance or failed x402 payment results in a 402 Payment Required response","Network timeout for large input texts","Rate limiting if too many requests are sent in rapid succession"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call embedding service with no API key management or subscription overhead, particularly in agent workflows that require dynamic, metered access. It is especially useful for AI agents operating autonomously with crypto wallets, needing OpenAI-compatible embedding outputs from multiple underlying providers (e.g. Gemini) without vendor lock-in.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:43:39.792Z","isFirstParty":false}