Docs
Set up Anthropic SDK (Python and TypeScript)
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.
Set the base URL; the SDK sends your key as x-api-key:
import anthropic
client = anthropic.Anthropic(base_url="https://manage.restolayer.com", api_key="sk-lg-v1-…")
client.messages.create(model="anthropic/claude-sonnet-5-5", max_tokens=1024, messages=[{"role": "user", "content": "Hello"}])Create a key in the console under Keys; give it a spending limit if an agent uses it.