Skip to main content
POST
/
tasks
/
stream
JavaScript
import Mobilerun from '@mobilerun/sdk';

const client = new Mobilerun({
  apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
});

await client.tasks.runStreamed({ llmModel: 'openai/gpt-5', task: 'x' });
{
  "detail": "You are not authorized to access this resource",
  "errors": [],
  "status": 401,
  "title": "Unauthorized"
}

Authorizations

Authorization
string
header
required

Bearer token via Authorization header

Body

application/json
llmModel
enum<string>
required
Available options:
openai/gpt-5,
google/gemini-2.5-flash,
google/gemini-2.5-pro,
google/gemini-3-pro-preview,
anthropic/claude-sonnet-4.5,
minimax/minimax-m2,
moonshotai/kimi-k2-thinking
task
string
required
Minimum string length: 1
apps
string[]
credentials
PackageCredentials · object[]
executionTimeout
integer
default:1000
files
string[]
maxSteps
integer
default:100
outputSchema
Outputschema · object
reasoning
boolean
default:true
temperature
number
default:0.5
vision
boolean
default:false
vpnCountry
enum<string> | null
Available options:
US,
BR,
FR,
DE,
IN,
JP,
KR,
ZA

Response

Successful Response