{"uid":"cap_Md_XbGY-eNiDeboNg8dSh","slug":"openai-compatible-text-embeddings-api-768-dim-x402-676e5452","name":"OpenAI-Compatible Text Embeddings API (768-dim, x402)","description":"OpenAI-compatible text embeddings over x402 (768-dim, up to 32 inputs per call) — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/v1/embeddings?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"oneOf":[{"type":"string","maxLength":8000},{"type":"array","items":{"type":"string","maxLength":8000},"maxItems":32}]},"model":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"data":[{"index":0,"object":"embedding","embedding":[0.012,-0.034,"…"]}],"model":"nomic-embed-text:latest","object":"list","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.002,"receipt_id":"g402-<16hex>"},"dimensions":768}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1Y5lIqRhthmDWztoJnrLE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates 768-dimensional text embeddings for up to 32 strings per call using an OpenAI-compatible API, billed via x402 micropayments at $0.002 USDC per call.","exampleAgentPrompt":"Embed the following 5 product descriptions as 768-dimensional vectors so I can store them in my vector database for semantic search: 'wireless noise-cancelling headphones', 'ergonomic office chair', 'stainless steel water bottle', 'mechanical keyboard', 'USB-C hub'.","exampleUseCases":[{"title":"RAG pipeline document ingestion","prompt":"I'm building a retrieval-augmented generation system — can you generate 768-dim embeddings for these 10 knowledge base chunks so I can index them in my vector store?"},{"title":"Semantic similarity scoring","prompt":"Embed these two sentences and tell me how similar they are: 'The cat sat on the mat' and 'A feline rested on a rug'."},{"title":"Batch query vectorization","prompt":"I need to embed these 20 user search queries so I can match them against product descriptions in my vector database — can you convert them all to 768-dimensional vectors?"}],"resultDescription":"Returns an OpenAI-compatible embeddings response object containing a list of embedding objects, each with a 768-dimensional float vector, the index of the input string, and model metadata. The response mirrors the OpenAI /v1/embeddings response format, making it drop-in compatible with OpenAI SDK clients.","failureModes":["Input array exceeds 32 items — request rejected with validation error","Individual string exceeds 8000 character limit — truncation or rejection","Payment not provided or insufficient USDC via x402 — 402 Payment Required response","Invalid model name — may fall back to default or return an error","Rate limits or server overload — 429 or 503 response"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-compatible embeddings with a pay-per-call micropayment model (no subscription required), can tolerate 768-dim vectors instead of OpenAI's 1536-dim, and want batching of up to 32 inputs per call. Ideal for agents that need on-demand embedding without API key management, using x402-compatible wallets.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:19:15.538Z","isFirstParty":false,"canonicalSlug":"openai-compatible-text-embeddings-api-768-dim-x402-676e5452"}