Skip to main content
POST
PHOTA Image Enhance

Authorizations

Authorization
string
header
required

All APIs require Bearer Token authentication

Add to request header:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
string
default:phota-image-enhance
required

phota-image-enhance: Image enhancement, supports creativity adjustment

Example:

"phota-image-enhance"

image_url
string
required

Input image public URL

Notes:

  • Image to enhance
  • Must be a publicly accessible URL
Example:

"https://example.com/low-res-photo.jpg"

resolution
string
default:4K

Output image resolution

Options:

  • 1K
  • 4K
Example:

"4K"

creativity
number | null

Creativity level

Notes:

  • Higher values introduce more creative changes during enhancement
  • Range 0.0 - 1.0

Do not pass this parameter unless necessary.

Example:

0.5

resemblance
number | null

Resemblance level

Notes:

  • Higher values make the enhanced result closer to the original
  • Range 0.0 - 1.0

Do not pass this parameter unless necessary.

Example:

0.8

profile_ids
string[] | null

Profile ID list

Notes:

  • Profile IDs created by phota-create-profile
  • Used to maintain character consistency in enhancement results

Do not pass this parameter unless necessary.

Example:

Response

Task created successfully

created
integer

Task creation timestamp

Example:

1757165031

id
string

Task ID

Example:

"task-unified-1757165031-uyujaw3d"

model
string

Actual model name used

object
enum<string>

Specific task type

Available options:
image.generation.task
progress
integer

Task progress percentage (0-100)

Required range: 0 <= x <= 100
Example:

0

status
enum<string>

Task status

Available options:
pending,
processing,
completed,
failed
Example:

"pending"

task_info
object

Async task information

type
enum<string>

Task output type

Available options:
image
Example:

"image"