---
title: "Upload Image For Chat"
method: POST
path: "/api/user_settings/image_host/upload"
tags: ["image_host"]
---

# Upload Image For Chat

`POST /api/user_settings/image_host/upload`

Upload an image and return a public URL the chat can embed as
`![](url)`. Routing follows the user's `active_provider` toggle:

  - 'off'    → 400 ("image hosting disabled"); caller should
               not have invoked this in the first place.
  - 'github' → upload via the saved github config.
  - 'cloud'  → /api/files blob with is_public=1.

Called by omicos-core's figure_publisher and (in future) by
BenchView for manual uploads.

## Query parameters

- `authorization` unknown

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/omicos/apis/omicos-server.md) · [All operations](https://skmtc.dev/omicos/apis/omicos-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/omicos/omicos-server/revisions/a00b94573ffe/schema)
