Hoppa till huvudinnehåll
POST
/
nano-banana
/
tasks
Nanobanana Tasks
curl --request POST \
  --url https://api.acedata.cloud/nano-banana/tasks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "ids": [
    "<string>"
  ],
  "action": "generate"
}
'
{
  "id": "<string>",
  "request": {},
  "response": {}
}

Auktoriseringar

Authorization
string
header
obligatorisk

Rubriker

accept
enum<string>

Specifies the format of the response from the server.

Tillgängliga alternativ:
application/json

Kropp

application/json
id
string

The ID of the nanobanana task.

ids
string[]

The IDs of the nanobanana tasks.

action
enum<string>
standard:generate

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

Tillgängliga alternativ:
retrieve,
retrieve_batch

Svar

Operation performed successfully.

id
string

The ID of the nanobanana task.

request
object

The request of the nanobanana task.

response
object

The response of the nanobanana task.