# Hosted infernce API stable diffusion with colab not working?

**URL:** <https://discuss.huggingface.co/t/hosted-infernce-api-stable-diffusion-with-colab-not-working/29877>\
**Category:** 🧨 Diffusers\
**Created:** [January 17, 2023, 11:56am UTC](https://discuss.huggingface.co/t/hosted-infernce-api-stable-diffusion-with-colab-not-working/29877 "2023-01-17T11:56:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicky007](https://avatars.discourse-cdn.com/v4/letter/n/77aa72/32.png) [@nicky007](https://discuss.huggingface.co/u/nicky007)\
**Post date:** [January 17, 2023, 11:56am UTC](https://discuss.huggingface.co/t/hosted-infernce-api-stable-diffusion-with-colab-not-working/29877/1 "2023-01-17T11:56:07Z")

</div>

hi ,i m new here i want to access my Fine Tuned hosted Stable Diffusion Model using Inference Api via google colab while doing so i m getting this response  
heres my basic code:

```auto
import json
import requests
API_URL = "https://api-inference.huggingface.co/models/nicky007/stable-diffusion-logo-fine-tuned"
Api_token="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"
headers = {"Authorization": f"Bearer {Api_token}"}
def query(payload):
    data = json.dumps(payload)
    response = requests.request("POST", API_URL, headers=headers, data=data)
    print(response.content)
    return json.loads(response.content.decode("utf-8"))
data = query("logo of a iphone")
data

```

heres the response:

```auto
b'{"error":"Model nicky007/stable-diffusion-logo-fine-tuned is currently loading","estimated_time":20.0}'

{'error': 'Model nicky007/stable-diffusion-logo-fine-tuned is currently loading',
 'estimated_time': 20.0

```

my question how i can get created image data using this inference api please help me

---

<div class="post-metadata">

**Author:** ![heine123](https://avatars.discourse-cdn.com/v4/letter/h/df705f/32.png) [@heine123](https://discuss.huggingface.co/u/heine123)\
**Post date:** [March 23, 2023, 10:04am UTC](https://discuss.huggingface.co/t/hosted-infernce-api-stable-diffusion-with-colab-not-working/29877/2 "2023-03-23T10:04:07Z")

</div>

me too ,can you solve it ?

---

<div class="post-metadata">

**Author:** ![nicky007](https://avatars.discourse-cdn.com/v4/letter/n/77aa72/32.png) [@nicky007](https://discuss.huggingface.co/u/nicky007)\
**Post date:** [April 28, 2023, 12:23pm UTC](https://discuss.huggingface.co/t/hosted-infernce-api-stable-diffusion-with-colab-not-working/29877/3 "2023-04-28T12:23:00Z")

</div>

No still looking for solution

---

<div class="post-metadata">

**Author:** ![williamberman](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/williamberman/32/14112_2.png) [@williamberman](https://discuss.huggingface.co/u/williamberman)\
**Post date:** [April 28, 2023, 4:20pm UTC](https://discuss.huggingface.co/t/hosted-infernce-api-stable-diffusion-with-colab-not-working/29877/4 "2023-04-28T16:20:13Z")

</div>

hey @nicky007 sorry about that. I’m not personally super familiar with the inference api, it might be helpful to checkout this thread [What is 'model is currently loading;' - #7 by deseipel](https://discuss.huggingface.co/t/what-is-model-is-currently-loading/13917/7)
