POST
/
v1
/
ai-image-generator
curl --request POST \
  --url https://api.magichour.ai/v1/ai-image-generator \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Ai Image image",
  "image_count": 1,
  "orientation": "landscape",
  "style": {
    "prompt": "Cool image"
  }
}'
{
  "id": "clx7uu86w0a5qp55yxz315r6r",
  "frame_cost": 5
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Body
image_count
integer
required

number to images to generate

Required range: 1 <= x <= 4
Example:

1

orientation
enum<string>
required
Available options:
landscape,
portrait,
square
Example:

"landscape"

style
object
required
name
string
default:Ai Image - dateTime

The name of image

Example:

"Ai Image image"

Response

200
application/json

Success

id
string
required

Unique ID of the image. This value can be used in the get image project API to fetch additional details such as status

Example:

"clx7uu86w0a5qp55yxz315r6r"

frame_cost
integer
required

The frame cost of the image generation

Example:

5