Model selection preferences based on desired speed and cost characteristics. Plot will automatically select the best available model matching these preferences.
OptionalsystemSystem instructions to guide the model's behavior.
OptionalpromptThe user's input prompt. Can be a simple string or an array of messages for multi-turn conversations.
OptionalmessagesConversation messages for multi-turn interactions. Replaces 'prompt' for more complex conversations.
OptionaltoolsTools that the model can call during generation. Each tool definition includes a description, input schema, and optional execute function.
OptionaltoolControls which tools the model can use.
OptionaloutputStructured output schema using Typebox. Typebox schemas are JSON Schema objects that provide full TypeScript type inference.
OptionalmaxMaximum number of tokens to generate.
OptionaltemperatureTemperature for controlling randomness (0-2). Higher values make output more random, lower values more deterministic.
OptionaltopTop P sampling parameter (0-1). Controls diversity by limiting to top probability tokens.
Request parameters for AI text generation, matching Vercel AI SDK's generateText() function.