{"uid":"cap_OAyFJS8TIm0C4_W5jyhw5","slug":"cortexcloud-text-embedding-api-62adbba2","name":"CortexCloud Text Embedding API","description":"One pay-per-call API for AI agents: optimization, AI, research, on-chain data, and automation — all settled in USDC on Base via x402. Discover via MCP and Bazaar, estimate free, pay per call. No API keys, no signup.","url":"https://api.cortexcloud.org/v1/ai/embed","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"array","items":{"type":"string"},"maxItems":128,"minItems":1},"model":{"type":"string","default":"text-embedding-004"}}},"responseSchema":{"type":"object","format":"application/json","example":{"data":[{"embedding":[0.01,0.02,-0.03]}],"model":"openrouter/google/text-embedding-004","price_usd":0.0001}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gay_Xy3-GKYfyhS6pz8S0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","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 one or more text strings using configurable embedding models, paid per call in USDC via x402","exampleAgentPrompt":"Embed these three sentences for me so I can store them in my vector database: 'The cat sat on the mat', 'Dogs are loyal companions', and 'Birds can fly south for winter' — use the default text-embedding-004 model.","exampleUseCases":[{"title":"RAG pipeline document ingestion","prompt":"Embed these 5 product descriptions so I can index them in my vector store for semantic search: 'Wireless noise-cancelling headphones with 30hr battery', 'Ergonomic standing desk with height memory presets', 'Mechanical keyboard with RGB backlighting', 'Ultra-wide curved gaming monitor 34 inch', 'Portable Bluetooth speaker waterproof IPX7'."},{"title":"Semantic similarity scoring","prompt":"Turn these two user reviews into embedding vectors so I can measure how similar they are: 'Absolutely loved the fast shipping and quality packaging' and 'Delivery was quick and the product arrived in perfect condition'."},{"title":"Query embedding for vector search","prompt":"Convert this search query into a vector embedding using text-embedding-004 so I can run a nearest-neighbor lookup against my knowledge base: 'how do I reset my account password?'"}],"resultDescription":"Returns a JSON object containing an array of embedding objects (each with a float array 'embedding'), the model name used (e.g. 'openrouter/google/text-embedding-004'), and the price in USD for the call. Each input string maps to one embedding vector in the data array.","failureModes":["Input array exceeds 128 items — returns error indicating maxItems constraint","Empty input array (minItems: 1 violation) — returns validation error","Invalid model name — may return error or fall back to default","Payment failure via x402 — 402 response if USDC payment not completed","Oversized individual strings may cause token limit errors from underlying model"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call text embeddings with no API key or account signup, settling payment in USDC on Base via x402. Ideal for autonomous AI agents that need to embed text on demand without managing subscription billing. Prefer this over OpenAI or Cohere direct APIs when operating in a crypto-native, agent-to-agent payment context or when you want cost transparency at the per-call level.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:40:31.404Z","isFirstParty":false}