Midjourney ASCII Art Generator API Documentation

Overview

The Midjourney ASCII Art Generator API allows you to generate ASCII art images from text prompts using Midjourney's AI models. The API returns an HTML page with the generated ASCII art.

URL Structure

Base URL: https://midjourney.com/ASCII

To generate ASCII art, use the following URL pattern:

https://midjourney.com/ASCII?prompt=[prompt]&size=[size]&fullcolor=[fullcolor]&hi-res=[hi-res]

Query Parameters

Parameter Required Description Default
prompt Yes The text prompt describing the desired image content. -
size No The size of the generated ASCII art. Possible values: "small", "medium", "large". medium
fullcolor No Indicates whether to generate full-color ASCII art. Set to "true" for full-color, "false" for black and white. false
hi-res No Indicates whether to generate high-resolution ASCII art. Set to "true" for high resolution, "false" for standard resolution. false

Response

The API returns an HTML page containing the generated ASCII art. The HTML includes the necessary CSS styles to display the art and the prompt used to generate it.

Example Usage

To generate a full-color, high-resolution ASCII art of a beautiful sunset:

https://midjourney.com/ASCII?prompt=a+beautiful+sunset&fullcolor=true&hi-res=true

To generate a black and white, medium-sized ASCII art of a majestic mountain landscape:

https://midjourney.com/ASCII?prompt=a+majestic+mountain+landscape&size=medium

Tips

For more information and updates, visit the Midjourney website.