Skip to content

docs(media): match media upload limits to X app (512 MB / 20 min default, 16 GB / 6 hr Premium) - #622

Open
santiagomed wants to merge 2 commits into
mainfrom
santiagomed/media-upload-limits
Open

santiagomed wants to merge 2 commits into
mainfrom
santiagomed/media-upload-limits

Conversation

@santiagomed

@santiagomed santiagomed commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Updates the public X API media upload and Post-attach documentation to state the X app–matching limits enforced after backend diff https://phabricator.twitter.biz/D1408594 (and error-message parser fix https://cursor.com/codebase/spacexsi/xai/pull/2058791):

  • Default (no Premium) tweet_video and amplify_video: 20 minutes / 512 MB (matching the X app; previously 8 GB for tweet_video and effectively 2 GB for amplify_video)
  • X Premium / verified tweet_video and amplify_video: 6 hours / 16 GB (361 minutes with 1-minute backend buffer, matching the X app; previously 125 minutes at Post-attach for tweet_video)
  • Images (tweet_image, dm_image): 5 MB
  • Animated GIF (tweet_gif, dm_gif): 15 MB chunked (5 MB simple upload for tweet_gif; 15 seconds for MP4-as-GIF)
  • DM video (dm_video): 140 seconds / 512 MB default; 10 minutes / 1 GB Premium
  • Subtitles (subtitles): 1 MB (SRT only, 1 MB max segment)
  • Chunked APPEND limits: up to 10,000 segments (0–9999), up to 8 MB per segment (1 MB for subtitles; keep JSON base64 payloads <= 4 MB per segment)
  • Updated legacy Ads API x-ads-api/creatives.mdx (previously still stated 10 mins / 500 MB)

Rollout note: Merge this docs PR once https://phabricator.twitter.biz/D1408594 is deployed to production (image-fetcher-service and user-image-service), as lowering non-Premium Post video size from 8 GB -> 512 MB is a developer-facing behavior change.

Files updated

  • x-api/media/introduction.mdx
  • x-api/media/quickstart/best-practices.mdx
  • x-api/media/quickstart/media-upload-chunked.mdx
  • x-ads-api/creatives.mdx
  • x-api/posts/create-post.mdx
  • x-api/posts/manage-tweets/introduction.mdx
  • x-api/posts/manage-tweets/integrate.mdx

@mintlify

mintlify Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
x-corp 🟢 Ready View Preview Dec 4, 2026, 9:59 PM

@santiagomed santiagomed changed the title Align media upload size, duration, and segment limits with backend docs(media): match media upload limits to X app (512 MB / 20 min default, 16 GB / 6 hr Premium) Dec 4, 2026

This branch was successfully deployed

1 active deployment
staging — 89fb9707 Deployed Dec 4, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant