Create image from text - Classic fast
Convert descriptive text input into images using AI. This endpoint accepts a variety of parameters to customize the generated images.
Authorizations
Your Freepik API key. Required for authentication. Learn how to obtain an API key
Body
Text to generate image from
Minimum length: 3 characters
3
"Crazy dog flying over the space"
Attributes to avoid in the generated image
Minimum length: 3 characters
3
"b&w, grayscale, disfigured, bad quality"
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
.
0 <= x <= 2
2
Specifies the number of images to generate in a single request.
Valid values range [1, 4]
, default 1
.
1 <= x <= 4
1
Seed value for image generation. Using the same seed will produce the same image. If omitted, -1
will apply a random seed, resulting in a different image each time.
Valid values range [0, 1000000]
, default -1
.
0 <= x <= 1000000
123
Response
{
"image": {
"size": "square_1_1",
"width": 1024,
"height": 1024
},
"seed": 42,
"guidance_scale": 2,
"prompt": "Crazy dog flying over the space",
"num_inference_steps": 8
}
Was this page helpful?