Developer API
Integrate classification into your stack
Classify from your ERP, e-commerce or scripts with a single call. API keys and cited, traceable results.
| Name | Token |
|---|---|
| Production | clz_live_a1b2… |
| ERP · SAP | clz_live_9f8e… |
| Staging | clz_test_4c5d… |
curl https://api.claz.ai/v1/classify \
-H "x-api-key: $CLAZ_KEY" \
-d '{"description": "Auriculares Bluetooth", "country": "AR"}'Simple to implement in any language
One REST call to create the classification and another to read the result. No SDK required — use it from the language you already work in.
const base = "https://api.claz.ai/v1";
const key = process.env.CLAZ_KEY!;
const { id } = await fetch(`${base}/classifications`, {
method: "POST",
headers: { "x-api-key": key, "content-type": "application/json" },
body: JSON.stringify({ description: "Auriculares Bluetooth", country: "AR" }),
}).then((r) => r.json());
// Poll the status until the run is done, with a timeout.
for (let i = 0; i < 30; i++) {
const run = await fetch(`${base}/classifications/${id}`, {
headers: { "x-api-key": key },
}).then((r) => r.json());
if (run.status === "completed") return run.candidates[0];
if (run.status === "failed") throw new Error("classification failed");
await new Promise((r) => setTimeout(r, 2000));
}
throw new Error("timed out");Structured response, ready for your system
You get the code, confidence, reasoning and citations as JSON — easy to store or show in your ERP or e-commerce.
{
"id": "run_9f8e7d",
"status": "completed",
"confidence": 94,
"candidates": [
{
"rank": 1,
"code": "8518.30.00",
"description": "Auriculares, incluso combinados con micrófono",
"confidence": 94
}
],
"reasoning": "Se clasifica por su función principal … (RGI 1).",
"citations": ["Nota 3 del Capítulo 85", "Nota explicativa 85.18"]
}Async polling with a timeout
Create the classification, check its status, and receive the result. Poll the status with a bounded number of attempts and a timeout.
Returns the run id.
Poll status until completed, with a timeout.
Code, confidence, reasoning and citations.
Pricing
Simple, transparent pricing
Start free. Scale when your operation needs it.
Free
- 500 credits per month
- 2 classifications in parallel
- All supported customs authorities
- Cited, traceable results
Standard
- 5,000 credits per month
- 20 classifications in parallel
- All supported customs authorities
- Cited, traceable results
- AI semantic search
- Buy extra credit top-ups
Pro
- 20,000 credits per month
- 100 classifications in parallel
- All supported customs authorities
- Cited, traceable results
- AI semantic search
- Buy extra credit top-ups
Prices in USD. Billed in your local currency equivalent.
A classification uses roughly 100 credits.
Classify with confidence, today
Start free in minutes. No credit card required.