GET https://api.qhaigc.net/v1/models
Authentication
Include your API key in theAuthorization header:
Response Fields
Always
"list".Array of model objects accessible to your API key.
Retrieve a list of all AI models your API key can access. Returns model IDs, creation timestamps, and owner organization for each model.
GET https://api.qhaigc.net/v1/models
Authorization header:
Authorization: Bearer sk-your-api-key-here
"list".显示 Model object fields
gpt-4o, qh-draw-x2-preview."model".openai, anthropic, qh-draw.from openai import OpenAI
client = OpenAI(
api_key="sk-your-api-key-here",
base_url="https://api.qhaigc.net/v1"
)
models = client.models.list()
for model in models.data:
print(f"ID: {model.id}")
{
"object": "list",
"data": [
{
"id": "gpt-4o",
"object": "model",
"created": 1626777600,
"owned_by": "openai"
},
{
"id": "claude-opus-4-20250514",
"object": "model",
"created": 1746057600,
"owned_by": "anthropic"
},
{
"id": "qh-draw-x2-preview",
"object": "model",
"created": 1626777600,
"owned_by": "qh-draw"
},
{
"id": "bge-m3",
"object": "model",
"created": 1626777600,
"owned_by": "baai"
}
]
}
id field is the exact string to pass as the model parameter in other API requests. Always fetch from this endpoint rather than hard-coding model IDs — new models are added regularly.