o3-pro series uses only Responses.
Models and endpoints
OpenAI models in LaoZhang API’s public pricing as of September 24, 2026, grouped by endpoint:
Other OpenAI text models in the catalog, such as
gpt-5.5, gpt-4.1, and o4-mini, also work with Chat Completions or Responses. The full endpoint URLs are:
Configure the OpenAI SDK
Create an API key in Token management with its billing mode set to Usage first (按量优先, recommended) or Usage-based (按量计费). If the same key will also call per-call image models such asgpt-image-2.5-flare-vip, choose Usage first. Then export the key in your terminal:
- Python: run
python -m pip install openai. - Node.js: run
npm install openai, save the code asopenai-test.mjs, and run it withnode openai-test.mjs.
gpt-5.6-luna:
- Python
- Node.js
- Text:
client.chat.completions.create - Responses:
client.responses.create - Images:
client.images.generateandclient.images.edit - Transcription:
client.audio.transcriptions.create - Speech:
client.audio.speech.create - Embeddings:
client.embeddings.create
/v1, and the SDK adds paths such as /chat/completions; adding them yourself produces a 404. The examples turn off automatic retries so that your application controls them.
If your application configures the SDK only through environment variables, set OPENAI_API_KEY and OPENAI_BASE_URL, as shown in Move an existing OpenAI app.
Chat Completions or Responses
- Chat Completions: most OpenAI-format clients use this endpoint, so keep existing
messages-based code on it and read the reply fromchoices[0].message.content. OpenAI sets extra rules for GPT-6 reasoning effort and sampling parameters in Chat Completions; see the GPT-6 launch announcement. Since November 4, 2026, GPT-6 and GPT-5.6 can reason and call tools in the same Chat Completions request on LaoZhang API, so you don’t need Responses just for tools. - Responses: LaoZhang API supports OpenAI’s Responses API, and every OpenAI text model can use it. OpenAI makes o3-pro available only in the Responses API. Send
input, and readoutput_textin the Python SDK. - Code already built on Responses: switch the base URL and API key to LaoZhang API and keep the rest. Before you move to a model from another vendor, send a minimal request to confirm it supports Responses; the Responses API examples show one.
- Tools and web search: Function calling covers both endpoints and which models support each. Web search is available only as the Responses
web_searchtool; see Web search.
o3-pro requests take several minutes, so this example allows 600 seconds:
text of output_text content items inside the message entries of output[]. With a reasoning model, the first output item may not be the answer.
GPT-6 and GPT-5.6 pricing
GPT-6 standard rates in LaoZhang API’s public pricing as of September 24, 2026, in US dollars per 1M tokens:
The GPT-6 launch announcement and the GPT-6.1 Sol launch announcement list their cache and long-context rates.
gpt-6.1-sol has been in the public pricing since October 5, 2026.
GPT-5.6 public pricing as of September 24, 2026, for the default token group and requests with up to 272K input tokens, in US dollars per 1M tokens:
- When one request has more than 272K input tokens, the whole request is billed at a higher tier. For
gpt-5.6-sol, that tier is $8 input, $30 output, and $0.8 cache read. The catalog’s tiered pricing table lists every tier. - The current
gpt-5.6-solprice follows OpenAI’s price cut of August 21, 2026, which OpenAI describes as promotional pricing available at least through November 21, 2026 (OpenAI API changelog). LaoZhang API’s pricing configuration adopted the new price on September 10, 2026; the GPT-5.6 Sol price cut announcement compares the old and new rates. - Prices for GPT-5.4,
o3-pro, and the audio and embedding models are in the OpenAI section of the catalog. For per-call and token-based GPT Image billing, see GPT Image 2.5.
How this differs from calling OpenAI directly
- API key: create it in LaoZhang API Token management. OpenAI platform keys do not work with LaoZhang API, and a LaoZhang API key does not work with
api.openai.com. - Model IDs: the catalog is the source of truth, and not every model in OpenAI’s catalog is available. Some IDs, such as
gpt-image-2.5-flare-vipandgpt-image-2.5-web, are LaoZhang API route IDs that do not exist at OpenAI. - Token groups: your key’s token group decides which models and routes it can use.
- The text, audio, and embedding models on this page are in the
defaultgroup. - GPT Image has per-call models such as
gpt-image-2.5-flare-vipindefault. - Official API forwarding runs in the
OpenAI Official(formerly Sora2Official) group (same price as OpenAI) and theOpenAI Official Enterprise(formerly GPTImage2 Sora2 Enterprise) group (OpenAI’s price plus 20%), billed by tokens. See GPT Image 2.5.
- The text, audio, and embedding models on this page are in the
- Billing: charges come from your LaoZhang API balance at catalog prices, separate from any OpenAI account credit or invoice. Call logs show usage and cost for each request, and Billing, token groups, and invoices explains the rules.
- Other endpoints: if you need an endpoint that is not in the table, such as Batch, Files, or Realtime, check with support at hi@laozhang.ai first.
- Video: OpenAI removed the Videos API,
sora-2, andsora-2-profrom its API on September 24, 2026, and LaoZhang API stopped its Sora 2 route on July 1, 2026. For video generation, use Wan 2.7 or Seedance 2.0; see Sora 2 API retired. - Data handling: requests sent through LaoZhang API are covered by the LaoZhang API Data Policy.
Troubleshooting
- 401: check that you are using a LaoZhang API key and that the environment variable is set in the running process.
- 404 or model not available: check the full model ID, the endpoint, and the token group. For example,
o3-prorequests must go to Responses. See model availability. - 400: remove optional fields you added, then correct the request using the error body. Models accept different parameters, so do not copy one model’s settings to another.
- The response arrives but your app shows nothing: parse the structure that matches the endpoint:
choicesfor Chat Completions,outputfor Responses, anddatafor Images. - Client timeout: the request may still be running or may have finished. Check call logs before you resubmit, and do not let both the SDK and your application retry.
Related documentation
- Text generation API: protocols and models
- OpenAI protocol: Chat Completions
- API integration guide: Responses, image generation, and image editing examples
- Images API
- Models API
- OpenAI: models, Responses reference, Chat Completions reference, and deprecations