# Set up OpenAI SDK (Python and JavaScript)

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.

Point the client at the gateway and use your key:

```python
from openai import OpenAI
client = OpenAI(base_url="https://manage.restolayer.com/v1", api_key="sk-lg-v1-…")
client.chat.completions.create(model="openai/gpt-5.6", messages=[{"role": "user", "content": "Hello"}])
```

```js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://manage.restolayer.com/v1", apiKey: process.env.LG_KEY });
```

Create a key in the console under Keys; give it a spending limit if an agent uses it.
