{"uid":"cap_5S9-ZU9GAGXnw2Kiq0RWB","slug":"bge-m3-text-embeddings-api-75f5abff","name":"BGE-M3 Text Embeddings API","description":"Text embeddings with bge-m3 (1,024 dimensions, multilingual): one text, or up to 32 texts in one call (POST texts array), up to 32,000 characters in all. For semantic search, clustering and similarity.","url":"https://onchaincheck.dev/ai/embeddings?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","pattern":"^[\\s\\S]+$","maxLength":32000,"description":"Text to embed (or texts: an array of up to 32 strings)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9wKaJxZb_mOTbjhh6_a3s","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates multilingual BGE-M3 text embeddings (1,024 dimensions) for one or up to 32 texts per call, supporting semantic search, clustering, and similarity tasks.","exampleAgentPrompt":"Embed these three product descriptions into vectors using BGE-M3 so I can compare their semantic similarity: 'wireless noise-cancelling headphones', 'bluetooth over-ear audio headset', 'wired studio monitor earphones'.","exampleUseCases":[{"title":"RAG pipeline document indexing","prompt":"I need to vectorize these 10 customer support FAQ entries so I can store them in my vector database for semantic retrieval — embed all of them in one call using the multilingual BGE-M3 model."},{"title":"Multilingual similarity matching","prompt":"I have a French sentence and a Spanish sentence about the same topic — can you embed both texts so I can compute their cosine similarity and check if they're semantically equivalent?"},{"title":"Clustering product catalog entries","prompt":"Embed these 25 product titles from our e-commerce catalog into 1024-dimensional vectors so I can run k-means clustering to group similar items together."}],"resultDescription":"Returns 1,024-dimensional float vectors (BGE-M3 embeddings) for each input text. If a single text was submitted, returns one embedding vector; if an array was submitted, returns an array of embedding vectors in the same order as the inputs. Vectors can be used directly for cosine similarity, dot-product comparison, nearest-neighbor search, or as input to clustering algorithms.","failureModes":["Input exceeds 32,000 total characters — returns a 400 error","Array contains more than 32 texts — returns a 400 error","Empty text string submitted — returns a 400 or validation error","Payment not provided or insufficient USDC — returns a 402 Payment Required","Service temporarily unavailable — returns a 503 error"],"whenToPreferThis":"Choose this endpoint when you need high-quality multilingual embeddings (supporting 100+ languages) with a 1,024-dimensional output from the BGE-M3 model, especially when batching up to 32 texts in a single call for efficiency. Prefer this over OpenAI or Cohere embeddings when you want on-chain micropayment billing via x402 or when multilingual coverage and BGE-M3's retrieval performance are priorities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:34:31.374Z","isFirstParty":false,"canonicalSlug":"bge-m3-text-embeddings-api-75f5abff"}