Skip to main content
POST
/
v2
/
tasks
/
create
Create New Task
curl --request POST \
  --url https://api.eden.art/v2/tasks/create \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "tool": "<string>",
  "args": {},
  "makePublic": true
}'
{
  "task": {
    "_id": "<string>",
    "user": {
      "_id": "<string>",
      "userId": "<string>",
      "username": "<string>",
      "userImage": "<string>"
    },
    "agent": "<string>",
    "tool": "<string>",
    "cost": 123,
    "output_type": "<string>",
    "args": {},
    "status": "<string>",
    "performance": {},
    "result": [
      {
        "output": [
          {
            "filename": "<string>",
            "url": "<string>",
            "thumbnail": "<string>",
            "creation": {
              "_id": "<string>",
              "user": {
                "_id": "<string>",
                "userId": "<string>",
                "username": "<string>",
                "userImage": "<string>"
              },
              "task": {
                "_id": "<string>",
                "args": {}
              },
              "tool": "<string>",
              "args": {},
              "createdAt": "<string>",
              "updatedAt": "<string>"
            },
            "model": {
              "_id": "<string>",
              "name": "<string>",
              "user": {
                "_id": "<string>",
                "userId": "<string>",
                "username": "<string>",
                "userImage": "<string>"
              },
              "task": {
                "_id": "<string>",
                "args": {}
              },
              "checkpoint": "<string>",
              "public": true,
              "slug": "<string>",
              "thumbnail": "<string>",
              "createdAt": "<string>",
              "updatedAt": "<string>"
            }
          }
        ],
        "intermediate_outputs": {}
      }
    ],
    "model": "<string>",
    "error": "<string>",
    "progress": 123,
    "apiKey": "<string>",
    "updatedAt": "<string>",
    "createdAt": "<string>"
  }
}

Authorizations

X-Api-Key
string
header
required

Body

application/json
tool
string
required

Tool key

args
object
required

Tool arguments

makePublic
boolean

Whether to make the task public

Response

Default Response

task
object
required
I