POST
/
v1
/
tasks
/
runs
Python
from parallel import Parallel

client = Parallel(
    api_key="My API Key",
)
task_run = client.task_run.create(
    input="What was the GDP of France in 2023?",
    processor="base",
)
print(task_run.run_id)
{
  "run_id": "trun_9907962f83aa4d9d98fd7f4bf745d654",
  "status": "queued",
  "is_active": true,
  "processor": "core",
  "metadata": {
    "my_key": "my_value"
  },
  "created_at": "2025-04-23T20:21:48.037943Z",
  "modified_at": "2025-04-23T20:21:48.037943Z"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Request to run a task.

Response

202
application/json

Successful Response

Status of a task run.