Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jawond/6509efa280f08e1313c7267cbca3f384 to your computer and use it in GitHub Desktop.
Save jawond/6509efa280f08e1313c7267cbca3f384 to your computer and use it in GitHub Desktop.
gemini-renovation-edit-prompt.json
{
"contents": [
{
"parts": [
{
"fileData": {
"fileUri": "https://generativelanguage.googleapis.com/v1beta/files/f3vroya4ibp4",
"mimeType": "image/webp"
}
},
{
"text": "Here is a picture of my space"
}
],
"role": "user"
},
{
"parts": [
{
"text": "Understood! I understand this is the space you are renovating and you want to visualize replacing some surfaces."
}
],
"role": "model"
},
{
"parts": [
{
"text": "Here is a sample of a material I want to replace the Countertop with."
},
{
"fileData": {
"fileUri": "https://generativelanguage.googleapis.com/v1beta/files/dgi0teghgs7n",
"mimeType": "image/jpeg"
}
}
],
"role": "user"
},
{
"parts": [
{
"text": "Got it! I see you want to replace the Countertop with this material."
}
],
"role": "model"
},
{
"parts": [
{
"text": "Edit the image of my space (the first image I uploaded) by replacing the existing Countertop(s) with the material sample I selected (the second image uploaded). Isolate the Countertop(s) in the first image of my space and replace them and ONLY them with the material sample I provided. Try to minimize how much of the image of my space you change."
}
],
"role": "user"
}
],
"generationConfig": {
"temperature": 0.5,
"topP": 0.5,
"topK": 40,
"maxOutputTokens": 8192,
"responseMimeType": "text/plain",
"responseModalities": [
"image",
"text"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment