---
title: "POST /twitter/upload_image"
method: POST
path: "/twitter/upload_image"
---

# POST /twitter/upload_image

`POST /twitter/upload_image`

## Request

- Base URL: `https://api.twitterapi.io`
- URL: `https://api.twitterapi.io/twitter/upload_image`
- Auth: API key in header `X-API-Key`

upload image to twitter.Need to login first. Price: 100 credits ($0.001 per call).

## Request body

- object
  - `auth_session` string, required: The session of the login. It's returned by /twitter/login_by_2fa
  - `image_url` string, required: The url of the image to upload
  - `proxy` string, required: The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port

## Response `200`

Upload image response

- object
  - `status` string: Status of the request.success or error
  - `msg` string: Message of the request.error message
  - `media_id` string: The id of the uploaded image

## Other responses

- `400`: Unexpected error

## Changes

- **2026-11-03** `03599c7e3236`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/twitterapi/apis/twitterapi-io-the-most-stable-fastest-cheapest-twitter-api/changes/twitter/upload_image/post.md)

---

[API](https://skmtc.dev/twitterapi/apis/twitterapi-io-the-most-stable-fastest-cheapest-twitter-api.md) - [All operations](https://skmtc.dev/twitterapi/apis/twitterapi-io-the-most-stable-fastest-cheapest-twitter-api/llms.txt) - [OpenAPI document](https://skmtc.dev/twitterapi/apis/twitterapi-io-the-most-stable-fastest-cheapest-twitter-api/revisions/03599c7e3236?raw)
