POST
/
v1
/
ai
/
beta
/
text-to-image
/
reimagine-flux
curl --request POST \
  --url https://api.freepik.com/v1/ai/beta/text-to-image/reimagine-flux \
  --header 'Content-Type: application/json' \
  --header 'x-freepik-api-key: <api-key>' \
  --data '{
  "webhook_url": "https://api.ejemplo.com/webhook",
  "image": "iVBORw0KGgoAAAANSUhEUgAA...",
  "prompt": "Un hermoso atardecer sobre un océano tranquilo",
  "imagination": "wild",
  "aspect_ratio": "square_1_1"
}'
{
  "data": {
    "generated": [
      "https://ai-statics.freepik.com/completed_task_image.jpg"
    ],
    "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "status": "COMPLETED"
  }
}

Authorizations

x-freepik-api-key
string
header
required

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

Body

application/json

Response

200
application/json

Success - The image has been generated

The response is of type object.