Skip to main content
POST

Authorizations

x-magnific-api-key
string
header
required

Your Magnific API key. Required for authentication. Learn how to obtain an API key

Body

application/json
prompt
string
required

Text to generate image from Minimum length: 3 characters

Minimum string length: 3
Example:

"Crazy dog flying over the space"

negative_prompt
string

Attributes to avoid in the generated image Minimum length: 3 characters

Minimum string length: 3
Example:

"b&w, grayscale, disfigured, bad quality"

styling
object
guidance_scale
number
default:1

Defines the level of fidelity to the prompt when generating the image. A lower value allows for more creativity from the AI, while a higher value ensures closer adherence to the prompt. Valid values range [0.0, 2.0], default 1.0.

Required range: 0 <= x <= 2
Example:

2

image
object
num_images
integer
default:1

Specifies the number of images to generate in a single request. Valid values range [1, 4], default 1.

Required range: 1 <= x <= 4
Example:

1

seed
integer

Seed value for image generation. Using the same seed will produce the same image. If omitted, random seed will be applied, resulting in a different image each time. Valid values range [0, 1000000].

Required range: 0 <= x <= 1000000
Example:

123

filter_nsfw
boolean

If true, the generated image will be filtered for NSFW content. If false, the image may contain NSFW content. Default value is true.

Example:

true

Response

OK - The request has succeeded, and the images generated from the text are returned.

data
object[]
required
meta
object
required
Example: