AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
Image generationPixVerse

Create an image

Create a PixVerse image task using image assets and a template.

POST/openapi/v2/image/template/generate

Authorization

bearerAuth
AuthorizationBearer <token>

Use a platform API key in the format Authorization: Bearer your-api-key.

In: header

Header Parameters

Ai-trace-id?string

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.

Official PixVerse image template generation documentationView the image template generation API definition.