Prompt Checker
Banned Word Checker
To check if there are banned words in your prompt. This banned words list will be updated every day. For more background info, please refer to midjourney-api-prompt-checker
.
Validation
Example Request
import requests endpoint = "https://api.midjourneyapi.xyz/mj/v2/validation" data = { "prompt": "a cute cat" } response = requests.post(endpoint, json=data) print(response.status_code) print(response.json())
Check sensitive words
{
"Prompt": "",
"ErrorMessage": "Banned Prompt: {corresponding banned word}",
"AspectRatio": ""
}
Check parameter validation
The valid parameter should exist within the approved midjourney-parameter-list.
{
"Prompt": "",
"ErrorMessage": "Unrecognized Param: {incorrect parameter name}",
"AspectRatio": ""
}
Verify parameter value
{
"Prompt": "",
"ErrorMessage": "Invalid Param Value: {Incorrect parameter name - parameter value}",
"AspectRatio": ""
}
Skip Prompt Checker
If you want to skip the prompt checker, you can set the skip_prompt_check
parameter to true
to skip the prompt checker (if you are PPU user, you can only skip prompt checker if you are on Developer Plan or above. BYOA users can skip prompt checker even on Hobbyist Free Plan).