Skip to main content
POST
cURL

Overzicht

Dien aanvullende invoer in wanneer een Action-taak status: "MODAL" retourneert. Dit is vereist voor bewerkingen die extra gegevens nodig hebben, zoals inpainting-maskers of aangepaste zoom-prompts.

Wanneer te gebruiken

Voor een volledig inpaint-flowvoorbeeld, zie Start with Midjourney API.

Autorisaties

Authorization
string
header
vereist

Bearer token authentication. Use your CometAPI key.

Body

application/json
taskId
string
standaard:<task_id>
vereist

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

customId
string
vereist

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
vereist

The status of the task

description
string
vereist
properties
object
vereist
result
integer
vereist

The task ID of the returned task