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
Headers
The Content-Type
header must be set to application/json
to indicate that the payload is formatted as JSON.
If a different Content-Type
is provided, the payload will be ignored, and the request will proceed without
processing the body.
Body
Text to generate image from
Minimum length: 3 characters
3
Attributes to avoid in the generated image
Minimum length: 3 characters
3
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
Specifies the number of images to generate in a single request.
Valid values range [1, 4]
, default 1
.
1 < x < 4
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
Response
Was this page helpful?