GPT-5.6 API Quick Start
1. Create an account
Section titled “1. Create an account”Go to frugalrelay.me and create an account.
2. Add wallet credit or choose a plan
Section titled “2. Add wallet credit or choose a plan”Wallet-funded usage is available without a monthly minimum. Optional plans and restricted routes may have separate eligibility.
3. Create an API key
Section titled “3. Create an API key”Open API Keys in your dashboard, create a key, and store it in a secret manager or environment variable.
4. Choose a route and model
Section titled “4. Choose a route and model”Check the live pricing page. The current lowest-priced GPT model is gpt-5.6-luna on the Plus Account Route.
5. Call the OpenAI-compatible API
Section titled “5. Call the OpenAI-compatible API”The base URL is:
https://frugalrelay.me/v1Python
Section titled “Python”from openai import OpenAI
client = OpenAI( api_key="fr-your-key-here", base_url="https://frugalrelay.me/v1",)
response = client.chat.completions.create( model="gpt-5.6-luna", messages=[{"role": "user", "content": "Explain this error in one paragraph."}],)
print(response.choices[0].message.content)Node.js
Section titled “Node.js”import OpenAI from 'openai';
const client = new OpenAI({ apiKey: 'fr-your-key-here', baseURL: 'https://frugalrelay.me/v1',});
const response = await client.chat.completions.create({ model: 'gpt-5.6-luna', messages: [{ role: 'user', content: 'Explain this error in one paragraph.' }],});
console.log(response.choices[0].message.content);curl https://frugalrelay.me/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $FRUGAL_RELAY_API_KEY" \ -d '{ "model": "gpt-5.6-luna", "messages": [{"role": "user", "content": "Explain this error in one paragraph."}] }'Switch from GPT-5.6 to Claude 5
Section titled “Switch from GPT-5.6 to Claude 5”Claude models also support the OpenAI-compatible endpoint type. Change the model name to one available on your route:
response = client.chat.completions.create( model="claude-sonnet-5", messages=[{"role": "user", "content": "Summarize this support ticket."}],)For the Anthropic-compatible request shape, use POST /v1/messages. See Supported Models and API Reference.
Using a coding agent? Copy the tested Codex CLI and Claude Code configurations.