POST
/
v1
/
ai-photo-editor
curl --request POST \
  --url https://api.magichour.ai/v1/ai-photo-editor \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Photo Editor image",
  "steps": 4,
  "resolution": 768,
  "style": {
    "steps": 4,
    "image_description": "A photo of a person",
    "likeness_strength": 5.2,
    "prompt": "A photo portrait of a person wearing a hat",
    "prompt_strength": 3.75,
    "negative_prompt": "painting, cartoon, sketch",
    "upscale_factor": 2,
    "upscale_fidelity": 0.5
  },
  "assets": {
    "image_file_path": "api-assets/id/1234.png"
  }
}'
{
  "id": "clx7uu86w0a5qp55yxz315r6r",
  "frame_cost": 10,
  "credits_charged": 10
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Body

The body is of type object.

Response

200
application/json

Success

POST
/
v1
/
ai-photo-editor
curl --request POST \
  --url https://api.magichour.ai/v1/ai-photo-editor \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Photo Editor image",
  "steps": 4,
  "resolution": 768,
  "style": {
    "steps": 4,
    "image_description": "A photo of a person",
    "likeness_strength": 5.2,
    "prompt": "A photo portrait of a person wearing a hat",
    "prompt_strength": 3.75,
    "negative_prompt": "painting, cartoon, sketch",
    "upscale_factor": 2,
    "upscale_fidelity": 0.5
  },
  "assets": {
    "image_file_path": "api-assets/id/1234.png"
  }
}'
{
  "id": "clx7uu86w0a5qp55yxz315r6r",
  "frame_cost": 10,
  "credits_charged": 10
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Body

The body is of type object.

Response

200
application/json

Success