{"uid":"cap_BcXgJuWI2Pkqned3Tzc-R","slug":"x402-gateway-production-up-railway-app-84269ded","name":"OpenAI Text Embeddings via x402 Gateway","description":"Generate text embeddings using OpenAI text-embedding-3-small — for semantic search, clustering, RAG","url":"https://x402-gateway-production.up.railway.app/api/embeddings","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","bodyType","body","method"],"properties":{"body":{"type":"object","anyOf":[{"required":["text"]},{"required":["texts"]}],"properties":{"text":{"type":"string","example":"hello world","description":"Single text to embed"},"texts":{"type":"array","items":{"type":"string","example":"hello"},"example":["hello","world"],"maxItems":100,"minItems":1,"description":"Array of texts to embed (1-100)"}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"text":"The quick brown fox jumps over the lazy dog."},"response":{"_truncated":true,"_originalSize":29458}},"exampleRequest":{"text":"The quick brown fox jumps over the lazy dog."},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_htUWVAu5r97_6eJybyh8s","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates vector embeddings for text using OpenAI's text-embedding-3-small model, enabling semantic search, clustering, and RAG pipelines","exampleAgentPrompt":"Generate a text embedding for this sentence using OpenAI text-embedding-3-small so I can store it in my vector database for semantic search: 'The quick brown fox jumps over the lazy dog.'","exampleUseCases":null,"resultDescription":"Returns a high-dimensional float vector (embedding) representing the semantic content of the input text, produced by OpenAI's text-embedding-3-small model, suitable for cosine similarity comparisons, nearest-neighbor search, and clustering.","failureModes":["Empty or missing text input returns a 400 error","Text exceeding model token limit (8191 tokens) may be truncated or rejected","Insufficient USDC balance / failed x402 payment results in 402 Payment Required","OpenAI API upstream failure returns 502 or 503","Rate limiting may cause 429 Too Many Requests"],"whenToPreferThis":"Choose this endpoint when you need fast, cost-efficient text embeddings backed by OpenAI's text-embedding-3-small model and want to pay per-call via USDC without a subscription. Ideal for agents building RAG pipelines, semantic search indexes, or clustering workflows that require reliable OpenAI-quality embeddings with micropayment-based access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:54:52.462Z","isFirstParty":false}