모델 구성을 설정하여 모델의 대답 생성 방식을 제어합니다. 구성 옵션은 사용 중인 모델과 기능에 따라 다릅니다.
Gemini 모델의 경우 최대 출력 토큰, 온도, Top-K, Top-P와 같은 파라미터를 구성할 수 있습니다. 멀티모달 출력이 가능한 Gemini Live API 또는 Gemini 모델을 사용하는 경우 대답 유형 (오디오, 텍스트 또는 이미지)과 오디오 대답에 사용되는 음성을 추가로 구성할 수 있습니다. Gemini 2.5 모델의 경우 사고 예산을 구성할 수도 있습니다.
Imagen 모델의 경우 생성할 이미지 수, 가로세로 비율, 워터마크 추가 등의 매개변수를 구성할 수 있습니다.
안전 설정
안전 설정을 사용하여 유해하다고 간주될 수 있는 대답을 받을 가능성을 조정합니다. 이러한 설정을 사용하면 증오심 표현, 괴롭힘, 성적인 노골성, 위험한 콘텐츠의 출력을 제어할 수 있습니다.
예를 들어 유해한 상품, 서비스, 활동에 대한 액세스를 조장하거나 지원하는 대답을 차단할 수 있습니다.
시스템 안내
시스템 요청 사항을 설정하여 모델의 동작을 조정합니다. 이 기능은 모델이 최종 사용자의 추가 안내에 노출되기 전에 추가하는 '서문'과 같습니다.
예를 들어 모델이 해적인 것처럼 대답하거나 특정 형식으로 대답하도록 요청할 수 있습니다.
응답 스키마를 사용한 구조화된 출력
프롬프트와 함께 응답 스키마를 전달하여 특정 출력 스키마를 지정합니다. 이 기능은 JSON 출력을 생성할 때 가장 일반적으로 사용되지만 분류 작업(예: 모델이 특정 라벨이나 태그를 사용하도록 하려는 경우)에도 사용할 수 있습니다.
[[["이해하기 쉬움","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)."]]