{"uid":"cap_pTgZD20WBCFa11JSdBoNp","slug":"tanship-payai-vector-embedding-endpoint-94dd018b","name":"Tanship PayAI — Vector Embedding Endpoint","description":"Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.","url":"https://x402.tanship.dev/v1/ai/vector","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.00003","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.00003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6jui0y_jZGymyMJirqPIc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.00003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates multilingual vector embeddings (BGE-M3, 1024 dimensions) for text input via a payment-gated x402 API on Base USDC.","exampleAgentPrompt":"Generate a vector embedding for this paragraph using BGE-M3: 'Tanship provides payment-gated AI APIs using the x402 protocol on Base.' I need the 1024-dim embedding for a semantic search index.","exampleUseCases":[{"title":"Multilingual semantic search indexing","prompt":"I need to embed these 50 product descriptions in French, Spanish, and English into 1024-dimensional vectors for my semantic search database — can you send each one to the Tanship vector endpoint and collect the embeddings?"},{"title":"RAG pipeline document encoding","prompt":"Chunk this research paper into paragraphs and get a BGE-M3 embedding for each chunk so I can store them in my Pinecone index for retrieval-augmented generation."},{"title":"Cross-lingual similarity comparison","prompt":"I have two customer reviews — one in Japanese and one in English — can you get vector embeddings for both so I can compute their cosine similarity and check if they're talking about the same issue?"}],"resultDescription":"A 1024-dimensional float vector (BGE-M3 embedding) representing the semantic content of the input text, suitable for cosine similarity, nearest-neighbor search, and storage in vector databases. May also include model metadata.","failureModes":["Missing or invalid x402 USDC payment header → 402 Payment Required","Malformed request body (missing required 'input' field or wrong bodyType) → 400 Bad Request","Insufficient USDC balance on Base → payment failure / 402","Text input too long for model context window → 400 or truncation","Network/edge AI latency spike → timeout","Invalid eip155:8453 wallet address → payment rejection"],"whenToPreferThis":"Choose this endpoint when you need multilingual, high-quality dense text embeddings (BGE-M3, 1024 dims) with micropayment-per-call billing via USDC on Base (x402), particularly for multilingual semantic search, cross-lingual retrieval, or RAG pipelines where you want to pay per use without a subscription. Prefer over OpenAI or Cohere embedding APIs when you need Base USDC micropayment billing or BGE-M3 specifically for strong multilingual coverage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:52:45.243Z","isFirstParty":false}