# List models accessible via InferenceClient?

**URL:** <https://discuss.huggingface.co/t/list-models-accessible-via-inferenceclient/149481>\
**Category:** Inference Endpoints on the Hub\
**Created:** [April 8, 2025, 5:27pm UTC](https://discuss.huggingface.co/t/list-models-accessible-via-inferenceclient/149481 "2025-04-08T17:27:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayank64ce](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@mayank64ce](https://discuss.huggingface.co/u/mayank64ce)\
**Post date:** [April 8, 2025, 5:27pm UTC](https://discuss.huggingface.co/t/list-models-accessible-via-inferenceclient/149481/1 "2025-04-08T17:27:26Z")

</div>

I tried out Codellama-34B and was able to access it but when I tried with the 7B model, I got this error:

```bash
HfHubHTTPError: (Request ID: Root=1-67f55b30-5693f55f2f0a7fc92412a1dc;b6d8c553-8194-4992-8a92-ac28976802f1)

403 Forbidden: None.
Cannot access content at: https://api-inference.huggingface.co/models/codellama/CodeLlama-7b-Instruct-hf/v1/chat/completions.
If you are trying to create or update content, make sure you have a token with the `write` role.
The model codellama/CodeLlama-7b-Instruct-hf is too large to be loaded automatically (13GB > 10GB).

```

So I am wondering if there is a list of all models accessible via the API ?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [April 9, 2025, 4:01am UTC](https://discuss.huggingface.co/t/list-models-accessible-via-inferenceclient/149481/2 "2025-04-09T04:01:16Z")

</div>

The method is described to some extent in the following post. If you want to limit it to the available models, you can add the option **Inference=”warm“**.

> [@Huggingface\_hub.client giving error on list\_deployed\_models()](https://discuss.huggingface.co/t/huggingface-hub-client-giving-error-on-list-deployed-models/143678):
>
> Hi all , I am getting the following error when I call the list\_deployed\_models() on the InferenceClient. framework = "text-generation-inference" # "text-to-speech", deployed\_models = client.list\_deployed\_models([framework]) print(deployed\_models) Error: BadRequestError: (Request ID: Root=1-67c47933-02bf30da3e80cb5307dc9184;4dbda49a-b0b7-48bc-b0f7-5f7e09fc28d6) Bad request: Not allowed to request framework/text-generation-inference for provider hf-inference Any help is appreciated Reg…

> **[HfApi Client](https://huggingface.co/docs/huggingface_hub/v0.30.2/package_reference/hf_api#huggingface_hub.HfApi.list_models.inference)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.
