402 is not an error. It’s the payment step — always retry with a payment
credential.Base URL
Overview
The retry body must be byte-for-byte identical to step 1 — the server
checks the SHA-256 digest from the challenge.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Pay per request with the Machine Payments Protocol (MPP) — no account or balance required.
402 is not an error. It’s the payment step — always retry with a payment
credential.https://api.nitrotranslate.com
| Step | Request | Response |
|---|---|---|
| 1. Order | POST /v1/translate — no Authorization header | 402 Payment Required + WWW-Authenticate: Payment challenge |
| 2. Pay | Decode the charge, get a payment token from your MPP provider, build the credential (base64url) | — (handled by the provider) |
| 3. Retry | POST /v1/translate — same body + Authorization: Payment <credential> | 200 OK + order IDs + Resource-Access-Token |
| 4. Poll | GET /v1/orders/{id} — Authorization: Bearer <Resource-Access-Token>; repeat every ~10s | status: QUEUE → IN_PROGRESS → DONE; target_text when DONE |
Authorization: Bearer <token> to retrieve
your orders — GET /orders/{id} and
GET /orders. The token does not expire.