> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lululab.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload reference assets

Skip this step for text-only generation. Product jobs need at least one product photo. Request a temporary upload URL, then upload the file. Copy location and mimeType from the upload response into the later request as url and mimeType.

```bash Upload a product photo theme={null}
# 1. Ask LuluLab for a temporary upload destination.
curl -X POST https://customer.lululab.ai/uploads \
  -H "Authorization: $LULULAB_API_KEY"

# 2. POST the file to presignedUrl. This response contains location and mimeType.
curl -X POST "PRESIGNED_URL" \
  -F "file=@product.jpg;type=image/jpeg"
```

### Upload destination response fields

| Field / type | Required | Values and description |
| - | - | - |
| `id` (`UUID`) | Yes | Temporary upload file ID. |
| `presignedUrl` (`URL`) | Yes | POST the file as multipart/form-data here. This is an upload destination, not a media reference. |
| `mimeType` (`string`) | Yes | Initial MIME type; use the upload response as the final value. |
| `expiresAt` (`date-time`) | Yes | Expiry time for the temporary upload destination. |

> [!NOTE]
>
> The presignedUrl expires and is not the image reference URL. Step 2 uses a multipart/form-data POST. Use the returned location as the image URL. The file must belong to the key owner.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.