[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-09-05 UTC"],[],[],null,["\u003cbr /\u003e\n\nYou can control the generation of responses in a variety of ways depending on\nyour use case and the level of control that you need.\n\nPrompt design\n\nLearn about [prompt design](/docs/ai-logic/prompt-design) so that you can\ninfluence the model to generate output specific to your needs.\n\nFor example, learn how to provide relevant information associated with the task\nin a structured way.\n\nModel configuration\n\nSet a [model configuration](/docs/ai-logic/model-parameters) to control how\nthe model generates a response. The configuration options depend on the model\nand capability that you're using.\n\nFor Gemini models, you can configure parameters like\nmax output tokens, temperature, top-K, and top-P. And if you're using the\nGemini Live API or a Gemini model capable of multimodal output, you can\nadditionally configure the type of response (audio, text, or images)\nand the voice used in audio responses. For Gemini 2.5 models, you can\nalso configure the [thinking budget](/docs/ai-logic/thinking).\n\nFor Imagen models, you can configure parameters like\nnumber of images to generate, aspect ratio, adding a watermark, etc.\n\nSafety settings\n\nUse [safety settings](/docs/ai-logic/safety-settings) to adjust the likelihood\nof getting responses that may be considered harmful. These settings can help you\nwith controlling output for possible hate speech, harassment,\nsexual explicitness, and dangerous content.\n\nFor example, you can block responses that promote or enable access to harmful\ngoods, services, and activities.\n\nSystem instructions\n\nSet [system instructions](/docs/ai-logic/system-instructions) to steer the\nbehavior of the model. This feature is like a \"preamble\" that you add before\nthe model gets exposed to any further instructions from the end user.\n\nFor example, you can tell the model to return responses as if it were a pirate\nor to return responses in a specific format.\n\nStructured output using response schema\n\nPass a [*response schema*](/docs/ai-logic/generate-structured-output)\nalong with the prompt to specify a specific output schema. This feature is\nmost commonly used when\n[generating JSON output](/docs/ai-logic/generate-structured-output#generate-json-basic),\nbut it can also be used for\n[classification tasks](/docs/ai-logic/generate-structured-output#generate-enum-basic)\n(like when you want the model to use specific labels or tags)."]]