create_tweet
Post tweets to X with text, images, and videos. Supports replies, quote tweets, and community posts.
Instructions
Post tweets with text, images, and videos via API
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Tweet text. | |
| media | No | Base64-encoded media — uploaded automatically. | |
| media_ids | No | Pre-uploaded media ids. | |
| media_urls | No | URLs to images/videos — fetched and uploaded automatically. | |
| community_id | No | Numeric community ID. Posts the tweet to a community the auth_token's user is already a member of. Non-members get 403. Communities with moderator review return HTTP 202 with `pending_moderation: true` (no tweet ID issued until approved). Both short and long-form (Premium) community posts are supported. | |
| quote_tweet_id | No | Tweet ID to quote — resolved to URL automatically (use `quote_tweet_url` for faster requests). | |
| verify_premium | No | When true and a long video (>2:20) is detected in the upload, the server verifies the auth_token's account is on X Premium before proceeding. Returns 403 if not. The duration is auto-detected from the MP4 header — no extra fields needed. | |
| quote_tweet_url | No | Full URL of the tweet to quote (e.g. `https://x.com/username/status/123456`). | |
| reply_to_tweet_id | No | Tweet id being replied to. |