Skip to main content
POST
cURL

Przegląd

Prześlij dodatkowe dane wejściowe, gdy zadanie Action zwróci status: "MODAL". Jest to wymagane w przypadku operacji potrzebujących dodatkowych danych, takich jak maski inpaintingu lub własne prompty zoom.

Kiedy używać

Aby zobaczyć kompletny przykład przepływu inpaintingu, przejdź do Start with Midjourney API.

Autoryzacje

Authorization
string
header
wymagane

Bearer token authentication. Use your CometAPI key.

Treść

application/json
taskId
string
domyślnie:<task_id>
wymagane

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

customId
string
wymagane

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.

Odpowiedź

200 - application/json

Success

code
integer
wymagane

The status of the task

description
string
wymagane
properties
object
wymagane
result
integer
wymagane

The task ID of the returned task