Interface protos.google.ai.generativelanguage.v1beta.IGenerateTextRequest (2.9.0)
Stay organized with collections
Save and categorize content based on your preferences.
Properties of a GenerateTextRequest.
Package
@google-ai/generativelanguage
Properties
candidateCount
candidateCount?: (number|null);
GenerateTextRequest candidateCount
maxOutputTokens
maxOutputTokens?: (number|null);
GenerateTextRequest maxOutputTokens
model
GenerateTextRequest model
prompt
prompt?: (google.ai.generativelanguage.v1beta.ITextPrompt|null);
GenerateTextRequest prompt
safetySettings
safetySettings?: (google.ai.generativelanguage.v1beta.ISafetySetting[]|null);
GenerateTextRequest safetySettings
stopSequences
stopSequences?: (string[]|null);
GenerateTextRequest stopSequences
temperature
temperature?: (number|null);
GenerateTextRequest temperature
topK
topP
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Interface protos.google.ai.generativelanguage.v1beta.IGenerateTextRequest (2.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.9.0 (latest)](/nodejs/docs/reference/generativelanguage/latest/generativelanguage/protos.google.ai.generativelanguage.v1beta.igeneratetextrequest)\n- [2.8.0](/nodejs/docs/reference/generativelanguage/2.8.0/generativelanguage/protos.google.ai.generativelanguage.v1beta.igeneratetextrequest)\n- [2.7.0](/nodejs/docs/reference/generativelanguage/2.7.0/generativelanguage/protos.google.ai.generativelanguage.v1beta.igeneratetextrequest)\n- [2.6.0](/nodejs/docs/reference/generativelanguage/2.6.0/generativelanguage/protos.google.ai.generativelanguage.v1beta.igeneratetextrequest)\n- [2.4.0](/nodejs/docs/reference/generativelanguage/2.4.0/generativelanguage/protos.google.ai.generativelanguage.v1beta.igeneratetextrequest)\n- [2.3.0](/nodejs/docs/reference/generativelanguage/2.3.0/generativelanguage/protos.google.ai.generativelanguage.v1beta.igeneratetextrequest) \nProperties of a GenerateTextRequest.\n\nPackage\n-------\n\n[@google-ai/generativelanguage](../overview.html)\n\nProperties\n----------\n\n### candidateCount\n\n candidateCount?: (number|null);\n\nGenerateTextRequest candidateCount\n\n### maxOutputTokens\n\n maxOutputTokens?: (number|null);\n\nGenerateTextRequest maxOutputTokens\n\n### model\n\n model?: (string|null);\n\nGenerateTextRequest model\n\n### prompt\n\n prompt?: (google.ai.generativelanguage.v1beta.ITextPrompt|null);\n\nGenerateTextRequest prompt\n\n### safetySettings\n\n safetySettings?: (google.ai.generativelanguage.v1beta.ISafetySetting[]|null);\n\nGenerateTextRequest safetySettings\n\n### stopSequences\n\n stopSequences?: (string[]|null);\n\nGenerateTextRequest stopSequences\n\n### temperature\n\n temperature?: (number|null);\n\nGenerateTextRequest temperature\n\n### topK\n\n topK?: (number|null);\n\nGenerateTextRequest topK\n\n### topP\n\n topP?: (number|null);\n\nGenerateTextRequest topP"]]