Gemini 이미지 모델 ‘required oneof field data’ 오류 해결을 위한 6가지 일반적인 원인과 수정 방법
작성자 주: gemini-3.1-flash-image-preview 등 Gemini 이미지 모델 호출 시 발생하는 required oneof field data must have one initialized field 400 오류의 6가지 일반적인 원인과 해결 방법 상세 설명 gemini-3.1-flash-image-preview(Nano Banana 2)나 gemini-3.0-pro-image(Nano Banana Pro)로 이미지를 생성할 때, 많은 개발자들이 이 혼란스러운 400 오류를 만나게 됩니다: { "status_code": 400, "error": { "message": "* GenerateContentRequest.contents[0].parts[2].data: required oneof…
