跳转到主要内容
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.

授权

Authorization
string
header
必填

所有接口均需要使用Bearer Token进行认证

使用时在请求头中添加:

Authorization: Bearer YOUR_API_KEY

请求体

application/json
model
string
默认值:phota-image-enhance
必填

phota-image-enhance:图像增强,支持创意度调节

示例:

"phota-image-enhance"

image_url
string
必填

输入图片的公开 URL

说明:

  • 要增强的图片
  • 必须为公开可访问的 URL
示例:

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

resolution
string
默认值:4K

输出图像分辨率

可选值:

  • 1K
  • 4K
示例:

"1K"

creativity
number | null

创意度

说明:

  • 值越高,增强时引入的创意变化越大
  • 范围 0.0 - 1.0

非必须不要传这个参数。

示例:

0.5

resemblance
number | null

相似度

说明:

  • 值越高,增强结果越接近原图
  • 范围 0.0 - 1.0

非必须不要传这个参数。

示例:

0.8

profile_ids
string[] | null

Profile ID 列表

说明:

  • phota-create-profile 创建的 profile ID
  • 用于在增强结果中保持人物一致性

非必须不要传这个参数。

示例:
["profile_abc123"]

响应

任务创建成功

created
integer

任务创建时间戳

示例:

1757165031

id
string

任务ID

示例:

"task-unified-1757165031-uyujaw3d"

model
string

实际使用的模型名称

object
enum<string>

任务的具体类型

可用选项:
image.generation.task
progress
integer

任务进度百分比 (0-100)

必填范围: 0 <= x <= 100
示例:

0

status
enum<string>

任务状态

可用选项:
pending,
processing,
completed,
failed
示例:

"pending"

task_info
object

异步任务信息

type
enum<string>

任务的输出类型

可用选项:
image
示例:

"image"