AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
Image generationMidjourney

Modal

Submit parameters for a Midjourney action that requires modal input.

The Modal API supplies a prompt or mask to a subsequent action that requires additional input, such as inpainting. taskId must identify the original task. Whether a mask or prompt is required depends on the selected action.

POST/mj/submit/modal

Submit a prompt and an optional mask for a subsequent action that requires additional input.

Authorization

bearerAuth
AuthorizationBearer <token>

Use Bearer your-api-key in the Authorization header.

In: header

Request Body

application/json

Modal request parameters.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json