> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mountsea.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Model

## Overview

Retrieve information about a specific model.

## Path Parameters

| Parameter | Type   | Required | Description                    |
| --------- | ------ | -------- | ------------------------------ |
| `model`   | string | Yes      | The model ID (e.g., `gpt-5.1`) |

## Response Format

```json theme={null}
{
  "id": "gpt-5.1",
  "object": "model",
  "created": 1234567890,
  "owned_by": "mountsea"
}
```

## Example

### Using OpenAI SDK

```python theme={null}
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

```bash theme={null}
curl https://api.mountsea.ai/chat/models/gpt-5.1 \
  -H "Authorization: Bearer your-api-key"
```

## Error Responses

| Status Code | Description                    |
| ----------- | ------------------------------ |
| 404         | Model not found                |
| 401         | Unauthorized - Invalid API key |


## OpenAPI

````yaml GET /chat/models/{model}
openapi: 3.0.0
info:
  title: Chat AI
  description: API documentation for Chat AI
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.mountsea.ai
    description: API Gateway
security: []
tags:
  - name: chat
    description: ''
paths:
  /chat/models/{model}:
    get:
      tags:
        - Chat - OpenAI Compatible
      summary: 获取模型信息
      operationId: ApiPublicController_getModel
      parameters:
        - name: model
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````