Skip to main content

Midjourney - Image to Prompt

Convert images into descriptive text prompts using the Midjourney AI model.

Endpoint

Request Body

The request must include the following parameters:

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_TO_PROMPT
modelstringYesAI model identifier. Must be midjourney
promptObjectobjectYesFeature-specific parameters

Prompt Object Parameters

ParameterTypeRequiredDescription
imageUrlstringYesPath to the image that needs to be analyzed
modestringYesProcessing mode. Must be describe
nnumberYesNumber of descriptions to generate (minimum: 1)

Example Request

fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'IMAGE_TO_PROMPT',
model: 'midjourney',
promptObject: {
imageUrl: 'development/images/2025_02_14_16_46_17_137_images.jpeg',
mode: 'describe',
n: 1
}
})
})

Responses

Success Response (200)

Successful response contains the generated prompt.

{}