Skip to main content
POST
cURL

Überblick

Übermitteln Sie zusätzliche Eingaben, wenn eine Action-Aufgabe status: "MODAL" zurückgibt. Dies ist für Vorgänge erforderlich, die zusätzliche Daten benötigen, etwa Inpainting-Masken oder benutzerdefinierte Zoom-Prompts.

Wann verwenden

Ein vollständiges Beispiel für einen Inpaint-Ablauf finden Sie unter Start with Midjourney API.

Autorisierungen

Authorization
string
header
erforderlich

Bearer token authentication. Use your CometAPI key.

Body

application/json
taskId
string
Standard:<task_id>
erforderlich

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

customId
string
erforderlich

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.

Antwort

200 - application/json

Success

code
integer
erforderlich

The status of the task

description
string
erforderlich
properties
object
erforderlich
result
integer
erforderlich

The task ID of the returned task