POST
/
tasks
/
Run Task
curl --request POST \
  --url https://api.droidrun.ai/v1/tasks/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "llmModel": "gemini-2.5-flash",
  "task": "<string>",
  "maxSteps": 100,
  "temperature": 0.5,
  "reasoning": true,
  "reflection": false,
  "vision": false,
  "timeout": 1000,
  "libraryApps": [],
  "uploadedApps": [],
  "files": []
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "streamUrl": "<string>",
  "token": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
task
string
required
Minimum length: 1
llmModel
enum<string>
Available options:
gpt-4o,
gpt-4o-mini,
gpt-4.1,
gpt-4.1-mini,
gpt-o4-mini,
gpt-o3,
gemini-2.5-flash,
gemini-2.5-pro,
claude-3-7-sonnet-latest,
claude-sonnet-4-20250514
maxSteps
integer
default:100
temperature
number
default:0.5
reasoning
boolean
default:true
reflection
boolean
default:false
vision
boolean
default:false
timeout
integer
default:1000
libraryApps
string[]
uploadedApps
string[]
files
string[]

Response

Successful Response

id
string<uuid>
required

The ID of the task

streamUrl
string
required

The URL of the stream

token
string
required

The token of the stream