Skip to main content
Send GET https://api.laozhang.ai/v1/models with your API key to list the models that key can see.

List models

Create an API key in Token management and export it in your terminal:
The Python example prints how many models the key can see and whether gpt-5.4-mini is among them. Replace that ID to check the model you plan to call.

Read the response

The response is a list object. This example is shortened to one entry:
The created and owned_by values above are examples; their contents depend on how each model is configured, so identify models by id only. Ignore fields your client does not recognize.

Common questions

Does the Models API return prices?

No. The response lists model IDs and basic metadata, not prices or billing units. Find input, output, and per-call prices in the model catalog, and the charge for each request in call logs.

Why is a model from the catalog missing from the list?

The list reflects the key you used. The usual causes are the key’s token group, account permissions, or a change in the model’s status. Compare the key’s group in Token management with the model’s token groups in the catalog. If they match and the model is still missing, contact support with the time, model ID, and token group; never send the key itself.

Why does a listed model return 403 or 404?

Check the endpoint first. A listed model may accept only one format, such as Chat Completions, Responses, Anthropic Messages, or Gemini, which the catalog shows under Endpoints. If the endpoint is right, confirm the exact model ID and your token group, then follow model availability and permissions.