OpenAI — quickstart
Broadest tooling + ecosystem. If your stack expects the OpenAI chat-completions API shape (most third-party LLM tools do), this is the path of least resistance. Pick when you want the strongest function-calling defaults or the widest community of integrations.
gpt-5.5-pro Get a key
- Create an API key at platform.openai.com
- Set it as `OPENAI_API_KEY` env var
Make a request
Three equivalent ways to call the recommended model. Pick the one that matches your stack.
curl
curl https://api.openai.com/v1/responses \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.5-pro",
"input": "Summarize the last week of AI model releases."
}' python
pip install openai from openai import OpenAI
client = OpenAI()
res = client.responses.create(
model="gpt-5.5-pro",
input="Summarize the last week of AI model releases.",
)
print(res.output_text) node
npm install openai import OpenAI from "openai";
const client = new OpenAI();
const res = await client.responses.create({
model: "gpt-5.5-pro",
input: "Summarize the last week of AI model releases.",
});
console.log(res.output_text); Pricing
GPT-5.5 Pro pricing varies; GPT-5.4 mini and nano are the cost-leader options. Long-context nano is the cheapest 400K-context tier in the catalog.
Alternatives in this lineup
- GPT-5.5 — Standard tier; same family, no the 'Pro' price premium.
- GPT-5.4 mini — Cheap fast tier for retrieval + classification.
- GPT-5.4 nano — Cheapest tier with 400K context. Best $/M long-context option in this lineup.
Gotchas
- Two API surfaces. OpenAI now has both `/chat/completions` (legacy, still works) and `/responses` (newer, agent-friendly). Pick `/responses` for new projects unless an existing tool expects chat-completions.
- Reasoning models charge for thinking tokens. If you're using a reasoning-enabled model variant, hidden reasoning tokens count toward output billing. Track them via the `reasoning_tokens` field in usage.
- Rate-limit tiers. New accounts start at low TPM/RPM. Hit production scale fast and you'll need to apply for tier bumps.
Official docs: https://platform.openai.com/docs