# lookup_model

> **Function** in `langchain_nvidia_ai_endpoints`

📖 [View in docs](https://reference.langchain.com/python/langchain-nvidia-ai-endpoints/_statics/lookup_model)

Lookup a model by name, using only the table of known models.

The name is either:

- Directly in the table
- An alias in the table
- Not found (`None`)

Callers can check to see if the name was an alias by comparing the result's id field
to the name they provided.

## Signature

```python
lookup_model(
    name: str,
) -> Optional[Model]
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-nvidia/blob/0ca4191cf2239c4990e4706ac1005463f27ff325/libs/ai-endpoints/langchain_nvidia_ai_endpoints/_statics.py#L1056)