1. Create your organisation#
Sign up at app.aigridapp.com/register and create an organisation — company or personal. It gets its own address on the grid:
GET
https://your-slug.aigridapp.com2. Fund the wallet#
From Finance → Wallet, buy a prepaid credit lot or switch on pay-as-you-go. Credits are the single currency every product on the grid is priced in.
3. Subscribe and get a key#
Subscribe your team to a product from the catalog,
then register a runtime actor to hold the credential. Keys look like egw_live_… and
belong to actors, not people.
4. Point your SDK at the grid#
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api.aigridapp.com/v1", # <- the only change
api_key=os.environ["AIGRID_API_KEY"],
)
reply = client.chat.completions.create(
model="first-party/llm-gateway",
messages=[{"role": "user", "content": "Hello, grid."}],
)
print(reply.choices[0].message.content)Or straight from the shell:
curl https://api.aigridapp.com/v1/chat/completions \
-H "Authorization: Bearer $AIGRID_API_KEY" \
-d '{"model": "first-party/llm-gateway", "messages": [{"role": "user", "content": "Hello, grid."}]}'Every call you make is metered back to its product, project and person — see Usage and metering.