POST
/
v1
/
ai
/
text-to-image
/
seedream
Create image from text - Seedream
curl --request POST \
  --url https://api.freepik.com/v1/ai/text-to-image/seedream \
  --header 'Content-Type: application/json' \
  --header 'x-freepik-api-key: <api-key>' \
  --data '{
  "prompt": "<string>",
  "webhook_url": "https://www.example.com/webhook",
  "aspect_ratio": "square_1_1",
  "guidance_scale": 2.5,
  "seed": 1073741823
}'
{
"data": {
"generated": [],
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"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 Seedream process has started.

The response is of type object.