DeepL translation and rephrasing via pay-per-call MPP on Tempo L2
What it does
This endpoint exposes DeepL's professional translation and text-rephrasing (DeepL Write) capabilities through the Locus MPP (Micropayment Protocol), settling payments in pathUSD on Tempo L2. It is a POST-only endpoint — the probe returned 404 on HEAD/GET, which is expected since the OpenAPI spec defines only POST methods.
Three operations are available under the `/deepl/` path prefix: **translate** (POST `/deepl/translate`) converts text between 30+ languages with options for formality, context hints, model-type selection (quality- or latency-optimized), and markup-aware tag handling (XML/HTML). **Rephrase** (POST `/deepl/rephrase`) uses DeepL Write to improve or restyle text with configurable writing style (simple, business, academic, casual) and tone (enthusiastic, friendly, confident, diplomatic). **Languages** (POST `/deepl/languages`) lists available source or target languages. Translate and rephrase pricing starts at $0.025 and scales with text length; the languages lookup is a flat $0.005 per call (5 000 base units of a 6-decimal token). All payments use the `charge` intent (one-shot per request) via the `tempo` settlement method.
The request schema requires at minimum `text` (string) and `target_lang` (language code). Source language is auto-detected when omitted. Up to 50 text items can be sent per translate call. No API key is needed — authentication and metering are handled entirely through the MPP 402 payment challenge flow.
Capabilities
Use cases
- —Translating user-generated content into multiple languages on the fly
- —Rephrasing business emails or academic text with tone and style control
- —Building multilingual chatbots that translate responses before delivery
- —Agents that need ad-hoc translation without managing API keys or subscriptions
- —Localizing HTML/XML content while preserving markup structure
Fit
Best for
- —AI agents needing on-demand translation without API-key management
- —Low-volume or bursty translation workloads where per-call pricing is efficient
- —Developers who want DeepL quality with crypto-native micropayment settlement
- —Applications requiring both translation and text improvement in one service
Not for
- —High-volume batch translation where a direct DeepL subscription would be cheaper
- —Document-level translation (PDF, DOCX) — this endpoint handles plain text and markup strings only
- —Use cases requiring offline or on-device translation
Quick start
curl -X POST https://deepl.mpp.paywithlocus.com/deepl/translate \
-H "Content-Type: application/json" \
-d '{"text": "Hello, world!", "target_lang": "DE"}'Example
Request
{
"text": "Hello, world!",
"formality": "default",
"model_type": "quality_optimized",
"target_lang": "DE"
}Endpoint
Quality
The OpenAPI spec is well-structured with clear request schemas, pricing descriptions, and multiple endpoints. However, no 402 challenge was captured (POST was not probed), no example response schema is provided, and crawled pages returned only 404 error JSON. Pricing is described but the dynamic scaling formula is not documented.
Warnings
- —Probe returned 404 on HEAD/GET — endpoint is POST-only; liveness via MPP 402 challenge was not confirmed by the probe
- —No response schema documented — successful response structure must be inferred from DeepL's public API docs
- —Dynamic pricing ('scales with text length') is stated but the exact formula or per-character rate is not specified
- —Currency address 0x20c000000000000000000000b9537d11c60e8b50 assumed to be pathUSD with 6 decimals based on Tempo convention; not independently verified
Citations
- —Translate and rephrase pricing starts at $0.025 and scales with text lengthhttps://deepl.mpp.paywithlocus.com
- —Languages endpoint costs 5000 base unitshttps://deepl.mpp.paywithlocus.com
- —Settlement uses tempo method with charge intenthttps://deepl.mpp.paywithlocus.com
- —DeepL supports 30+ languages with professional translation qualityhttps://developers.deepl.com
- —Additional documentation available at skill.md and llms.txthttps://paywithlocus.com/skill.md