Upload a photo or clip for a post
upload_mediaA photo or a short clip for a post; pass its mediaId to create_post. An image in this conversation goes as file. Otherwise url (public https), upload (you can make HTTP requests) or base64 (no network, photos ≤ 2 MB). Only what they asked for; nothing shows until a post passes the check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| w | No | ||
| as | No | Which of what they run: its name or a key from list_identities. Left out when only one fits. | |
| url | No | A public https link to the file. Example: "https://example.com/photos/lag.jpg" | |
| file | No | An image from this conversation (ChatGPT passes it here). | |
| kind | No | image (default) or video. | |
| base64 | No | The photo as base64, ≤ 2 MB decoded. | |
| upload | No | Instead of url: you PUT the bytes yourself to the uploadUrl you get back. | |
| durationS | No | video: its length in seconds (≤ 60). Example: 14.5 | |
| posterUrl | No | video + url: a https link to a still frame (JPEG/PNG/WebP). |