Skip to main content
POST
/
v1
/
images
/
generations
PHOTA Image Enhance
curl --request POST \
  --url https://api.foxapi.cc/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "phota-image-enhance",
  "image_url": "https://example.com/low-res-photo.jpg",
  "resolution": "4K"
}
'
{
  "created": 1757165031,
  "id": "task-unified-1757165031-uyujaw3d",
  "model": "<string>",
  "object": "image.generation.task",
  "progress": 0,
  "status": "pending",
  "task_info": {
    "can_cancel": true,
    "estimated_time": 45
  },
  "type": "image"
}

Documentation Index

Fetch the complete documentation index at: https://docs.foxapi.cc/llms.txt

Use this file to discover all available pages before exploring further.

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:
["profile_abc123"]

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"