{"uid":"cap_AnWyKF2eB9CdowV9U9A86","slug":"payweave-retrieval-text-embedding-api-490dee6c","name":"PayWeave Retrieval – Text Embedding API","description":"Text embeddings and reranking on Cloudflare Workers AI.","url":"https://retrieval.payweave.services/embed","method":"POST","headers":{},"bodySchema":{"type":"object","required":["texts"],"properties":{"model":{"enum":["bge-base","bge-large","bge-m3"],"type":"string","description":"Embedding model: `bge-base` (768d, default), `bge-large` (1024d, higher quality), or `bge-m3` (1024d, multilingual). Defaults to `bge-base`."},"texts":{"type":"array","description":"Texts to embed, in order. 1-100 items, each up to 2000 characters. Priced per text."}}},"responseSchema":{"type":"object","required":["model","dimensions","embeddings"],"properties":{"model":{"type":"string","description":"Workers AI model id used"},"dimensions":{"type":"integer","description":"Length of each embedding vector","exclusiveMinimum":0},"embeddings":{"type":"array","items":{"type":"array","items":{"type":"number"}},"description":"One embedding vector per input text, in the same order as `texts`"}},"description":"Embedding vectors for the input texts","additionalProperties":false},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0002","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.0002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vmODJadGKsxIt4_TGG44b","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates dense vector embeddings for input texts using Cloudflare Workers AI BGE models, supporting up to 100 texts per call with multilingual and high-dimensional options.","exampleAgentPrompt":"Embed these three product descriptions using the bge-large model so I can index them in my vector store: 'Lightweight running shoes with foam sole', 'Waterproof hiking boots for trail use', and 'Casual canvas sneakers for everyday wear'.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the model ID used, the dimensionality of each vector, and an ordered array of floating-point embedding vectors — one per input text — matching the order of the input texts array.","failureModes":["Exceeding 100 texts per request returns a validation error","Individual text exceeding 2000 characters may be rejected or truncated","Invalid model name falls back to default or returns an error","Empty texts array returns a validation error","Payment failure (x402) returns HTTP 402 before any embedding is computed","Network timeout on large batches of long texts"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call text embeddings with no subscription, especially if you want BGE-family models (bge-base for speed, bge-large for quality, bge-m3 for multilingual) running on Cloudflare's edge infrastructure. Ideal for sporadic or burst embedding workloads where a prepaid USDC micropayment model is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:34:54.487Z","isFirstParty":false}