Skip to content

GPT-5.6 API Quick Start

Go to frugalrelay.me and create an account.

Wallet-funded usage is available without a monthly minimum. Optional plans and restricted routes may have separate eligibility.

Open API Keys in your dashboard, create a key, and store it in a secret manager or environment variable.

Check the live pricing page. The current lowest-priced GPT model is gpt-5.6-luna on the Plus Account Route.

The base URL is:

https://frugalrelay.me/v1
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)
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);
Terminal window
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."}]
}'

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.