Skip to main content
POST
/
images
/
generate
Generate image
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"
  }
}

Authorizations

Authorization
string
header
required

API key from Developer dashboard (Bearer token).

Body

application/json
prompt
string
model
string
size
string
n
integer

Response

Image created (sync)

success
enum<boolean>
Available options:
true
data
object
meta
object