Docs
Set up curl (plain HTTP)
Every request goes to one base URL, https://manage.restolayer.com, with a key you create in the console (Keys). Models are named maker/model; the list is at https://manage.restolayer.com/v1/models and on the Models page. Each response carries the request's id (x-generation-id), the route it took (x-lg-route) and its cost in usage. Errors and empty answers are never charged.
Send an OpenAI-style chat request:
curl https://manage.restolayer.com/v1/chat/completions \
-H "Authorization: Bearer $LG_KEY" -H "Content-Type: application/json" \
-d '{"model": "anthropic/claude-sonnet-5-5", "messages": [{"role": "user", "content": "Hello"}]}'Or an Anthropic-style messages request to https://manage.restolayer.com/v1/messages with the same key in x-api-key.
Create a key in the console under Keys; give it a spending limit if an agent uses it.