image_host

Upload Image For Chat

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.

post/api/user_settings/image_host/upload

Request

  • Base URL: https://api.omicos.cn (the document declares no server; this is the origin it was published from)
  • URL: https://api.omicos.cn/api/user_settings/image_host/upload
  • Auth: none declared

Query parameters

authorizationunknown

Request body multipart/form-data

filestring binary required

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 20 revisions of this API.