kie.ai API.md

kie.ai API

Request Endpoint

Request Param

Example

curl --location --request POST 'https://api.kie.ai/api/v1/jobs/createTask' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data-raw '{ "model": "z-image", "callBackUrl": "https://your-domain.com/api/callback", "input": { "prompt": "Generate a photorealistic image of a cafe terrace in the Marais district of Paris on a Wednesday morning in March 2025. It is a crisp, cool spring morning with clear skies. Locals are drinking coffee. In sharp focus should be a young woman with a pixie cut wearing a scarf, stirring a cappuccino and looking thoughtfully to the side; the waiter and street traffic behind her are blurred. The photo should have the candid, natural morning light feel of an iPhone image.", "aspect_ratio": "1:1", "nsfw_checker": true } }'

Get Task Details

curl --location --request GET 'https://api.kie.ai/api/v1/jobs/recordInfo?taskId' \ --header 'Authorization: Bearer <token>'

Get Download URL