POST
/
v1
/
ai
/
text-to-icon
curl --request POST \
--url https://api.freepik.com/v1/ai/text-to-icon \
--header 'Content-Type: application/json' \
--header 'x-freepik-api-key: <api-key>' \
--data '{
"prompt": "Sliced avocado and chips",
"webhook_url": "https://example.com/webhook"
}'
{
"generated": [],
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"task_status": "IN_PROGRESS"
}

Description

Generate an icon from a text prompt.

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

The response is of type object.