← Back to directory

Uploads an image to Twitter/X for the authenticated user and returns a media_id ...

https://x402.twit.sh/tweets/mediaUpload

Overview

Uploads an image to Twitter/X for the authenticated user and returns a media_id to attach to a tweet. Send the file as multipart/form-data field "file" (e.g. -F "file=@photo.jpeg"); pass auth_token and ct0 as query params. Returns media_id, media_id_string, media_key, size, expires_after_secs, and image metadata.

Protocol x402 (POST)
Price $0.0060
Payment Asset USD Coin
Payment Network eip155:8453
Category media/images
Provider x402
Source bazaar
Indexed 2026-06-16 11:15:54

Health

Status healthy
Latency (p50) 379ms
Uptime (30d) 100.0%
Reliability Score 95/100
Last Checked 2026-10-31 07:11:59
Last Healthy 2026-10-31 07:11:59
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "method": "POST", "queryParams": {}, "type": "http" }

Output Schema

{ "example": { "data": { "expires_after_secs": 86400, "image": { "h": 683, "image_type": "image/jpeg", "w": 1024 }, "media_id": 2066778128366940200, "media_id_string": "2066778128366940160", "media_key": "3_2066778128366940160", "size": 22610 } }, "type": "json" }