API Documentation

Base URL

https://banlys.com/api/lattice/v1

Authentication

Include your API key in the Authorization header:

Authorization: Bearer lattice_sk_your_api_key_here

Create API keys from your Dashboard.

POST /predict

Get next-item predictions for a sequence.

Request body:

{
  "sequence": [1, 2, 3, 4, 5],
  "category": "movies"
}

sequence — array of item IDs. category — optional, default "movies".

Rate limits

Limits vary by plan. When exceeded, the API returns 429 with { "error": "Usage limit exceeded", "used": N, "limit": N }.

Example (cURL)

curl -X POST https://banlys.com/api/lattice/v1/predict \
  -H "Authorization: Bearer lattice_sk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sequence": [1,2,3,4,5], "category": "movies"}'

Dashboard Pricing