> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gethyvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Media

> Get images, videos and PDFs into Hyvo and onto a post. No curl, no commands, no settings.

**File → `upload_media` → media id → `create_posts`.** Never upload with curl or a shell command: agent sandboxes block them. Hyvo has a way in for every client.

## Media the agent makes

The agent never renders a file in its own sandbox and asks the person to download and upload it. Hyvo makes it, and with `postId` it is attached to the draft in the same call:

| The agent makes | Call |
| - | - |
| An image, card or graphic | `create_image {svg, postId}`: one SVG, drawn to a JPEG in about a second |
| A video (Reel, Short, TikTok) | `create_video {scenes: [{svg, seconds}], postId}`: SVG frames encoded to an MP4 in seconds; many short scenes for motion. Up to 60 scenes and 90 seconds (60 on Free) |

## Ways in

| What you have | Call |
| - | - |
| A file attached in ChatGPT | `upload_media {file: {download_url, file_id}}` |
| The person's own file in Claude.ai | Save the draft, then `upload_media {postId}`: an upload box appears in the chat |
| Any client, no upload box | `get_upload_link {postId}`, give the person the link, then `check_upload {linkId}` every 5 seconds |
| A public file on the web | `upload_media {url}` (https only) |
| An MCP content block or resource | `upload_media {file: {type, data, mimeType}}` or a resource |
| Bytes in your own code | `upload_media {data, sha256}`: 8 MB per call, larger in `parts` |

The upload link opens a page in any browser, no sign-in. It takes one file, lasts 15 minutes, sends large videos in parts, and attaches the file to the post when `postId` is given.

`check_upload` answers:

| Status | Do |
| - | - |
| `waiting` | Keep checking. After 3 minutes, stop and ask the person |
| `receiving` | Keep checking (`progress` has the percent) |
| `uploaded` | Carry on with `media.id` |
| `failed` | Tell the person `reason`; the same link takes another file |
| `expired` | Ask for a new link |

Report a file as attached only when `attached.confirmed` is `true`. A large video may still be processing; attach it anyway, publishing waits for it.

## Formats

| Kind | Formats | Max |
| - | - | - |
| Image | JPEG, PNG, WebP, AVIF, BMP, TIFF | 10 MB |
| Image | GIF | 15 MB |
| Image | SVG (cleaned, drawn to JPEG) | 2 MB |
| Video | MP4, MOV (H.264 or HEVC, AAC audio) | 1 GB |
| Video | WebM | 500 MB |
| Audio | MP3, M4A, OGG / WAV | 50 / 100 MB |
| Document | PDF | 50 MB |

Video length and size also depend on the plan: Free 60 s and 100 MB, Pro 5 min and 500 MB, Pro Max 10 min and 1 GB. The type is read from the file's bytes, and every file is scanned and cleaned.

## What each network takes

| Network | Images | Video | Other | Files per post |
| - | - | - | - | - |
| Instagram | All (sent as JPEG) | MP4, MOV; at least 3 s | — | 4 |
| Threads | All (sent as JPEG) | MP4, MOV | — | 4 |
| Facebook | All (sent as JPEG) | MP4, WebM | — | 4 |
| LinkedIn | JPEG, PNG, GIF, WebP | MP4 | PDF (document post) | 1 |
| Mastodon | JPEG, PNG, GIF, WebP | MP4, WebM | — | 4 |
| Bluesky, Tumblr | JPEG, PNG, GIF, WebP | — | — | 4 |
| Lemmy, DEV | — | — | Text and links only | 0 |
| X (not open yet) | JPEG, PNG, WebP, GIF | MP4 | — | 4 |

MOV is stored as MP4. Audio doesn't post on its own anywhere. Hyvo takes up to 4 files per post; the last column is where a network takes fewer. `validate_post` checks every file against every account and says what to change.

## Common errors

| Error | Fix |
| - | - |
| `CONNECT tunnel failed, response 403` | A sandbox blocked a command. Use `upload_media` or `get_upload_link` |
| *MP4 and MOV videos need H.264 or HEVC…* | Export as H.264 + AAC, or WebM |
| *…can be up to … MB* | Send a smaller file or a shorter video |
| *Scene N must be an SVG document* / *…up to 90 seconds* | `create_video`: each scene is one `<svg>` with a width and height; up to 60 scenes and 90 s |
| *Instagram publishes videos of at least 3 seconds* | Make the video longer (`create_video` scenes add up to its length) |
| `chatgpt_link_expired` | Attach the file in ChatGPT again |
| `checksum_mismatch` | Bytes were damaged; send again |
| Link `410` | Used, expired or revoked; get a new link |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.