Ontology MCP

mcp_gemini_generate_image

Generate images using Google Gemini or Imagen models based on provided text prompts. Automatically selects the appropriate API, returns file paths for the created images, and supports customization like aspect ratio, size, and number of images.

Instructions

Google Gemini 또는 Imagen 모델을 사용하여 이미지를 생성합니다. 모델 이름에 따라 적절한 API가 자동으로 선택됩니다. 생성된 이미지 파일 경로를 반환하며, 이 경로는 반드시 사용자에게 알려주어야 합니다.

Input Schema

NameRequiredDescriptionDefault
aspectRatioNo이미지 가로세로 비율 (Imagen 모델 전용)1:1
fileNameNo저장할 이미지 파일 이름 (확장자 제외)
imageDataNo이미지 편집 시 사용할 Base64로 인코딩된 이미지 데이터 (Gemini 모델 전용)
imageMimeTypeNo이미지 MIME 타입 (Gemini 모델 전용)image/png
modelNo사용할 모델 ID (예: imagen-3.0-generate-002, gemini-2.0-flash-exp-image-generation)imagen-3.0-generate-002
numberOfImagesNo생성할 이미지 수 (1-4, Imagen 모델 전용)
personGenerationNo사람 이미지 생성 허용 여부 (Imagen 모델 전용)ALLOW_ADULT
promptYes이미지 생성을 위한 텍스트 프롬프트
responseModalitiesNo응답에 포함할 모달리티 (Gemini 모델 전용)
saveDirNo이미지를 저장할 디렉토리./temp
sizeNo생성할 이미지 크기1024x1024

Input Schema (JSON Schema)

{ "properties": { "aspectRatio": { "default": "1:1", "description": "이미지 가로세로 비율 (Imagen 모델 전용)", "enum": [ "1:1", "3:4", "4:3", "9:16", "16:9" ], "type": "string" }, "fileName": { "description": "저장할 이미지 파일 이름 (확장자 제외)", "type": "string" }, "imageData": { "description": "이미지 편집 시 사용할 Base64로 인코딩된 이미지 데이터 (Gemini 모델 전용)", "type": "string" }, "imageMimeType": { "default": "image/png", "description": "이미지 MIME 타입 (Gemini 모델 전용)", "type": "string" }, "model": { "default": "imagen-3.0-generate-002", "description": "사용할 모델 ID (예: imagen-3.0-generate-002, gemini-2.0-flash-exp-image-generation)", "type": "string" }, "numberOfImages": { "default": 1, "description": "생성할 이미지 수 (1-4, Imagen 모델 전용)", "maximum": 4, "minimum": 1, "type": "number" }, "personGeneration": { "default": "ALLOW_ADULT", "description": "사람 이미지 생성 허용 여부 (Imagen 모델 전용)", "enum": [ "DONT_ALLOW", "ALLOW_ADULT" ], "type": "string" }, "prompt": { "description": "이미지 생성을 위한 텍스트 프롬프트", "type": "string" }, "responseModalities": { "default": [ "TEXT", "IMAGE" ], "description": "응답에 포함할 모달리티 (Gemini 모델 전용)", "items": { "enum": [ "TEXT", "IMAGE" ], "type": "string" }, "type": "array" }, "saveDir": { "default": "./temp", "description": "이미지를 저장할 디렉토리", "type": "string" }, "size": { "default": "1024x1024", "description": "생성할 이미지 크기", "type": "string" } }, "required": [ "prompt" ], "type": "object" }
ID: mxvujkgabm