{"uid":"cap_C6slNSIvzBFM73acy_AMR","slug":"arabic-pipeline-text-diff-0f521b66","name":"Arabic Pipeline – Text Diff","description":"Nine micro-capabilities for Arabic-language work, sold per call over x402 in USDC on Base. No API key, no account, no subscription for the buyer: the first request returns a 402 payment challenge, the client pays it and retries. Text utilities are pure computation and cost nothing to serve.","url":"https://arabic-pipeline.arabic-pipeline.workers.dev/text/diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string","description":"The first text."},"b":{"type":"string","description":"The second text."}}},"responseSchema":{"type":"json","example":{"added":["يا","عالم"],"equal":false,"removed":["بالعالم"],"cost_usd":0.002,"endpoint":"POST /text/diff","similarity":0.4}},"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_omGrYsK0QLJi-I5mO4C-e","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":"Compares two Arabic text strings and returns added tokens, removed tokens, a similarity score, and an equality flag.","exampleAgentPrompt":"Compare these two Arabic sentences and tell me what words were added or removed, and how similar they are: first text is 'مرحبا بالعالم' and second is 'مرحبا يا عالم'.","exampleUseCases":[{"title":"Translation quality review","prompt":"I have the original Arabic sentence 'ذهب الولد إلى المدرسة' and a revised translation draft 'ذهب الطفل إلى المدرسة' — can you diff them and tell me which words changed and how similar the two versions are?"},{"title":"Document edit tracking","prompt":"My editor made changes to this Arabic paragraph — original: 'السماء زرقاء وجميلة' and new version: 'السماء صافية وجميلة جداً' — what was removed, what was added, and how similar are they?"},{"title":"Duplicate Arabic content detection","prompt":"Check whether these two Arabic product descriptions are essentially the same or different — text A is 'هاتف ذكي بشاشة كبيرة' and text B is 'جهاز ذكي بشاشة واسعة' — give me the similarity score and highlight any changed words."}],"resultDescription":"A JSON object containing an array of added Arabic tokens, an array of removed Arabic tokens, a boolean equality flag indicating whether the two texts are identical, a similarity score between 0 and 1, plus the endpoint name and cost in USD.","failureModes":["Missing or empty 'a' or 'b' fields returns a validation error","Non-Arabic or mixed-script input may produce unexpected tokenization results","Payment not completed causes a 402 challenge response requiring USDC payment on Base before retry","Very long texts may produce large diff arrays that increase response payload size"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, per-call Arabic text comparison without managing API keys or subscriptions. It is ideal for agents doing one-off or low-volume diffs of Arabic strings where paying $0.002 USDC per call via x402 is more convenient than setting up a full NLP service. Prefer it over general-purpose diff tools that are not Arabic-aware or over heavyweight NLP pipelines when only token-level change detection and similarity scoring are needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:30:05.246Z","isFirstParty":false,"canonicalSlug":"arabic-pipeline-text-diff-0f521b66"}