1 Minute Free Time for Everyday -

  Create Your AI Video Right Now!

Christmas Special:

Enjoy 10-MIN FREE!

GO>

Create Santa Videos Win iPhone 16

Celebrate and get gift worth $19.99

10-Min FREE

Get 10-Min Free >

No, I'll pass on the free minutes

×
    
    
        
Al Tools

AI Headshot

The resources (image, video) generated by our API are valid for 7 days. Please save the relevant resources as soon as possible to prevent expiration.

Generate AI Headshot

POST https://devapi.vidnoz.com/v2/task/ai-headshots

Request Headers

Parameter Required Type Description
Content-Type true string Data Tranmission Type: multipart/form-data

Request Attributes

Parameter Required Type Description
file false file Original image uploaded (priority is given to this field). There are two methods supported to upload images.
file_url false string Original image address. There are two methods supported to upload images.

Response Attributes

Parameter Type Description
code int 200
message string Task Remark
data obj Task Object
data.task_id string Task ID

Example

Request Attributes


                  curl  --request POST \
                  --url https://devapi.vidnoz.com/v2/task/ai-headshots \
                  --header "accept: application/json" \
                  --header "content-type: multipart/form-data" \
                  --header "Authorization: Bearer $API_KEY" \
                  --form 'file="YmUxSTFBcVA1V1A3N2Y3L2hxMHhGQT09"' \
                  --form 'file_url="https://static.vidnoz.com/system/openapi/sample/headshot.png"' \

Response

{
    "code": 200,
    "message": "ok",
    "data": {
        "task_id": "53c3b909f9b8bb32d3d1df88a885eda63037cf468eab3503e4462517c2b4e36b",
    }
}

Remarks

Remarks for more returned error codes, please check the error code descriptions on the home page.