Developers
Log in to create a key →API docs
Authenticate with Authorization: Bearer el_live_…. Create keys in the dashboard after sign-in.
POST /api/v1/answer
Send only a prompt. ElseLane classifies, routes, and fails over.
curl https://elselane.com/api/v1/answer \
-H "Authorization: Bearer el_live_..." \
-H "Content-Type: application/json" \
-H "Idempotency-Key: optional-unique-id" \
-d '{"prompt":"Explain CAP theorem simply"}'Optional body field: system (string).
{
"id": "...",
"answer": "...",
"task_type": "chat",
"model_used": "gemini-3.6-flash",
"provider": "google",
"fallback_used": false,
"attempts": [
{ "provider": "google", "model": "gemini-3.6-flash" }
],
"usage": {
"input_tokens": 12,
"output_tokens": 40,
"credits_charged": 4
}
}attempts lists each provider tried. Failed steps include error (e.g. quota, circuit open, provider disabled).
POST /api/v1/chat/completions
OpenAI-compatible shim. Use model: "auto" only. ElseLane metadata is under elselane in the response.
curl https://elselane.com/api/v1/chat/completions \
-H "Authorization: Bearer el_live_..." \
-H "Content-Type: application/json" \
-d '{
"model": "auto",
"messages": [{"role":"user","content":"Hello"}]
}'Errors
401— invalid API key402— insufficient credits422— high-risk PII blocked ({ "error": "...", "pii": { "types": ["ssn"] } })503— all providers failed (includesattempts)
PII guardrails
High-risk PII (SSNs, credit cards, private keys, common cloud secrets) is blocked by default before any provider call. Emails and phone numbers are not blocked in v1.
If an admin sets mode to redact, matches are replaced with [REDACTED_…] and the response may include pii_redacted: true.
Billing
Credits: 1 credit = $0.0001. Charged at estimated provider token cost × 1.10 (10% platform fee), rounded up.
Prompts and answers are not stored — usage metadata only (status, model, credits, latency).
Buy packs in Billing. Charts and recent events are on Usage.
Dashboard
- API keys — create, copy once, last used, revoke
- Account — profile, password, connected apps, email alerts, export/delete
- Usage — 7/30/90 day charts plus recent events