Skip to main content
GET
/
chat
/
models
/
{model}
获取模型信息
curl --request GET \
  --url https://api.mountsea.ai/chat/models/{model} \
  --header 'Authorization: Bearer <token>'

Overview

Retrieve information about a specific model.

Path Parameters

ParameterTypeRequiredDescription
modelstringYesThe model ID (e.g., gpt-5.1)

Response Format

{
  "id": "gpt-5.1",
  "object": "model",
  "created": 1234567890,
  "owned_by": "mountsea"
}

Example

Using OpenAI SDK

from openai import OpenAI

client = OpenAI(
    api_key="your-api-key",
    base_url="https://api.mountsea.ai/chat"
)

model = client.models.retrieve("gpt-5.1")

print(f"Model ID: {model.id}")
print(f"Owned by: {model.owned_by}")

Using cURL

curl https://api.mountsea.ai/chat/models/gpt-5.1 \
  -H "Authorization: Bearer your-api-key"

Error Responses

Status CodeDescription
404Model not found
401Unauthorized - Invalid API key

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

model
string
required

Response

200 - undefined