API Library
Integrate Pauhu translation, terminology, and classification into your applications.
Quick start
Base URL
https://api.pauhu.ai
Authentication
Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Test the API
curl -X POST https://api.pauhu.ai/v1/translate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "The European Commission adopted a regulation.",
"source_lang": "en",
"target_lang": "fi"
}'
Translation
POST /v1/translate
Translate text using the 5-position cascade (TM → TBX → IATE → EUR-Lex → Helsinki-NLP).
| Parameter | Type | Description |
|---|---|---|
text | string | Text to translate (required) |
source_lang | string | Source language code, e.g. en (required) |
target_lang | string | Target language code, e.g. fi (required) |
domain | string | EuroVoc domain hint, e.g. FINANCE |
format | string | text (default) or html |
POST /v1/chat
Chat interface with translation context. Supports multi-turn conversation.
| Parameter | Type | Description |
|---|---|---|
messages | array | Chat messages ([{role, content}]) |
source_lang | string | Source language code |
air_gapped | boolean | Run offline (cached models only) |
Terminology
GET /v1/iate/terms
Search the IATE terminology database (2.4M terms, 24 EU languages).
| Parameter | Type | Description |
|---|---|---|
q | string | Search query (required) |
lang | string | Source language code |
target | string | Target language code |
domain | string | EuroVoc domain filter |
Classification
POST /v1/classify
Classify text into IPTC media topics, EuroVoc domains, and deontic modalities (M1–M4).
| Parameter | Type | Description |
|---|---|---|
text | string | Text to classify (required) |
embedding | array | Pre-computed BGE-M3 embedding (optional, 1024-dim) |
Semantic search
GET /v1/search
Search across EU regulations using QuantumRank semantic embeddings.
| Parameter | Type | Description |
|---|---|---|
q | string | Search query (required) |
limit | integer | Max results (default: 10) |
domain | string | EuroVoc domain filter |
Code samples
Python
import requests
r = requests.post("https://api.pauhu.ai/v1/translate",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"text": "Regulation (EU) 2024/1689 on artificial intelligence.",
"source_lang": "en",
"target_lang": "de",
"domain": "LAW"
})
print(r.json()["translation"])
JavaScript
const res = await fetch("https://api.pauhu.ai/v1/translate", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
text: "Regulation (EU) 2024/1689 on artificial intelligence.",
source_lang: "en",
target_lang: "de",
domain: "LAW"
})
});
const { translation } = await res.json();
console.log(translation);
Rate limits
| Plan | Requests/min | Characters/mo |
|---|---|---|
| S1 Pay-as-you-go | 60 | Unlimited (metered) |
| Volume C2 | 200 | 62.5M included |
| Volume C3 | 500 | 250M included |
| Volume C4 | 2,000 | 2.5B included |
Data Feed API
For EU Data Feed endpoints (EUR-Lex, TED, IATE, CURIA, ECB, and 7 more sources), see the data marketplace documentation.
Data Feed API docs on pauhu.eu →Support
Technical: support@pauhu.ai
Sales: sales@pauhu.com