{"uid":"cap_jxafSP_2kvR3_QcO5pqiz","slug":"agent-data-tools-revmesh2074-workers-dev-openai-compatible-text-3ca95505","name":"OpenAI-Compatible Text Embeddings (BGE-M3, 1024-dim)","description":"OpenAI embeddings request shape, answered by the same model and at the same price as /ai/embed ($0.01): send one input string (up to 4000 characters, 100+ languages), get one 1,024-dimension vector. One input per request, because one payment pays for one call. Point an OpenAI SDK at https://agent-data-tools.revmesh2074.workers.dev/v1 with an x402 or MPP fetch wrapper, or an adt_ card-credit key as apiKey. Failed calls are never charged.","url":"https://agent-data-tools.revmesh2074.workers.dev/v1/embeddings?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"},"maxItems":1,"minItems":1}],"description":"One text to embed (a string, or a one-item array)"},"model":{"type":"string","description":"Ignored; the model is @cf/baai/bge-m3"}}},"responseSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"object":{"type":"string"},"embedding":{"type":"array","items":{"type":"number"}}}}},"model":{"type":"string"},"usage":{"type":"object","properties":{"estimated":{"type":"boolean"},"total_tokens":{"type":"integer"},"prompt_tokens":{"type":"integer"}}},"object":{"type":"string"}}},"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_3izJOBNbWLZNYalfKBMUD","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 a single text string (up to 4000 chars, 100+ languages) into a 1024-dimension embedding vector using BAAI BGE-M3, via OpenAI-compatible API shape","exampleAgentPrompt":"Turn this sentence into a 1024-dimension embedding vector using BGE-M3: 'Renewable energy is becoming increasingly cost-competitive with fossil fuels.'","exampleUseCases":[{"title":"RAG document chunk indexing","prompt":"Embed this paragraph so I can store it in my vector database for retrieval-augmented generation: 'The mitochondria is the powerhouse of the cell, producing ATP through oxidative phosphorylation.'"},{"title":"Semantic similarity search query","prompt":"Convert this user search query into an embedding vector so I can find the closest matching documents in my index: 'best practices for microservices authentication'"},{"title":"Multilingual text vectorization","prompt":"Get me a BGE-M3 embedding for this French sentence so I can compare it semantically against English documents: 'Les énergies renouvelables représentent l'avenir de la production électrique.'"}],"resultDescription":"Returns an OpenAI-compatible JSON response with a `data` array containing one embedding object (index, object type, and a 1024-element float array), plus `model` name, `object` type, and `usage` stats (prompt_tokens, total_tokens, estimated flag).","failureModes":["Input exceeds 4000 character limit — request rejected","Array input with more than 1 item — schema violation","Missing `input` field — 400 Bad Request","Invalid or missing payment credential — 402 Payment Required (not charged)","Model field ignored silently — no error but always uses BGE-M3","Network timeout on Cloudflare Worker — transient 5xx, not charged"],"whenToPreferThis":"Choose this endpoint when you need OpenAI SDK-compatible embedding calls (drop-in /v1/embeddings path) without a full OpenAI account, want BGE-M3's strong multilingual performance (100+ languages), need per-call micro-payments via x402 crypto or prepaid card credits, and are embedding one text at a time. Prefer over OpenAI's text-embedding-ada-002 when multilingual coverage or pay-per-call USDC billing matters. Prefer over self-hosted BGE-M3 when you want zero infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-04T01:04:22.848Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-openai-compatible-text-3ca95505"}