Skip to main content

Midjourney - Image Generator

Generate high-quality images from text prompts using Midjourney.

Endpoint

Request Body

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_GENERATOR
modelstringYesAI model identifier. Must be 5c232a9e-9061-4777-980a-ddc8e65647c6
promptObjectobjectYesFeature-specific parameters

Prompt Object Parameters

ParameterTypeRequiredDescription
promptstringYesText prompt for image generation
sizestringYesGenerated image size. Options: 1024x1024, 512x512
nnumberYesNumber of images to generate

Example Request

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_GENERATOR",
"Content-Type": "application/json",
"model": "5c232a9e-9061-4777-980a-ddc8e65647c6",
"promptObject": {
"prompt": "Relastic portrait of a person",
"size": "1024x1024",
"n": 1
}
}'

Response Payload

{}

Authentication

This endpoint requires an API key to be provided in the API-KEY header.