Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Web
Browser
One-shot text generation
const result = await RunAnywhere.llm.generate('Name three colours') console.log(result.text)
generate( input: string | readonly ChatMessage[], options?: LlmOptions ): Promise<GenerationResult>
const result = await RunAnywhere.llm.generate('Explain quantum computing', { model: 'qwen3-0.6b', maxOutputTokens: 200, temperature: 0.7, }) console.log(result.text, result.tokensPerSecond)
options.model
model
string
maxOutputTokens
number
temperature
topP
systemPrompt
stopSequences
string[]
[]
reasoning
ReasoningOptions
tools
ToolDefinition[]
toolChoice
ToolChoice
auto
maxToolCalls
5
const result = await RunAnywhere.llm.generateStructured( 'Extract the name and age: Dana is 34.', schema, 'validationOnly' )
'validationOnly'
'repair'
'constrained'
SDKException