uichemy_upload_image
Store a picture in UiChemy and get back a url for an image slot. Pass EXACTLY ONE of: url — a picture already on the web (the image file's own url, not a page), which is copied into our storage so it cannot break later; or data — base64 / a data: URI for a picture you generated as bytes. A picture the user attached in chat cannot be passed as base64; ask them for its url instead. Stored exactly where the image panel stores one (WebP, content-hashed, our own storage). Pass the returned url to uichemy_set_images or to create_project's images.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | An https url of the image file. | |
| data | No | A data: URI, or the raw base64 payload. | |
| projectId | Yes | The project it belongs to — it is filed under that project. |