cURL
curl --request POST \ --url https://api.smartlyq.com/v1/images/generate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "prompt": "<string>", "model": "<string>", "size": "<string>", "n": 123 } '
{ "success": true, "data": { "id": 123, "url": "<string>", "prompt": "<string>", "created_at": "2023-11-07T05:31:56Z" }, "meta": { "request_id": "<string>", "timestamp": "2023-11-07T05:31:56Z" } }
May return 202 with job_id for async generation; otherwise 201 with image.
API key from Developer dashboard (Bearer token).
Image created (sync)
true
Show child attributes