Skip to main content
The TaskForceAI API allows you to orchestrate multi-agent workflows programmatically.

Authentication

All API requests require an x-api-key header. You can obtain your API key from the Developer Settings in your dashboard.
x-api-key: your-api-key-here

Base URL

All requests should be made to the following base URL:
https://taskforceai.chat/api

Core Endpoints

Submit a Task

Submit a prompt for multi-agent orchestration.
curl -X POST https://taskforceai.chat/api/developer/run \
  -H "x-api-key: <your_api_key>" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Analyze the security posture of this repository.",
    "options": {
      "modelId": "xai/grok-4.1"
    }
  }'

Get Task Status

Check the status of a specific task.
GET /api/developer/status/{taskId}

Get Task Results

Once a task is completed, retrieve the final output.
GET /api/developer/results/{taskId}

Models

Retrieve available AI models and their capabilities.
GET /api/v1/models