https://api2.laozhang.ai/v1 and authenticate with a LaoZhang API key. Choose the exact model ID from Models and pricing, where you can also check your token group’s access and current prices.
Configure the client
Create a model API key in Token management, set theLAOZHANG_API_KEY environment variable, and install the Python SDK:
gpt-5.4-mini and prints the reply:
/v1 in the SDK base URL. The SDK appends the endpoint path, so do not include /chat/completions in base_url. For Node.js and cURL examples, see the API integration guide.
Choose an endpoint
Chat Completions
Use Chat Completions for applications that send amessages array and read replies from choices:
Responses
Responses acceptsinput and returns an output array. The Python SDK provides response.output_text for text replies: