POST
/
v1
/
ai
/
text-to-image
/
imagen3
curl --request POST \
  --url https://api.freepik.com/v1/ai/text-to-image/imagen3 \
  --header 'Content-Type: application/json' \
  --header 'x-freepik-api-key: <api-key>' \
  --data '{
  "prompt": "Crazy dog in the space",
  "num_images": 1,
  "aspect_ratio": "square_1_1",
  "styling": {
    "style": "anime",
    "effects": {
      "color": "pastel",
      "lightning": "warm",
      "framing": "portrait"
    }
  },
  "person_generation": "allow_adult",
  "safety_settings": "block_low_and_above"
}'
{
  "generated": [],
  "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
  "task_status": "IN_PROGRESS"
}

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 request has succeeded and the Imagen3 process has started.

The response is of type object.