Upload an image
upload_imagePut an image into the user's Uploads library ("Your Uploads" in every picker) and get back a ref for the images.* fields of compose_design / save_design. Needs an API key with design:write. Send the file as base64 (JPEG/PNG/WebP, at the panel size describe_format reports). SIZE: the request body may not exceed 4.5 MB, so keep the base64 under 3 MB (~2.2 MB of image); a file up to 4 MB goes through POST https://vhs.texs.org/api/v1/uploads as multipart instead — re-encode as JPEG quality 80–85 before either. Identical bytes already in the library return the existing item instead of a copy. The library has a per-plan image count (get_account → uploads); at the ceiling the call answers LIBRARY_IMAGE_LIMIT — call list_uploads and delete_upload to make room.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Base64 of the image bytes (no data: prefix needed; one is tolerated) | |
| name | No | A filename or label shown in the library, e.g. "predator-front.png" | |
| mimeType | Yes | e.g. image/png |