API Documentation

Integrate ACSLOP into your applications with our REST API.

1. Get an API Key

Create an API key from your Settings page. Keys are tied to your account and share your plan's quota.

2. Make a Request

curl
curl -X POST /api/v1/translate \
  -H "Authorization: Bearer acslop_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "The epistemological ramifications of quantum decoherence necessitate a fundamental reconceptualization of observer-dependent measurement paradigms.",
    "level": 3
  }'

3. Parse the Response

json
{
  "original": "The epistemological ramifications...",
  "translated": "What we can know about reality changes when we...",
  "slopIndex": {
    "score": 72,
    "breakdown": {
      "passiveVoice": 35,
      "nominalizations": 6,
      "hedgeWords": 3,
      "jargonDensity": 2.5,
      "sentenceLength": 28
    }
  },
  "coreClaim": "Quantum decoherence requires rethinking how observation affects measurement.",
  "mappings": [...],
  "hallucinations": [...],
  "_cached": false,
  "_quota": { "used": 12, "limit": 25 }
}

SDK Examples

python
import requests

response = requests.post(
    "https://your-domain.com/api/v1/translate",
    headers={"Authorization": "Bearer acslop_your_key"},
    json={"text": "Your academic text here", "level": 3}
)

data = response.json()
print(f"Slop Score: {data['slopIndex']['score']}/100")
print(f"Translation: {data['translated']}")
javascript
const response = await fetch('/api/v1/translate', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer acslop_your_key',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    text: 'Your academic text here',
    level: 3,
  }),
});

const data = await response.json();
console.log(`Slop Score: ${data.slopIndex.score}/100`);
console.log(`Translation: ${data.translated}`);