# List models accessible via InferenceClient?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Flist-models-accessible-via-inferenceclient%2F149481%3E%5C
**Category:** Inference Endpoints on the Hub\
**Created:** [April 8, 2025, 5:27pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Flist-models-accessible-via-inferenceclient%2F149481 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmayank64ce)%5C
**Post date:** [April 8, 2025, 5:27pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Flist-models-accessible-via-inferenceclient%2F149481%2F1 "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: /static-proxy?url=https%3A%2F%2Fapi-inference.huggingface.co%2Fmodels%2Fcodellama%2FCodeLlama-7b-Instruct-hf%2Fv1%2Fchat%2Fcompletions.
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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [April 9, 2025, 4:01am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Flist-models-accessible-via-inferenceclient%2F149481%2F2 "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()](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhuggingface-hub-client-giving-error-on-list-deployed-models%2F143678)%3A
>
> 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.
