# Rodin Texture

{% hint style="warning" %}
The request body should be wrapped in the **FormData** instead of plain JSON, while settings should be parsed to JSON.
{% endhint %}

> To generate from a previously uploaded image, the `texture_reference_file_name` is fetched from the [task detail API](https://on-premises.docs.hyper3d.ai/task/fetch-task-detail), corresponding to the images previously uploaded for the mesh generation stage.
>
> For newly uploaded images, the `texture_reference_file_index` should always be set to `0`, with each new image wrapped in FormData and each image binary appended under the field name `images`.&#x20;
>
> For settings, only parameters marked as `Texture Generation Only` need to be passed through.

{% openapi src="<https://4246159311-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJc2Olnfmy17B0BpCm82C%2Fuploads%2Fgit-blob-5050e1639ebc3dccc8449cfb5488b2a8e5510689%2Fopenapi3_0%20(5).json?alt=media>" path="/api/task/rodin\_texture" method="post" expanded="true" %}
[openapi3\_0 (5).json](https://4246159311-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJc2Olnfmy17B0BpCm82C%2Fuploads%2Fgit-blob-5050e1639ebc3dccc8449cfb5488b2a8e5510689%2Fopenapi3_0%20\(5\).json?alt=media)
{% endopenapi %}
