POST
/
v1
/
ai
/
image-expand
/
flux-pro
curl --request POST \
  --url https://api.freepik.com/v1/ai/image-expand/flux-pro \
  --header 'Content-Type: application/json' \
  --header 'x-freepik-api-key: <api-key>' \
  --data '{
  "webhook_url": "https://www.example.com/webhook",
  "image": "aSDinaTvuI8gbWludGxpZnk=",
  "prompt": "<string>",
  "left": 1024,
  "right": 1024,
  "top": 1024,
  "bottom": 1024
}'
{
  "data": {
    "generated": [],
    "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "status": "CREATED"
  }
}

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

OK - The task exists and the status is returned

The response is of type object.