Skip to main content
POST
cURL

Ringkasan

Kirim input tambahan ketika tugas Action mengembalikan status: "MODAL". Ini diperlukan untuk operasi yang membutuhkan data tambahan, seperti mask inpainting atau prompt custom zoom.

Kapan digunakan

Untuk contoh alur inpaint lengkap, lihat Mulai dengan Midjourney API.

Otorisasi

Authorization
string
header
wajib

Bearer token authentication. Use your CometAPI key.

Body

application/json
taskId
string
default:<task_id>
wajib

Task id from the parent task whose modal action you are continuing.

customId
string
wajib

The button customId that opened the modal, such as MJ::Inpaint::1::xxxx::SOLO from the Vary (Region) button. Required.

maskBase64
string

Base64-encoded mask image for partial inpainting. White areas are repainted; black areas are preserved.

prompt
string

Text prompt describing the desired change for the selected region.

Respons

200 - application/json

Success

code
integer
wajib

The status of the task

description
string
wajib
properties
object
wajib
result
integer
wajib

The task ID of the returned task