Skip to main content
POST
/
node-apps
/
{id}
/
execute
Execute a node app
curl --request POST \
  --url https://api.krea.ai/node-apps/{id}/execute \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
[
  {
    "job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "backlogged",
    "created_at": "2023-11-07T05:31:56Z",
    "completed_at": "2023-11-07T05:31:56Z",
    "result": {
      "urls": [
        "<string>"
      ],
      "style_id": "<string>"
    }
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Node app version ID

Body

application/json

Input data for the node app execution, matching the node app's input schema

{key}
any

Response

Execution job created successfully. The job will be in a processing state until completed. Use /jobs/{id} to check progress.

job_id
string<uuid>
required
status
enum<string>
required
Available options:
backlogged,
queued,
scheduled,
processing,
sampling,
intermediate-complete,
completed,
failed,
cancelled
created_at
string<date-time>
required
completed_at
string<date-time>
result
object