{"uid":"cap_oRfXb25RBWlRxJjFQ_X-9","slug":"x402ai-text-embedding-api-5004873a","name":"x402ai Text Embedding API","description":"Convert text into a 768-dimension embedding vector (nomic-embed-text) for semantic search, RAG retrieval, clustering, deduplication or similarity scoring. POST JSON {\"input\": string}, up to 3000 characters; returns {embedding: number[768], model, dimensions, elapsed_ms}. One text per call; English works best.","url":"https://api.x402ai.dev/api/embed?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"Text to embed"}}},"responseSchema":{"type":"object","required":["embedding"],"properties":{"embedding":{"type":"array","items":{"type":"number"}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aCcNN-T1nEjdB70Djx4TK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a vector embedding for a given text string, paid per-call via x402 on Base mainnet at $0.01 USDC.","exampleAgentPrompt":"Embed this sentence for me so I can store it in my vector database: 'How do I reset my password?'","exampleUseCases":[{"title":"Semantic search index builder","prompt":"I need to embed this support article paragraph so I can add it to my Pinecone vector index for semantic search: 'To reset your password, click Forgot Password on the login screen and follow the instructions sent to your email.'"},{"title":"Duplicate question detection","prompt":"Can you get the vector embedding for this user question — 'What's the return policy for online orders?' — so I can compare it against existing FAQ entries and find near-duplicates?"},{"title":"RAG pipeline chunk encoding","prompt":"Embed this text chunk from my product manual so I can use it in my retrieval-augmented generation pipeline: 'The device should be charged for at least two hours before first use.'"}],"resultDescription":"Returns a JSON object with an 'embedding' field containing an array of floating-point numbers representing the dense vector encoding of the input text. The vector can be used for semantic similarity, clustering, classification, or storage in a vector database.","failureModes":["Payment not included or insufficient — returns 402 Payment Required","Input field missing or empty — returns 400 Bad Request","Input text too long for model context window — may return 400 or truncation error","Network or upstream model failure — returns 500 Internal Server Error","Invalid USDC payment on Base mainnet — payment rejected before inference runs"],"whenToPreferThis":"Choose this endpoint when you need on-demand, pay-per-call text embeddings without a subscription or API key — ideal for low-volume, agent-driven workflows that already use the x402 micropayment protocol on Base mainnet. It is especially appropriate when your agent stack handles x402 payments natively and you want a stateless, per-request embedding call without managing OpenAI or Cohere billing accounts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:58:43.343Z","isFirstParty":false,"canonicalSlug":"x402ai-text-embedding-api-5004873a"}