Skip to main content
POST
cURL

Vue d’ensemble

Envoyez une entrée supplémentaire lorsqu’une tâche Action renvoie status: "MODAL". Cela est nécessaire pour les opérations qui exigent des données supplémentaires, comme les masques d’inpainting ou les prompts de zoom personnalisés.

Quand l’utiliser

Pour un exemple complet du flux d’inpainting, consultez Start with Midjourney API.

Autorisations

Authorization
string
header
requis

Bearer token authentication. Use your CometAPI key.

Corps

application/json
taskId
string
défaut:<task_id>
requis

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

customId
string
requis

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.

Réponse

200 - application/json

Success

code
integer
requis

The status of the task

description
string
requis
properties
object
requis
result
integer
requis

The task ID of the returned task