Authorizations
Your Freepik API key. Required for authentication. Learn how to obtain an API key
Body
application/json
Text prompt to improve for AI generation. Can be empty to generate a creative prompt.
Maximum length:
2500Example:
"A beautiful landscape"
Type of generation (image or video)
Available options:
image, video Example:
"image"
Language code for the improved prompt (ISO 639-1 format). Defaults to English if not specified.
Example:
"en"
Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.
Example:
"https://www.example.com/webhook"
Response
OK - The task exists and the status is returned
Example:
{
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
],
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED"
}