TikTok for Developers

Developer Docs

Last updated November 24, 2026

Upload a Mini Drama Image

Uploads an image from a public URL for use as a mini drama or episode cover. Pass the returned open_pic_id in the cover_list field when you update a mini drama.

Endpoint

HTTP URL

https://open.tiktokapis.com/v2/sg/shortdrama/image

HTTP method

POST

Scopes

None

Content type

application/json

Request

Headers

Field

Type

Description

Required

Example

Authorization

string

The client access token of your mini app, prefixed with Bearer.

Yes

Bearer clt.example12345Example12345Example

Content-Type

string

The media type of the request body.

Yes

application/json

Request body

Field

Type

Description

Required

Example

image_url

string

The URL of the image. The URL must be publicly downloadable.

Yes

https://example.com/cover.jpg

Request example

curl --location 'https://open.tiktokapis.com/v2/sg/shortdrama/image' \
--header 'Authorization: Bearer CLIENT_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "image_url": "https://example.com/cover.jpg"
}'

Replace CLIENT_ACCESS_TOKEN with your mini app's client access token.

Response

Response body

Field

Type

Description

data

ImageData

The uploaded image.

error

ErrorStruct

The error object.

ImageData

Field

Type

Description

Example

open_pic_id

string

The ID of the uploaded image. Pass this value in cover_list to set a mini drama or episode cover.

b4c45eb643861b84b3b678a2f20e7acd

ErrorStruct

Field

Type

Description

code

string

The error code. Omitted on success.

message

string

A human-readable description of the error.

log_id

string

The unique identifier for the request. Include this value when contacting support.

Response example

{
  "data": {
    "open_pic_id": "b4c45eb643861b84b3b678a2f20e7acd"
  },
  "error": {
    "log_id": "202508010000000000000000000000000"
  }
}

Error codes

Error code

Description

Resolution

5001

The service is temporarily unavailable.

Retry later. If the error persists, contact support with the log_id.

1121005

The image request is invalid.

Check the client key and provide an accessible HTTP or HTTPS image_url.

1421501

A storage object operation failed.

Retry the request. If the error persists, contact support with the log_id.

1521501

TikTok couldn't download the image from the URL.

Verify that the URL is publicly accessible, then retry.

TikTok for Developers