loopling.ai

Get started

Authentication

Authenticate each request with an API key in the Authorization header.

Send the header

Send your key as a bearer on every call except the model catalogue:

Authorization: Bearer lpl_…

Only Authorization: Bearer is read.

Create a key

Create keys on API keys. You need a paid plan or one completed top-up; welcome Ink doesn't count.

  • A key is lpl_ plus 43 characters. It's shown once: copy it when you create it.
  • Each key spends its account's Ink.

Cap a key

Give a key an Ink cap to bound what it can spend. At the cap only that key stops, with 402 key_ink_limit_reached. See Billing & Ink.

Revoke a key

Revoke a key on API keys. New calls with it answer 401 at once; running generations finish and settle. Lost a key? Revoke it and create another.

Keep keys on your server

Call the API from your server, and read the key from an environment variable.

Warning: A key spends your Ink. Never put one in a browser, a mobile app or a public repository.

Errors

StatuscodeFix
401invalid_api_keyThe key is missing, mistyped, revoked or expired. Check the header, or create a new key.
402key_ink_limit_reachedThe key hit its cap. Raise it on API keys, or use another key.

A 401 carries WWW-Authenticate: Bearer. To see which key you're sending, call Get the current account.

Explore models

loopling.ai · grows with you, grows itself

hello@loopling.ai · for agents · community · pricing · Enterprise · API · privacy · terms