Passer au contenu principal
POST
/
kling
/
tasks
Kling Tasks
curl --request POST \
  --url https://api.acedata.cloud/kling/tasks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "ids": [
    "<string>"
  ],
  "action": "generate"
}
'
{
  "id": "<string>",
  "request": {},
  "response": {}
}

Autorisations

Authorization
string
header
requis

En-têtes

accept
enum<string>

Specifies the format of the response from the server.

Options disponibles:
application/json

Corps

application/json
id
string

The ID of the Kling task.

ids
string[]

The IDs of the Kling tasks.

action
enum<string>
défaut:generate

Operation type. Use 'retrieve' to get the single task, and 'retrieve_batch' to get the batch of multiple tasks.

Options disponibles:
retrieve,
retrieve_batch

Réponse

Operation performed successfully.

id
string

The ID of the kling task.

request
object

The request of the kling task.

response
object

The response of the kling task.