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

# Finalize Image Upload

> Finalize a previously uploaded image asset.

Call after uploading the file bytes to the signed URL from [Create Image Upload URL](/api/asset-management/post-uploads-image-get-upload-url).

## Request

```bash theme={null}
curl -X POST "https://api.mosaic.so/uploads/image/finalize_upload" \
  -H "Authorization: Bearer mk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"image_id": "img-1234-5678-90ab-cdef"}'
```

## Response

```json theme={null}
{
  "image_id": "img-1234-5678-90ab-cdef"
}
```

Use `image_id` in `update_params` when calling [Run Agent](/api/agent-runs/post-agent-run).
