Skip to main content
POST
PHOTA Create Profile

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-create-profile
required

phota-create-profile: Uploads images to train a profile, returns profile_id

Example:

"phota-create-profile"

image_archive_url
string
required

Public URL of the image collection ZIP archive

Notes:

  • Contains face photos for training the profile
  • Must be a publicly accessible URL
  • Format: ZIP archive
Example:

"https://example.com/face-photos.zip"

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"