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

# Get Model

> Get details about a specific model

```
GET /v1/models/{model}
```

Retrieves information about a specific model. This endpoint does not require authentication.

## Path Parameters

<ParamField path="model" type="string" required>
  The model ID to retrieve (e.g., `gpt-4`, `claude-3-5-sonnet`).
</ParamField>

## Response

<ResponseField name="id" type="string">
  The model identifier.
</ResponseField>

<ResponseField name="object" type="string">
  Always `model`.
</ResponseField>

<ResponseField name="created" type="integer">
  Unix timestamp of when the model was added.
</ResponseField>

<ResponseField name="owned_by" type="string">
  The organization that owns the model.
</ResponseField>

## Examples

### Get Model Details

<CodeGroup>
  ```python Python theme={null}
  from openai import OpenAI

  client = OpenAI(
      api_key="sk-voidai-your_key_here",
      base_url="https://api.voidai.app/v1"
  )

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

  print(f"Model: {model.id}")
  print(f"Provider: {model.owned_by}")
  print(f"Created: {model.created}")
  ```

  ```typescript TypeScript theme={null}
  import OpenAI from 'openai';

  const client = new OpenAI({
    apiKey: 'sk-voidai-your_key_here',
    baseURL: 'https://api.voidai.app/v1'
  });

  const model = await client.models.retrieve('gpt-4');

  console.log(`Model: ${model.id}`);
  console.log(`Provider: ${model.owned_by}`);
  console.log(`Created: ${model.created}`);
  ```

  ```bash cURL theme={null}
  curl https://api.voidai.app/v1/models/gpt-4
  ```
</CodeGroup>

### Check Model Exists

```python theme={null}
from openai import OpenAI, NotFoundError

client = OpenAI(
    api_key="sk-voidai-your_key_here",
    base_url="https://api.voidai.app/v1"
)

def model_exists(model_id):
    try:
        client.models.retrieve(model_id)
        return True
    except NotFoundError:
        return False

# Usage
if model_exists("gpt-4"):
    print("GPT-4 is available!")
else:
    print("GPT-4 is not available")
```

## Response Example

```json theme={null}
{
  "id": "gpt-4",
  "object": "model",
  "created": 1687882411,
  "owned_by": "openai"
}
```

## Error Response

If the model doesn't exist:

```json theme={null}
{
  "error": {
    "message": "Model 'invalid-model' not found",
    "type": "api_error",
    "code": "MODEL_NOT_FOUND"
  }
}
```
