Authorizations
Body
application/json
Response
Default Response
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>"
}
}
Create and execute a new task using a specified tool with optional arguments and visibility settings.
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>"
}
}
Default Response
Show child attributes