{"openapi":"3.1.0","info":{"title":"GEDX402 Knowledge","version":"6","description":"M2M100 translate \u2014 customer revenue SKU on Workers AI NLP.","contact":{"email":"support@macrostrategies.ai","url":"https:\/\/embed.gedx402.com"},"x-guidance":"Pay per request with USDC on Base via x402 v2 (Coinbase CDP facilitator). Choose any listed network in the 402 accepts[] response. 7 routes on this shard (competitive heroes default; ?full=1 for all). Full catalog: GET https:\/\/gedx402.com\/v1\/models Start here: POST \/v1\/translate","x-service":{"serviceName":"GEDX402 Knowledge","tags":["embeddings","rag","translate","nlp","usdc"],"iconUrl":"https:\/\/embed.gedx402.com\/favicon.svg"},"x-hub":"https:\/\/gedx402.com","x-payments":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"x-openapi-scope":"competitive","full_catalog":"https:\/\/embed.gedx402.com\/openapi.json?full=1"},"servers":[{"url":"https:\/\/embed.gedx402.com"}],"paths":{"\/v1\/embed\/ping":{"post":{"operationId":"embed_ping","summary":"Embed ping (entry probe)","description":"Entry probe \u2014 x402 settlement USDC per request (see unpaid 402 or GET \/v1\/models). POST { text: \"ping\" } on embed.gedx402.com; 384-dim BGE-small vector. Hero: GET \/heroes\/embed-ping.","tags":["Embeddings"],"security":[{"x402":[]}],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.001000","max":"0.003623"}},"responses":{"200":{"description":"Inference result","content":{"application\/json":{"schema":{"type":"object"},"example":{"model":"@cf\/baai\/bge-small-en-v1.5","data":[{"embedding":[0.01,-0.02],"index":0}]}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base). Unpaid 402 includes PAYMENT-REQUIRED. After a rejected PAYMENT-SIGNATURE the JSON body is { reason_code, detail, next_step }.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application\/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Short UTF-8 string to embed (e.g. ping). Fixed $0.001 USDC entry probe."}},"required":["text"]},"example":{"text":"ping"}}}},"servers":[{"url":"https:\/\/embed.gedx402.com"}],"x-resource-url":"https:\/\/embed.gedx402.com\/v1\/embed\/ping"}},"\/v1\/rerank":{"post":{"operationId":"rerank","summary":"Document Reranking","description":"Relevance scores for your candidate passages against a query. POST { query, contexts: [{ text }], top_k? } on embed.gedx402.com. Returns response[] of { index, score } sorted by relevance for search and RAG. Example: { query: \"vector search\", contexts: [{ text: \"Embeddings store meaning.\" }], top_k: 2 } \u2192 [{ index: 0, score: 0.92 }].","tags":["Embeddings"],"security":[{"x402":[]}],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.002700","max":"0.002700"}},"responses":{"200":{"description":"Inference result","content":{"application\/json":{"schema":{"type":"object"},"example":{"response":[{"index":0,"score":0.92},{"index":1,"score":0.11}]}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base). Unpaid 402 includes PAYMENT-REQUIRED. After a rejected PAYMENT-SIGNATURE the JSON body is { reason_code, detail, next_step }.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application\/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Search query to rank documents against."},"contexts":{"type":"array","description":"Candidate passages to rerank by relevance to the query.","items":{"type":"object","properties":{"text":{"type":"string"}}}},"top_k":{"type":"integer","description":"Number of top matches to return."}},"required":["query","contexts"]},"example":{"query":"vector search for RAG","contexts":[{"text":"Embeddings store meaning so similar text is near in vector space."},{"text":"A coffee grinder chops beans into grounds for brewing."}],"top_k":2}}}},"servers":[{"url":"https:\/\/embed.gedx402.com"}],"x-resource-url":"https:\/\/embed.gedx402.com\/v1\/rerank"}},"\/v1\/translate":{"post":{"operationId":"translate","summary":"Machine Translation","description":"Translated text for the string you send. POST { text, source_lang, target_lang } on embed.gedx402.com and receive { translated_text }. Bodyless 402 from USDC per request (see unpaid 402 or GET \/v1\/models); larger bodies quote higher up to the route ceiling. Hero: GET \/heroes\/translate.","tags":["Text"],"security":[{"x402":[]}],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.004000","max":"0.012505"}},"responses":{"200":{"description":"Inference result","content":{"application\/json":{"schema":{"type":"object"},"example":{"translated_text":"Hola"}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base). Unpaid 402 includes PAYMENT-REQUIRED. After a rejected PAYMENT-SIGNATURE the JSON body is { reason_code, detail, next_step }.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application\/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Source text to translate."},"source_lang":{"type":"string","description":"ISO language code for the source text."},"target_lang":{"type":"string","description":"ISO language code for the desired output."}},"required":["text","source_lang","target_lang"]},"example":{"text":"Hello","source_lang":"en","target_lang":"es"}}}},"servers":[{"url":"https:\/\/embed.gedx402.com"}],"x-resource-url":"https:\/\/embed.gedx402.com\/v1\/translate"}},"\/v1\/translate\/indic":{"post":{"operationId":"translate_indic","summary":"Indic Translation","description":"Translate text with Indictrans2 EN Indic 1B (@cf\/ai4bharat\/indictrans2-en-indic-1B). POST source text and target language; returns translated_text with dynamic token pricing.","tags":["Text"],"security":[{"x402":[]}],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.004000","max":"0.012505"}},"responses":{"200":{"description":"Inference result","content":{"application\/json":{"schema":{"type":"object"},"example":{"target_language":"tam_Taml","translated_text":"\u0bb5\u0ba3\u0b95\u0bcd\u0b95\u0bae\u0bcd \u0ba8\u0ba3\u0bcd\u0baa\u0bb0\u0bc7."}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base). Unpaid 402 includes PAYMENT-REQUIRED. After a rejected PAYMENT-SIGNATURE the JSON body is { reason_code, detail, next_step }.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application\/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"English source text to translate."},"target_language":{"type":"string","enum":["asm_Beng","awa_Deva","ben_Beng","bho_Deva","brx_Deva","doi_Deva","eng_Latn","gom_Deva","gon_Deva","guj_Gujr","hin_Deva","hne_Deva","kan_Knda","kas_Arab","kas_Deva","kha_Latn","lus_Latn","mag_Deva","mai_Deva","mal_Mlym","mar_Deva","mni_Beng","mni_Mtei","npi_Deva","ory_Orya","pan_Guru","san_Deva","sat_Olck","snd_Arab","snd_Deva","tam_Taml","tel_Telu","urd_Arab","unr_Deva"],"description":"IndicTrans2 target language code (e.g. hin_Deva, tam_Taml, ben_Beng)."}},"required":["text","target_language"]},"example":{"text":"Hello friend","target_language":"tam_Taml"}}}},"servers":[{"url":"https:\/\/embed.gedx402.com"}],"x-resource-url":"https:\/\/embed.gedx402.com\/v1\/translate\/indic"}},"\/v1\/summarize":{"post":{"operationId":"summarize","summary":"Text Summarization","description":"Summarize long text with Llama 3.2 3B Instruct (@cf\/meta\/llama-3.2-3b-instruct). POST input text; returns a concise summary. Price scales with input and output length.","tags":["Text"],"security":[{"x402":[]}],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.004000","max":"0.006620"}},"responses":{"200":{"description":"Inference result","content":{"application\/json":{"schema":{"type":"object"},"example":{"summary":"Concise summary."}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base). Unpaid 402 includes PAYMENT-REQUIRED. After a rejected PAYMENT-SIGNATURE the JSON body is { reason_code, detail, next_step }.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application\/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Long-form text to condense."},"max_length":{"type":"integer","description":"Target maximum length of the summary."}},"required":["text"]},"example":{"text":"Long article to summarize...","max_length":128}}}},"servers":[{"url":"https:\/\/embed.gedx402.com"}],"x-resource-url":"https:\/\/embed.gedx402.com\/v1\/summarize"}},"\/v1\/sentiment":{"post":{"operationId":"sentiment","summary":"Sentiment Analysis","description":"A positive or negative label for the text you send, with a confidence score. POST { text } on embed.gedx402.com. Returns { label, score }. Example: { text: \"I love this!\" } \u2192 { label: \"POSITIVE\", score: 0.99 }. Fixed low per-request price.","tags":["Vision"],"security":[{"x402":[]}],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.007500","max":"0.007500"}},"responses":{"200":{"description":"Inference result","content":{"application\/json":{"schema":{"type":"object"},"example":{"label":"POSITIVE","score":0.99}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base). Unpaid 402 includes PAYMENT-REQUIRED. After a rejected PAYMENT-SIGNATURE the JSON body is { reason_code, detail, next_step }.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application\/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Short text to classify as positive or negative."}},"required":["text"]},"example":{"text":"I love this!"}}}},"servers":[{"url":"https:\/\/embed.gedx402.com"}],"x-resource-url":"https:\/\/embed.gedx402.com\/v1\/sentiment"}},"\/v1\/classify\/image":{"post":{"operationId":"classify_image","summary":"Image Classification","description":"Classify images with Resnet 50 (@cf\/microsoft\/resnet-50). POST base64 image data; returns ranked labels and scores.","tags":["Vision"],"security":[{"x402":[]}],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.002700","max":"0.002700"}},"responses":{"200":{"description":"Inference result","content":{"application\/json":{"schema":{"type":"object"},"example":{"results":[{"label":"cat","score":0.87}]}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base). Unpaid 402 includes PAYMENT-REQUIRED. After a rejected PAYMENT-SIGNATURE the JSON body is { reason_code, detail, next_step }.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application\/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"image":{"type":"string","description":"Base64-encoded image bytes (no data: URI prefix)."}},"required":["image"]},"example":{"image":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="}}}},"servers":[{"url":"https:\/\/embed.gedx402.com"}],"x-resource-url":"https:\/\/embed.gedx402.com\/v1\/classify\/image"}},"\/v1\/models":{"get":{"operationId":"models","summary":"Shard route catalog","description":"Free catalog for this shard with pricing and descriptions.","tags":["Catalog"],"security":[],"responses":{"200":{"description":"Catalog JSON"}}}},"\/v1\/demo":{"get":{"operationId":"demo_index","summary":"Response shape previews","description":"Free cached JSON examples (not charged).","tags":["Catalog"],"security":[],"responses":{"200":{"description":"Demo index"}}}},"\/v1\/health":{"get":{"operationId":"health","summary":"Service health","tags":["Catalog"],"security":[],"responses":{"200":{"description":"Health JSON"}}}}},"x-agentcash-guidance":{"llmsTxtUrl":"https:\/\/embed.gedx402.com\/llms.txt"},"x-agentcash-provenance":{"ownershipProofs":["0xb3C2776cE3F99cb3366520c27b4aC5D436942Ab6"]},"x-discovery":{"ownershipProofs":["0xb3C2776cE3F99cb3366520c27b4aC5D436942Ab6"]},"components":{"securitySchemes":{"x402":{"type":"apiKey","in":"header","name":"PAYMENT-SIGNATURE","description":"x402 v2. First POST without this header returns 402 + PAYMENT-REQUIRED. Sign the Base accept (eip155:8453) with @x402\/fetch and retry once. After a rejected signature the 402 body is { reason_code, detail, next_step }."}}}}