Skip to main content
POST
cURL

Tổng quan

Gửi dữ liệu đầu vào bổ sung khi một tác vụ Action trả về status: "MODAL". Điều này là bắt buộc đối với các thao tác cần thêm dữ liệu, chẳng hạn như mặt nạ inpainting hoặc Prompt zoom tùy chỉnh.

Khi nào nên sử dụng

Để xem ví dụ đầy đủ về quy trình inpaint, hãy xem Bắt đầu với Midjourney API.

Ủy quyền

Authorization
string
header
bắt buộc

Bearer token authentication. Use your CometAPI key.

Nội dung

application/json
taskId
string
mặc định:<task_id>
bắt buộc

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

customId
string
bắt buộc

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.

Phản hồi

200 - application/json

Success

code
integer
bắt buộc

The status of the task

description
string
bắt buộc
properties
object
bắt buộc
result
integer
bắt buộc

The task ID of the returned task