Skip to main content
For AI agents. No account or balance — you pay per request using the Machine Payments Protocol (MPP), with any MPP-compatible provider.
US cards only. Payment in this flow works only with a US-issued card. Otherwise use authorization — see Authentication.
402 is not an error. It’s the payment step — always retry with a payment credential.

Base URL

https://api.nitrotranslate.com

Overview

StepRequestResponse
1. Create orderPOST /v1/translate — no Authorization header402 Payment Required + WWW-Authenticate: Payment challenge
2. PayDecode the charge, get a payment token from your MPP provider, build the credential (base64url)— (handled by the provider)
3. RetryPOST /v1/translate — same body + Authorization: Payment <credential>200 OK + order IDs + Payment-Receipt
4. PollGET /v1/orders/{id} — repeat every ~10sstatus: QUEUE → IN_PROGRESS → DONE; target_text when DONE
The retry body must be byte-for-byte identical to step 1 — the server checks the SHA-256 digest from the challenge.
Save your payment credential. You’ll need it later to retrieve your order or orders — GET /orders/{id} and GET /orders.
Full request/response examples are in the Translate reference.