
To use GPT models in your own code, you need an API key. Don't confuse it with a ChatGPT subscription: the subscription opens the chat in the app, while the key is for programs, scripts and bots. You can get a key directly from OpenAI or through llmbox. Here are both options.
Option 1. A key directly from OpenAI
The official console is called OpenAI Platform. You create a key in the developer dashboard. You need an OpenAI account and API billing set up, which is separate from the ChatGPT subscription. The steps for creating a key and the rules for storing it are in the official documentation: Developer quickstart. It also recommends saving the key in the OPENAI_API_KEY environment variable so the SDK reads it automatically.
Such a key works with the OpenAI API. Models from other vendors need separate accounts and keys.
Option 2. One llmbox key
In llmbox you create a key in the cabinet, and it works with every model in the catalog, GPT included. You pay from your balance based on actual usage, and the API is compatible with the official OpenAI SDK.
- Create an account
Sign up for llmbox. You can confirm your email later in the cabinet.
- Top up your balance
Open the Balance section in the cabinet.
- Create a key
Open the Keys section in the cabinet. You can copy the key at any time with the "Show key" button.
- Choose a model
For example,
openai/gpt-5.6-sol. All GPT models are on the OpenAI page, and in codeGET /v1/modelsreturns the list.
The API address is https://llmbox.cc/v1. Save the key in an environment variable:
export LLMBOX_API_KEY="sk-your-key"
A Python example with the official openai SDK:
import os
from openai import OpenAI
client = OpenAI(base_url="https://llmbox.cc/v1", api_key=os.environ["LLMBOX_API_KEY"])
resp = client.chat.completions.create(
model="openai/gpt-5.6-sol",
messages=[{"role": "user", "content": "Hello! Reply in one sentence."}],
)
print(resp.choices[0].message.content)
A Node.js example:
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://llmbox.cc/v1",
apiKey: process.env.LLMBOX_API_KEY,
});
const resp = await client.chat.completions.create({
model: "openai/gpt-5.6-sol",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(resp.choices[0].message.content);
If you already have code written for OpenAI, you only need to change three values: the base URL, the key and the model identifier. GPT-5.6 Sol calls functions in both Chat Completions and the Responses API, so it is a good fit for moving existing code. The request formats of the newer Sol models are described on their pages.
How to choose a GPT model
Estimate usage in advance: enter your own numbers in the calculator.
Which option to choose
A direct OpenAI key makes sense if you only work with GPT. An llmbox key is more convenient when you want to compare models from different vendors: you only change the model string. All of the vendor's models are on the OpenAI page. For more, see Quickstart, Keys and authentication and OpenAI and ElevenLabs SDKs in the documentation.
Key security
Don't publish the key in a repository or paste it into client-side code. If the key falls into the wrong hands, create a new one and replace it in your applications.
Questions
Are a ChatGPT subscription and an API key the same thing?
No. A ChatGPT subscription gives you the chat in the app, while an API key is for calling models from code. They are separate products with separate billing.
Do I need a separate OpenAI key if I have an llmbox key?
No. The GPT models in the catalog work with the same llmbox key. In the request you set an identifier such as openai/gpt-5.6-sol.
Will I have to change code written for the OpenAI SDK?
Usually it is enough to change the base URL to https://llmbox.cc/v1, the key and the model identifier. For function calling through Chat Completions, pick a model that supports it in that format, for example openai/gpt-5.6-sol. Details are on the model page.
Where should I store the key?
Keep the key in an environment variable, not in a repository. In the llmbox cabinet you can open it again with the "Show key" button.
Published November 15, 2026


