Skip to main content
POST
cURL

Authorizations

TT-API-KEY
string
header
required

You can obtain your API key from the TTAPI Dashboard.

Body

application/json
jobId
string
required

Job ID returned from the previous request

mask
string
required

Base64-encoded mask for the selected image. The submitted Base64 content must be a black-and-white mask with the same dimensions as the original image. White areas indicate the region to repaint, and black areas indicate the area to preserve. Do not include the data:image/png;base64, prefix.

prompt
string

Description of modifications desired for the selected image area

timeout
integer

Task timeout, unit: seconds, range 300 - 1200

Example:

"300"

hookUrl
string

Callback notification URL

Response

Request successful

status
string
required
Example:

"SUCCESS"

message
string
required
Example:

"success"

data
object
required
Example:
Last modified on March 21, 2026