cURL
required-params
curl --request POST \ --url https://api.freepik.com/v1/ai/image-style-transfer \ --header 'Content-Type: application/json' \ --header 'x-freepik-api-key: <api-key>' \ --data '{ "image": "iVBORw0KGgoAAAANSUhEUgAA...", "reference_image": "iVBORw0KGgoAAAANSUhEUgAA..."}'
200
success - in progress task
{ "generated": [], "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "task_status": "IN_PROGRESS"}
Your Freepik API key. Required for authentication. Learn how to obtain an API key
OK - The request has succeeded and the Style Transfer process has started.
The response is of type object.
object
Was this page helpful?