---
title: "Finalize image upload"
method: POST
path: "/uploads/image/finalize_upload"
tags: ["Uploads"]
---

# Finalize image upload

`POST /uploads/image/finalize_upload`

## Request

- Base URL: `https://api.mosaic.so`
- URL: `https://api.mosaic.so/uploads/image/finalize_upload`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Finalize an image upload after the file has been uploaded. Returns the image UUID which you can use in agent `update_params`.

## Request body

- object
  - `image_id` string, required: The image ID returned from get_upload_url

## Response `200`

Image finalized successfully

- ImageUploadFinalizeResponse
  - `image_id` string: UUID for the image. Use this in update_params when running agents.

## Other responses

- `400`: Invalid request
- `401`: Authentication failed
- `404`: Resource not found

---

[API](https://skmtc.dev/mosaic/apis/mosaic-ai-api.md) - [All operations](https://skmtc.dev/mosaic/apis/mosaic-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mosaic/apis/mosaic-ai-api/revisions/c20e9fc606a4?raw)
