PHOTA Image Edit
Phota
Phota Image Editing
- PHOTA image editing model
- Supports 1K / 4K resolution, supports profile_ids
- Asynchronous processing mode, use the returned task ID to query task status
- Generated image links are valid for 24 hours, please save them promptly
POST
PHOTA Image Edit
Authorizations
All APIs require Bearer Token authentication
Add to request header:
Authorization: Bearer YOUR_API_KEY
Body
application/json
phota-image-edit: Image editing, supports profile
Example:
"phota-image-edit"
Editing prompt
Notes:
- Describe the editing requirements for the input image
Example:
"Change the background to a tropical beach at sunset"
Input image URL list
Notes:
- Images to edit
- Must be publicly accessible URLs
Example:
["https://example.com/portrait.jpg"]Number of output images
Notes:
- Each image is billed independently
Example:
1
Output image resolution
Options:
1K— Standard resolution4K— High resolution (double price)
Example:
"1K"
Profile ID list
Notes:
- Profile IDs created by
phota-create-profile - Used to maintain character consistency in editing results
Do not pass this parameter unless necessary.
Example:
["profile_abc123"]Response
Task created successfully
Task creation timestamp
Example:
1757165031
Task ID
Example:
"task-unified-1757165031-uyujaw3d"
Actual model name used
Specific task type
Available options:
image.generation.task Task progress percentage (0-100)
Required range:
0 <= x <= 100Example:
0
Task status
Available options:
pending, processing, completed, failed Example:
"pending"
Async task information
Task output type
Available options:
image Example:
"image"