{"service":"Arabic Pipeline API","description":"Pay-per-call utilities for Arabic text, audio and documents. USDC on Base via x402: no API key, no account, no subscription.","network":"eip155:8453","payTo":"0x05523af5bd166816D1418Ebf7D6371e1fFB1D2e6","asset":"USDC","price_model":"per call, fixed","endpoints":[{"route":"GET /text/metrics","price_usd":0.002,"description":"Text metrics for Arabic (or any) text: counts, language mix, sentence/word stats, reading time."},{"route":"POST /text/metrics","price_usd":0.002,"description":"Text metrics for Arabic (or any) text: counts, language mix, sentence/word stats, reading time."},{"route":"POST /text/normalize","price_usd":0.005,"description":"Normalize Arabic text: strip tashkeel/tatweel, fold alef/ya/ta-marbuta, unify digits, remove bidi control characters, collapse whitespace."},{"route":"POST /audio/transcribe","price_usd":0.02,"description":"Transcribe an audio file to clean text (Arabic or English)."},{"route":"POST /doc/extract","price_usd":0.03,"description":"Extract structured fields from an Arabic document image or PDF (receipts, invoices, IDs)."}],"openapi":"/openapi.json","discovery":{"payapi_market":"https://payapi.market/mcp","x402scan":"https://www.x402scan.com/resources/register","mcp_registry":"https://registry.modelcontextprotocol.io","bazaar":{"GET /text/metrics":{"info":{"input":{"type":"http","queryParams":{"text":"مرحبا بالعالم"}},"output":{"type":"json","example":{"endpoint":"GET /text/metrics","cost_usd":0.002,"metrics":{"characters":12,"words":2,"sentences":1,"arabic_characters":12,"latin_characters":0}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"text":{"type":"string","description":"The text to measure."}},"required":["text"]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}},"required":["type"]}},"required":["input"]}},"POST /text/metrics":{"info":{"input":{"type":"http","bodyType":"json","body":{"text":"مرحبا بالعالم"}},"output":{"type":"json","example":{"endpoint":"POST /text/metrics","cost_usd":0.002,"metrics":{"characters":12,"words":2,"sentences":1,"arabic_characters":12,"latin_characters":0}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"text":{"type":"string","description":"The text to measure."}},"required":["text"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}},"required":["type"]}},"required":["input"]}},"POST /text/normalize":{"info":{"input":{"type":"http","bodyType":"json","body":{"text":"مرحبا بالعالم","mode":"search"}},"output":{"type":"json","example":{"endpoint":"POST /text/normalize","cost_usd":0.005,"text":"مرحبا بالعالم","mode":"search","changed":false,"applied":[],"before_chars":12,"after_chars":12}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"text":{"type":"string","description":"The Arabic text to normalize."},"mode":{"type":"string","enum":["light","search","index"]}},"required":["text"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}},"required":["type"]}},"required":["input"]}},"POST /audio/transcribe":{"info":{"input":{"type":"http","bodyType":"json","body":{"audio_base64":"<base64 audio>","mime_type":"audio/webm"}},"output":{"type":"json","example":{"endpoint":"POST /audio/transcribe","cost_usd":0.02,"model":"gemini-3.5-transcribe","text":"النص المستخرج من الصوت"}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"audio_base64":{"type":"string","description":"Base64-encoded audio file."},"mime_type":{"type":"string"}},"required":["audio_base64"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}},"required":["type"]}},"required":["input"]}},"POST /doc/extract":{"info":{"input":{"type":"http","bodyType":"json","body":{"document_base64":"<base64 document>","mime_type":"image/jpeg"}},"output":{"type":"json","example":{"endpoint":"POST /doc/extract","cost_usd":0.03,"document":{"document_type":"receipt","merchant":"اسم المتجر","date":"2026-10-22","total":12.5,"currency":"USD","tax_number":null,"items":[{"name":"منتج","quantity":1,"price":12.5}],"notes":null,"raw_text":null,"confidence":0.9}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"document_base64":{"type":"string","description":"Base64-encoded document image or PDF."},"mime_type":{"type":"string"}},"required":["document_base64"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}},"required":["type"]}},"required":["input"]}}}},"how_it_works":"Send a request with no payment header -> receive 402 Payment Required -> sign a payment for one of the accepts entries -> retry with the PAYMENT-SIGNATURE header."}