Skip to main content
POST
Text to Image
The prompt parameter is compatible with Midjourney’s format. Please refer to Midjourney’s official documentation for more details.

Pricing

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Text to Image generation request body

prompt
string
required

Text prompt for image generation. Must be between 1 and 8192 characters. This prompt is compatible with Midjourney's format.

Required string length: 1 - 8192

Response

202 - application/json

Task accepted and queued for processing

task_info
object
required