AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
Image generationMidjourney

Imagine

Submit a Midjourney image-generation task from a text prompt.

Midjourney Proxy uses its own asynchronous task protocol and is not part of OpenAI Images. After submitting an Imagine task, save the returned task ID and use the task endpoint to retrieve progress, generated images, and subsequent action buttons.

POST/mj/submit/imagine

Create a Midjourney image task from a text prompt. The API returns a task ID that you can use to retrieve progress, image URLs, and available action buttons.

Image generation is asynchronous: submit an Imagine task, save its ID, poll until the task reaches a terminal state, then use the returned buttons for actions such as upscaling or creating variations.

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Request Body

application/json

Imagine task parameters. Prompt is the only required field.

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