GPT Models via Unified API: What to Know
2026-11-24
TLDR
AIAdapter gives you access to GPT-5.4, GPT-5.4 Mini, and GPT-5.4 Nano through one API base URL and account key. Choose the model for the task, use its exact model ID in a Chat Completions request, and plan costs using the listed model pricing and the 15% service fee.
GPT API models are OpenAI models you call from your application. Through AIAdapter, GPT-5.4, GPT-5.4 Mini, and GPT-5.4 Nano share one API base URL and account key.
Choose GPT-5.4 for complex professional work, Mini for high-throughput coding and reasoning workloads, and Nano for narrow tasks such as classification and extraction.
GPT-5.4 is not automatically the right model for every request. An assistant explaining a difficult technical decision needs a different approach from a background job tagging incoming messages. Treating both as the same workload makes model selection harder than it needs to be.
A unified API makes those choices easier to put into practice. You keep a common connection setup while choosing a model for each feature.
Key takeaways
- GPT-5.4, Mini, and Nano are available through AIAdapter's Chat Completions endpoint.
- Model IDs include the provider prefix:
openai/gpt-5.4,openai/gpt-5.4-mini, andopenai/gpt-5.4-nano.- One AIAdapter account key covers model access; a ChatGPT subscription is separate.
- Listed model pricing already includes channel/model discounts; final billing includes a 15% service fee.
What a unified API changes for your application
A unified API gives your application a common access point for different models. With AIAdapter, the base URL is https://api.aiadapter.com/v1, and requests authenticate with your AIAdapter account key. For these GPT models, the supported interface is POST /v1/chat/completions.
The practical benefit is less duplicated connection work. A product team can use Mini for a high-volume coding assistant and Nano for a tagging feature without introducing a separate API account setup for each model. The model choice remains explicit in the request, so you can keep each feature's purpose clear.
That also helps when your product grows beyond one model family. A shared access point gives you a consistent place to start, rather than building every integration around a separate credential and connection configuration. The individual model still determines which capabilities and parameters your feature can use.
API access is different from using ChatGPT in a browser. You provide the messages, decide how your application uses the answer, and handle its user experience. Your AIAdapter API key is the credential for this integration, not your ChatGPT login or subscription.
For connection details, read the AIAdapter API documentation alongside the example below.
Which GPT model fits your task?
Start with the work your user needs completed, not the largest model name. OpenAI's GPT-5.4 introduction, published March 5, 2026, positions GPT-5.4 for complex professional work, bringing together reasoning and coding strengths.
Its March 17, 2026 introduction of Mini and Nano gives the smaller models distinct roles: Mini targets efficient, high-volume work, including coding and reasoning, while Nano suits classification, extraction, ranking, and simpler supporting tasks.
| Model | Useful starting point | Example application task |
|---|---|---|
| GPT-5.4 | Complex reasoning and professional work | Explain technical trade-offs across several requirements |
| GPT-5.4 Mini | High-throughput coding and reasoning workloads | Assist with code or handle repeated reasoning tasks |
| GPT-5.4 Nano | Narrow, repeatable text-processing tasks | Categorize messages or extract named fields |
For a support product, your application can choose a model ID for each step. Use openai/gpt-5.4-nano to categorize an incoming message and openai/gpt-5.4-mini to draft a response from the context your application supplies. Choose openai/gpt-5.4 for a more involved technical question that needs deeper analysis. All three steps share the same base URL and account key.
GPT model selection can follow each feature's demands. You do not need to choose one tier for an entire product when its tasks differ substantially.
Mini is a useful starting point for high-throughput coding and reasoning features, such as a coding assistant handling repeated requests. Choose GPT-5.4 for more demanding analysis, or Nano when the job is smaller and tightly defined.
Use the exact GPT API model IDs
The display name helps people choose a model; the model ID tells the API which one to call. For AIAdapter, use these exact strings:
- GPT-5.4:
openai/gpt-5.4 - GPT-5.4 Mini:
openai/gpt-5.4-mini - GPT-5.4 Nano:
openai/gpt-5.4-nano
Keep the openai/ prefix. The request should use the ID, not a label such as “GPT-5.4 Mini.” Your application can store the ID in configuration so each feature has a clear model setting.
To retrieve the model catalog programmatically, use authenticated GET /v1/models with your AIAdapter key. This is useful when building a model selector or managing model settings from your application.
Call your chosen GPT model through AIAdapter
Create an API key in Console → API Keys, then set it as the AIADAPTER_API_KEY environment variable in your development environment. HTTP requests use Bearer authentication; the OpenAI SDK handles that header when you provide the key.
Install the OpenAI Python package with python -m pip install openai. This is a minimal GPT unified API integration:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.aiadapter.com/v1",
api_key=os.environ["AIADAPTER_API_KEY"],
)
answer = client.chat.completions.create(
model="openai/gpt-5.4-mini",
messages=[{
"role": "user",
"content": "Summarize this note: Launch review is Friday. Maya owns the demo; Leo checks the pricing copy.",
}],
)
print(answer.choices[0].message.content)The example sends one message to Mini and prints its answer. To use another listed GPT model, change the model value to its exact ID.
To display an answer as it arrives, set stream=True. Your application consumes the arriving server-sent event chunks rather than waiting to display the full response.
For these models, reasoning_effort accepts none (the default), low, medium, high, or xhigh. The max_completion_tokens limit includes reasoning tokens, not just visible answer text. That distinction matters when setting a completion budget for a reasoning task.
Understand costs without confusing model tiers
Model choice is only one part of cost planning. Prompt length, response length, and reasoning settings also affect how much work a request requires. A concise classification prompt and a detailed analysis request should not share the same assumptions about usage.
Use the model marketplace and its pricing information to compare the options for your workload. Listed prices already include channel/model discounts. Final billing includes a 15% service fee, so account for that fee when budgeting rather than treating the listed model rates as the complete bill.
Keep the output aligned with the feature: a short label for a classifier, a compact summary for a notes tool, or a fuller explanation for a technical assistant. Useful output matters more than generating the longest possible answer.
Frequently asked questions
Which GPT API model should I start with?
GPT-5.4 Mini is a practical starting point for high-throughput coding and reasoning workloads, including a coding assistant handling repeated requests. Choose GPT-5.4 when the core task involves more demanding analysis or complex professional work.
Choose Nano when the feature has a narrow job, such as classifying a message or extracting fields. Your product can use different models for different features, keeping each task's model choice explicit in the request rather than choosing one for everything.
What model ID do I use through AIAdapter?
Use openai/gpt-5.4, openai/gpt-5.4-mini, or openai/gpt-5.4-nano in the request's model field. The provider prefix is part of each ID. Display names are suitable for a user interface but are not the API identifiers.
Keep these values in application configuration if you want to change a feature's model without editing its prompt code. You can also retrieve the catalog through GET /v1/models, which requires your AIAdapter account key.
Can I use the OpenAI SDK with these GPT models?
Yes. The Python example uses the OpenAI SDK's Chat Completions client with AIAdapter's base URL, https://api.aiadapter.com/v1, and an AIAdapter API key. The same account key covers model access, so switching among these three models does not require a separate key for each one.
Set the appropriate model ID in the request and keep your key in an environment variable or another secure server-side configuration, not in browser code exposed to users.
Do I need a ChatGPT subscription to use the GPT API?
No. Use your AIAdapter account key to call these GPT models through Chat Completions. API access is separate from a ChatGPT subscription, and your application supplies the messages and context for each request.
You decide how to present the model's answer inside your product. To display the answer as it arrives, set stream=True and consume the server-sent event chunks. This lets you build an in-app assistant around your own interface and workflow.
How should I account for prices and fees?
Use AIAdapter's model marketplace or the relevant model detail page for the listed pricing. Those listed prices already include channel/model discounts, and final billing includes a 15% service fee.
Compare models against the type and length of requests your feature will make, rather than relying on a model name alone. If you enable reasoning, remember that max_completion_tokens covers reasoning tokens as well as visible output; the visible answer is not the whole completion budget.
Choose the model around one concrete feature, then create an AIAdapter account and make your first request. Start with a clear task; expand your model choices as your application needs them.
FAQ
GPT Models via Unified API: What to Know
AIAdapter gives you access to GPT-5.4, GPT-5.4 Mini, and GPT-5.4 Nano through one API base URL and account key. Choose the model for the task, use its exact model ID in a Chat Completions request, and plan costs using the listed model pricing and the 15% service fee.