Skip to content

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).

ParameterTypeDescription
textstringText to translate (required)
source_langstringSource language code, e.g. en (required)
target_langstringTarget language code, e.g. fi (required)
domainstringEuroVoc domain hint, e.g. FINANCE
formatstringtext (default) or html
POST /v1/chat

Chat interface with translation context. Supports multi-turn conversation.

ParameterTypeDescription
messagesarrayChat messages ([{role, content}])
source_langstringSource language code
air_gappedbooleanRun offline (cached models only)

Terminology

GET /v1/iate/terms

Search the IATE terminology database (2.4M terms, 24 EU languages).

ParameterTypeDescription
qstringSearch query (required)
langstringSource language code
targetstringTarget language code
domainstringEuroVoc domain filter

Classification

POST /v1/classify

Classify text into IPTC media topics, EuroVoc domains, and deontic modalities (M1–M4).

ParameterTypeDescription
textstringText to classify (required)
embeddingarrayPre-computed BGE-M3 embedding (optional, 1024-dim)

Semantic search

GET /v1/search

Search across EU regulations using QuantumRank semantic embeddings.

ParameterTypeDescription
qstringSearch query (required)
limitintegerMax results (default: 10)
domainstringEuroVoc 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

PlanRequests/minCharacters/mo
S1 Pay-as-you-go60Unlimited (metered)
Volume C220062.5M included
Volume C3500250M included
Volume C42,0002.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