{"uid":"cap_PCQpm1w7xgi5FoXKRPKZA","slug":"agent-data-tools-revmesh2074-workers-dev-text-embeddings-api-bge-m3-ce63557a","name":"Text Embeddings API (BGE-M3, 1024-dimension vectors)","description":"Text embeddings API: a 1,024-dimension vector for up to 4,000 characters of text in 100+ languages (BAAI BGE-M3), also OpenAI-compatible at /v1/embeddings. Use for semantic search, RAG retrieval, clustering, deduplication and similarity scoring.","url":"https://agent-data-tools.revmesh2074.workers.dev/ai/embeddings?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text to embed, up to 4,000 characters"}}},"responseSchema":{"type":"object","properties":{"model":{"type":"string"},"embedding":{"type":"array","items":{"type":"number"}},"dimensions":{"type":"number"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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_LG0v5U5srTn1JYKwtSIBM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Converts text (up to 4,000 characters, 100+ languages) into a 1,024-dimension semantic embedding vector using BAAI BGE-M3 model","exampleAgentPrompt":"Embed this text into a 1,024-dimension BGE-M3 vector so I can store it in my vector database for semantic search: 'Retrieval-augmented generation combines dense retrieval with language model generation.'","exampleUseCases":[{"title":"RAG knowledge base ingestion","prompt":"Embed this document chunk into a vector so I can store it in my Pinecone index for RAG retrieval: 'Our refund policy allows returns within 30 days of purchase with a valid receipt.'"},{"title":"Semantic duplicate detection","prompt":"Generate an embedding vector for this customer review so I can compare it with existing reviews and find near-duplicates: 'The delivery was incredibly fast and the product exceeded my expectations.'"},{"title":"Multilingual semantic search query","prompt":"Convert this French search query into a BGE-M3 embedding so I can find semantically similar English documents in my vector store: 'Comment puis-je réinitialiser mon mot de passe?'"}],"resultDescription":"Returns a JSON object containing the model name (string), a 1,024-element array of float values representing the semantic embedding of the input text, and the dimensions count (1024). The vector can be directly used for cosine similarity, dot product scoring, or insertion into a vector database.","failureModes":["Text exceeds 4,000 characters — API may truncate or return an error","Empty text input — likely returns an error or zero vector","Payment failure (402) if free call quota exhausted and no USDC balance — call not charged","Model inference timeout on very dense or complex text","Network/worker timeout on Cloudflare edge"],"whenToPreferThis":"Choose this endpoint when you need multilingual text embeddings (100+ languages) with a 1,024-dimension output compatible with BGE-M3, especially if you want pay-per-call pricing with no account setup. It's also OpenAI-compatible at /v1/embeddings, making it a drop-in replacement. Prefer it over OpenAI's embedding endpoint when you want cost control via USDC micropayments or when BGE-M3's multilingual capabilities outweigh OpenAI's ada-002 for your language mix.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-04T01:04:22.851Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-text-embeddings-api-bge-m3-ce63557a"}