---
title: "Upload Image"
method: POST
path: "/v1/projects/{project_id}/images"
tags: ["Image"]
---

# Upload Image

`POST /v1/projects/{project_id}/images`

## Request

- Base URL: `https://api.landing.ai`
- URL: `https://api.landing.ai/v1/projects/{project_id}/images`
- Auth: none declared

## Path parameters

- `project_id` integer, required

## Query parameters

- `timeout` integer, nullable

## Headers

- `apikey` string, nullable

## Request body `multipart/form-data`

- BodyUploadImageV1ProjectsProjectIdImagesPost
  - `file` string, binary, required
  - `name` string, required
  - `label` union
    - string, binary
    - string
  - `split` 'train' | 'dev' | 'test'
  - `tags` string[]
  - `nothing_to_label` boolean
  - `metadata` string, nullable

## Response `201`

Successful Response

- BaseResponseImage
  - `data` Image, required
    - `id` integer, required
    - `name` string, required
    - `uploadTime` string, required

## Other responses

- `422`: Validation Error

---

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