Upload an image
upload_imageUpload an image (JPG, PNG, GIF, WEBP, max 2MB) to get a hosted HTTPS URL for banner or article use. Requires paid membership; banner images must match supported ad dimensions.
Instructions
Uploads an image (max 2MB; JPG, PNG, GIF, WEBP) and returns a hosted HTTPS URL for use as a banner image or inline article image. Provide either a local file path or base64 content plus a filename. When type is "banner" the image must match a supported banner dimension (728x90, 300x250, 120x600, 160x600, 468x60, 336x280, 250x250, 851x315, 650x400, 800x82, 234x60, 125x125, 300x200, 120x240, 240x400, 150x60). Requires a paid membership (Bronze/Silver/Gold); returns an error for free accounts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Image category: 'banner' (must match a supported ad size) or 'article'. | |
| base64 | No | Base64-encoded image content. Provide together with filename. Ignored if file_path is set. | |
| filename | No | Filename to use when uploading base64 content (e.g. 'banner.png'). | |
| file_path | No | Absolute or relative local path to the image file to upload. |