upload_image
Upload an image and return the hosted image record.
data must be the image bytes encoded as standard base64 (RFC 4648).
Accepted image formats are PNG, JPEG, WebP, and GIF.
visibility controls who can access the served URL: "public" makes
it accessible to anyone with the link; "private" (default) requires
the owner's credentials. Accepted values: "public", "private".
ttl_seconds sets an expiry relative to now (positive integer). Omit
to create a permanent image.
Returns: {id, token, url, visibility, expires_at, size_bytes, content_type}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Raw image bytes encoded as standard base64 (RFC 4648). Accepted formats: PNG, JPEG, WebP, GIF. | |
| visibility | No | Who can access the served URL: 'public' for anyone with the link, or 'private' (default) for owner-only. | private |
| ttl_seconds | No | Expiry in seconds from now; omit for a permanent image. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||