Create an image
Create a PixVerse image task using image assets and a template.
/openapi/v2/image/template/generateAuthorization
bearerAuth Use a platform API key in the format Authorization: Bearer your-api-key.
In: header
Header Parameters
Optional unique trace value; generated by the platform if omitted. Not an idempotency key.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
First call Upload an image to obtain Resp.img_id, then call List effect templates with type=2 to select an image template. Supply the image IDs in img_ids in the number and order required by the template.
Replace the template ID and image IDs in the examples with actual values. After successful submission, save Resp.image_id and use Get a task to retrieve the result. ErrCode=0 means the request was accepted; it does not mean the image has been generated.