AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
Image generationKling Image

Create / edit images

Submit tasks for standard images, reference-image editing and related image series.

POST/kling/image-generation/kling-4.0

Submit an image generation task using text, reference images or a related image series.

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

After receiving data.id, use Get a task to check the status and retrieve images. The outer request_id is only for tracing the request.