> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/api-reference/endpoints/ecommerce/products/upload-and-attach-a-product-image.md).

# Upload and attach a product image

Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call.

{% openapi src="<https://developers.hostinger.com/openapi/openapi.json>" path="/api/ecommerce/v1/stores/{store\_id}/products/{product\_id}/images" method="post" %}
<https://developers.hostinger.com/openapi/openapi.json>
{% endopenapi %}
