# Image block throws error for urlbox image links

**URL:** <https://community.mindstudio.ai/t/image-block-throws-error-for-urlbox-image-links/791>\
**Category:** Support\
**Created:** [May 6, 2025, 5:22am UTC](https://community.mindstudio.ai/t/image-block-throws-error-for-urlbox-image-links/791 "2025-05-06T05:22:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashank](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@shashank](https://community.mindstudio.ai/u/shashank)\
**Post date:** [May 6, 2025, 5:22am UTC](https://community.mindstudio.ai/t/image-block-throws-error-for-urlbox-image-links/791/1 "2025-05-06T05:22:40Z")

</div>

I am giving it url from urlbox and it gives the below error. Please help.

[https://app.mindstudio.ai/agents/ef1640d3-8580-4900-8697-6b34e31550c4/edit](https://app.mindstudio.ai/agents/ef1640d3-8580-4900-8697-6b34e31550c4/edit)  
New run with ID “a048fe88-5278-44c4-850e-f990a0635180”

ERRORModel Error:

![](https://canada1.discourse-cdn.com/flex008/uploads/mindstudio/original/1X/748c5f28d1321ffb6b906ad0f98dd86748fdd1ad.png)

GPT-4o-2024-05-13 Error while downloading [https://api.urlbox.io/v1/OPR4m92cciepzBnl/39d887f1c96285a95931098c90f5eaf61a2bd1ef0c1de5106743fe0b2cdc2b00/jpg?ttl=86400&unique=2025-05-06T04%3A54%3A09.952Z&url=https%3A%2F%2Fwww.coyuchi.com%2Fproducts%2Forganic-linen-sheets%3Fvariant%3D50400990331172&device=desktop&full\_page=true&scroll\_page=false&block\_ads=true&block\_trackers=true&no\_cookie\_banners=true&hide\_cookie\_banners=true&no\_modals=true&click\_accept=true&block\_frames=true&max\_height=3098&wait\_until=requestsfinished&quality=80](https://api.urlbox.io/v1/OPR4m92cciepzBnl/39d887f1c96285a95931098c90f5eaf61a2bd1ef0c1de5106743fe0b2cdc2b00/jpg?ttl=86400&unique=2025-05-06T04%3A54%3A09.952Z&url=https%3A%2F%2Fwww.coyuchi.com%2Fproducts%2Forganic-linen-sheets%3Fvariant%3D50400990331172&device=desktop&full_page=true&scroll_page=false&block_ads=true&block_trackers=true&no_cookie_banners=true&hide_cookie_banners=true&no_modals=true&click_accept=true&block_frames=true&max_height=3098&wait_until=requestsfinished&quality=80).

---

<div class="post-metadata">

**Author:** ![sean](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sean](https://community.mindstudio.ai/u/sean)\
**Post date:** [May 6, 2025, 1:00pm UTC](https://community.mindstudio.ai/t/image-block-throws-error-for-urlbox-image-links/791/2 "2025-05-06T13:00:20Z")

</div>

That error is coming from the model itself, not MindStudio. You will likely need to rehost the image, as for whatever reason OpenAI can’t download it. You could use a simple custom function in MindStudio and do:

```auto
ai.vars.newImageUrl = await ai.rehostImage(ai.vars.imageUrl);

```

Did that urlbox URL come from a MindStudio block? Or is it something you generated on your own?

---

<div class="post-metadata">

**Author:** ![shashank](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@shashank](https://community.mindstudio.ai/u/shashank)\
**Post date:** [May 7, 2025, 9:25am UTC](https://community.mindstudio.ai/t/image-block-throws-error-for-urlbox-image-links/791/3 "2025-05-07T09:25:42Z")

</div>

Thank you so much this workaround did the trick for me. And urlbox URL came from a MindStudio run execution block where i made an intentional screenshot request to urlbox
