---
title: "Create File"
method: POST
path: "/v1/files"
tags: ["Public API"]
---

# Create File

`POST /v1/files`

## Request

- Base URL: `https://api.animgen.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.animgen.com/v1/files`
- Auth: HTTP bearer

## Response `201`

Successful Response

- FileResponse
  - `object` 'file'
  - `id` string, uuid, required: Reusable public file ID for type=file inputs.
  - `mime_type` string, required: Validated image media type.
  - `byte_size` integer, required: Stored image byte count.
  - `width` integer, required: Decoded image width in pixels.
  - `height` integer, required: Decoded image height in pixels.
  - `sha256` string, required: SHA-256 of the image bytes.
  - `created_at` string, date-time, required: UTC upload creation time.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/animgen/apis/aianimgenbackend.md) · [All operations](https://skmtc.dev/animgen/apis/aianimgenbackend/llms.txt) · [OpenAPI document](https://skmtc.dev/animgen/apis/aianimgenbackend/revisions/0504d838139a?raw)
