# How to Add Images, GIFs and Video to X Posts

> Upload images, GIFs and MP4 videos to Kalen from the chat or a terminal, add alt text, and attach them to scheduled X posts by their media ids.

Canonical: https://kalen.si/guides/media-and-video

[Write and schedule](https://kalen.si/guides)

Updated November 23, 2026 · 3 min read

To add media to a post, ask your AI to upload it with Kalen. The `upload_media` tool opens an upload panel in the chat on claude.ai and Claude Desktop; in a terminal or an editor it returns a `curl` line that uploads a local file. When you’re done, your AI lists your files to get their media ids (they start with `m_`) and attaches them to the post when it schedules it. You can add alt text to each file for screen readers.

## What you can upload

| Type | Max size |
|---|---|
| JPG, PNG, WebP | 5 MB |
| GIF | 15 MB |
| MP4 video | 50 MB |

A post takes up to 4 images, or 1 video or GIF. In a thread, media goes on tweet 1 only. A first reply can’t carry media. You can upload up to 100 files a day.

## Steps in Claude

1. Send the first prompt below. The upload panel opens in the chat.
2. Drop your files on the panel. Each row shows its progress and its new id.
3. Tell your AI you’re done. It calls `upload_media` with action list to get the ids.
4. It adds alt text if you want, then schedules the post with `media_ids`.

## Steps in a terminal or editor

1. Ask for the upload link. Kalen returns a `curl` line.
2. Run it once per file, changing the path:

```
curl -F "file=@/path/to/image.png" "<upload link from Kalen>"
```

1. The link is valid for an hour and takes any number of files in that hour.
2. Ask your AI to list your media for the ids, then schedule with them.

## The prompts

```
Open Kalen's upload panel. I'm sending two screenshots for tomorrow's post.
```

```
List my Kalen media, add alt text to the two newest screenshots describing what they show, and attach them to tomorrow's 9am post.
```

## Example

An illustration, not a real account.

You: Open Kalen’s upload panel, I have a demo video for Thursday’s post.

Your AI calls `upload_media`. Kalen: the upload panel is open; drop your images or video there and tell me when you’re done. You drop an MP4 and say done. Your AI lists your files, finds the video’s id, shows you the post with the video attached and its time, and schedules it after your yes.

## What it costs

Uploading and adding alt text cost no credits. The post that carries the media costs what any post costs: 1 credit, 2 with a first reply or a link.

## Common errors

- **“unknown media …; upload with upload_media first.”** The id is wrong or the file never finished uploading. List your media and use the ids shown.
- **The file is refused.** Check the type and size limits above. Kalen checks the real type from the file, not its name.
- **“a first reply can’t carry media; media goes on the post.”** Move the media to the post itself.
- **The upload link expired.** It lasts an hour. Ask for a new one.
- **No panel in your app.** Use the `curl` line.

## Next

Next: [Queue and changes](https://kalen.si/guides/queue-and-changes).

**About this guide.** Written by the team that builds Kalen. Something didn't match what you see? Write to [support@kalen.si](mailto:support@kalen.si) and say which AI you use.

## Your X assistant, inside your AI.

 [Start your 7-day trial for $1](https://kalen.si/#pricing)
