PageSourceSearch

https://docs.1min.ai/assets/js/8e1ef56d.59744bcb.js

js 1min.ai collected 2026-10-02 14:07:28 UTC 13,842 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4533],{5727:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>h,contentTitle:()=>m,default:()=>j,frontMatter:()=>o,metadata:()=>a,toc:()=>p});const a=JSON.parse('{"id":"api/ai-for-image/image-text-editor/gemini-flash-image-image-text-editor","title":"Gemini 2.5 Flash Image - Image Text Editor","description":"Gemini 2.5 Flash Image - Image Text Editor","source":"@site/docs/api/ai-for-image/image-text-editor/gemini-2.5-flash-image-preview.mdx","sourceDirName":"api/ai-for-image/image-text-editor","slug":"/api/ai-for-image/image-text-editor/gemini-flash-image-image-text-editor","permalink":"/docs/api/ai-for-image/image-text-editor/gemini-flash-image-image-text-editor","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"gemini-flash-image-image-text-editor","title":"Gemini 2.5 Flash Image - Image Text Editor","description":"Gemini 2.5 Flash Image - Image Text Editor","sidebar_label":"Gemini 2.5 Flash Image","custom_edit_url":null},"sidebar":"apisidebar","previous":{"title":"Flux 2 Klein 4B","permalink":"/docs/api/ai-for-image/image-text-editor/flux-2-klein-4b-image-text-editor"},"next":{"title":"Gemini 3 Pro Image Preview","permalink":"/docs/api/ai-for-image/image-text-editor/gemini-3-pro-image-preview-image-text-editor"}}');var n=i(4848),r=i(8453),s=i(1470),d=i(9365),l=i(1028),c=i(1696);const o={id:"gemini-flash-image-image-text-editor",title:"Gemini 2.5 Flash Image - Image Text Editor",description:"Gemini 2.5 Flash Image - Image Text Editor",sidebar_label:"Gemini 2.5 Flash Image",custom_edit_url:null},m="Gemini 2.5 Flash Image  - Image Text Editor",h={},p=[{value:"Endpoint",id:"endpoint",level:2},{value:"Request Headers",id:"request-headers",level:2},{value:"Parameters",id:"parameters",level:2},{value:"Prompt Object Parameters",id:"prompt-object-parameters",level:3},{value:"Code Examples",id:"code-examples",level:2},{value:"Interactive Playground",id:"interactive-playground",level:2},{value:"Response Format",id:"response-format",level:2}
1,{value:"Success Response (200)",id:"success-response-200",level:3},{value:"Use Cases",id:"use-cases",level:2}];function g(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"gemini-25-flash-image----image-text-editor",children:"Gemini 2.5 Flash Image  - Image Text Editor"})}),"\n",(0,n.jsx)(t.p,{children:"Advanced AI image editing model powered by Google's Gemini 2.5 Flash, designed for sophisticated image transformations using reference images. This model excels at understanding visual context from multiple reference images to create highly accurate and contextually aware edits."}),"\n",(0,n.jsx)(t.h2,{id:"endpoint",children:"Endpoint"}),"\n",(0,n.jsxs)("div",{className:"api-endpoint",children:[(0,n.jsx)("span",{className:"badge badge--success",children:"POST"}),(0,n.jsx)("code",{children:(0,n.jsx)(t.a,{href:"https://api.1min.ai/api/features",children:"https://api.1min.ai/api/features"})})]}),"\n",(0,n.jsx)(t.h2,{id:"request-headers",children:"Request Headers"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Field"}),(0,n.jsx)(t.th,{children:"Value"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"API-KEY"}),(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"<api-key>"})})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"Content-Type"}),(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"application/json"})})]})]})]}),"\n",(0,n.jsx)(t.h2,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Parameter"}),(0,n.jsx)(t.th,{children:"Type"}),(0,n.jsx)(t.th,{children:"Required"}),(0,n.jsx)(t.th,{children:"Description"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"type"})}),(0,n.jsx)(t.td,{children:"string"}),(0,n.jsx)(t.td,{children:"Yes"}),(0,n.jsxs)(t.td,{children:["Feature type identifier. Must be ",(0,n.jsx)(t.code,{children:"IMAGE_EDITOR"})]})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"model"})}),(0,n.jsx)(t.td,{children:"string"}),(0,n.jsx)(t.td,{children:"Yes"}),(0,n.jsxs)(t.td,{children:["AI model identifier. Must be ",(0,n.jsx)(t.code,{children:"gemini-2.5-flash-image"})]})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"promptObject"})}),(0,n.jsx)(t.td,{children:"object"}),(0,n.jsx)(t.td,{children:"Yes"}),(0,n.jsx)(t.td,{children:"Configuration object containing all image editing parameters"})]})]})]}),"\n",(0,n.jsx)(t.h3,{id:"prompt-object-parameters",children:"Prompt Object Parameters"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Parameter"}),(0,n.jsx)(t.th,{children:"Type"}),(0,n.jsx)(t.th,{children:"Required"}),(0,n.jsx)(t.th,{children:"Description"}),(0,n.jsx)(t.th,{children:"Default"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"imageUrl"})}),(0,n.jsx)(t.td,{children:"string"}),(0,n.jsx)(t.td,{children:"Yes"}),(0,n.jsx)(t.td,{children:"Path to the source image to be edited"}),(0,n.jsx)(t.td,{children:"-"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"prompt"})}),(0,n.jsx)(t.td,{children:"string"}),(0,n.jsx)(t.td,{children:"Yes"}),(0,n.jsx)(t.td,{children:"Text description of the desired image transformation"}),(0,n.jsx)(t.td,{children:"-"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"referenceImage1"})}),(0,n.jsx)(t.td,{children:"string"}),(0,n.jsx)(t.td,{children:"No"}),(0,n.jsx)(t.td,{children:"Path to first reference image (uploaded via Asset API)"}),(0,n.jsx)(t.td,{children:"-"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"referenceImage2"})}),(0,n.jsx)(t.td,{children:"string"}),(0,n.jsx)(t.td,{children:"No"}),(0,n.jsx)(t.td,{children:"Path to second reference image (uploaded via Asset API)"}),(0,n.jsx)(t.td,{children:"-"})]})]})]}),"\n",(0,n.jsx)(t.h2,{id:"code-examples",children:"Code Examples"}),"\n",(0,n.jsxs)(s.A,{children:[(0,n.jsx)(d.A,{value:"curl",label:"cURL",default:!0,children:(0,n.jsx)(l.A,{language:"bash",children:'curl -X POST "https://api.1min.ai/api/features" \\\n-H "API-KEY: <api-key>" \\\n-H "Content-Type: application/json" \\\n-d \'{\n  "type": "IMAGE_EDITOR",\n  "model": "gemini-2.5-flash-image",\n  "promptObject": {\n    "imageUrl": "development/images/2025_02_16_15_42_40_711_human.jpg",\n    "prompt": "Transform the style to match the reference images, maintaining the subject while adopting the artistic style and color palette",\n    "referenceImage1": "development/images/uploaded_reference_1.jpg",\n    "referenceImage2": "development/images/uploaded_reference_2.jpg"\n  }\n}\''})}),(0,n.jsx)(d.A,{value:"javascript",label:"JavaScript",children:(0,n.jsx)(l.A,{language:"javascript",children:"fetch('https://api.1min.ai/api/features', {\nmethod: 'POST',\nheaders: {\n  'Content-Type': 'application/json',\n  'API-KEY': 'YOUR_API_KEY'\n},\nbody: JSON.stringify({\n  type: 'IMAGE_EDITOR',\n  model: 'gemini-2.5-flash-image',\n  promptObject: {\n    imageUrl: 'development/images/2025_02_16_15_42_40_711_human.jpg',\n    prompt: 'Transform the style to match the reference images, maintaining the subject while adopting the artistic style and color palette',\n    referenceImage1: 'development/images/uploaded_reference_1.jpg',\n    referenceImage2: 'development/images/uploaded_reference_2.jpg'\n  }\n})\n})"})}),(0,n.jsx)(d.A,{value:"python",label:"Python",children:(0,n.jsx)(l.A,{language:"python",children:'import requests\n\nurl = "https://api.1min.ai/api/features"\nheaders = {\n"Content-Type": "application/json",\n"API-KEY": "YOUR_API_KEY"\n}\n\ndata = {\n"type": "IMAGE_EDITOR",\n"model": "gemini-2.5-flash-image",\n"promptObject": {\n  "imageUrl": "development/images/2025_02_16_15_42_40_711_human.jpg",\n  "prompt": "Transform the style to match the reference images, maintaining the subject while adopting the artistic style and color palette",\n  "referenceImage1": "development/images/uploaded_reference_1.jpg",\n  "referenceImage2": "development/images/uploaded_reference_2.jpg"\n}\n}\n\nresponse = requests.post(url, headers=headers, json=data)'})})]}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h2,{id:"interactive-playground",children:"Interactive Playground"}),"\n",(0,n.jsx)(c.A,{endpoint:"/api/features",method:"POST",baseUrl:"https://api.1min.ai",defaultHeaders:{"API-KEY":"<your-api-key>","Content-Type":"application/json"},defaultBody:{type:"IMAGE_EDITOR",model:"gemini-2.5-flash-image",promptObject:{imageUrl:"development/images/2025_02_16_15_42_40_711_human.jpg",prompt:"Transform the style to match the reference images, maintaining the subject while adopting the artistic style and color palette",referenceImage1:"",referenceImage2:""}},parameterConfig:[{path:"model",label:"AI Model",type:"select",required:!0,options:[{label:"Gemini 2.5 Flash Image",value:"gemini-2.5-flash-image"}],getValue:e=>e.model},{path:"promptObject.imageUrl",label:"Source Image URL",type:"text",required:!0,description:"Path to the source image to be edited",placeholder:"development/images/your_image.jpg",getValue:e=>e.promptObject?.imageUrl},{path:"promptObject.prompt",label:"Prompt",type:"textarea",required:!0,description:"Description of desired transformation using reference images",placeholder:"Transform the style to match the reference images...",getValue:e=>e.promptObject?.prompt},{path:"promptObject.referenceImage1",label:"Reference Image 1",type:"text",required:!1,description:"Path to first reference image (uploaded via Asset API)",placeholder:"development/images/uploaded_reference_1.jpg",getValue:e=>e.promptObject?.referenceImage1},{path:"promptObject.referenceImage2",label:"Reference Image 2",type:"text",required:!1,description:"Path to second reference image (uploaded via Asset API)",placeholder:"development/images/uploaded_reference_2.jpg",getValue:e=>e.promptObject?.referenceImage2}]}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h2,{id:"response-format",children:"Response Format"}),"\n",(0,n.jsx)(t.h3,{id:"success-response-200",children:"Success Response (2
100)"}),"\n",(0,n.jsx)(l.A,{language:"json",children:'{\n"aiRecord": {\n  "uuid": "ac32acf4-0b2e-400e-9edf-cb3086c30a2c",\n  "userId": "c937fbcc-fa8f-4565-a440-c4d87f56fcb2",\n  "teamId": "a4e176b2-dabb-451e-9c58-62b451fa9630",\n  "teamUser": {\n    "teamId": "a4e176b2-dabb-451e-9c58-62b451fa9630",\n    "userId": "c937fbcc-fa8f-4565-a440-c4d87f56fcb2",\n    "userName": "John Doe",\n    "userAvatar": "https://lh3.googleusercontent.com/a/ACg8ocLqgsNsHRfmWF9d-E1RvJetVsEzxNOsOg-NXWNTpMxLDPJbwELI=s96-c",\n    "status": "ACTIVE",\n    "role": "ADMIN",\n    "creditLimit": 100000000,\n    "usedCredit": 8164605,\n    "createdAt": "2025-10-20T04:13:40.847Z",\n    "createdBy": "SYSTEM",\n    "updatedAt": "2025-10-27T05:06:17.651Z",\n    "updatedBy": "SYSTEM"\n  },\n  "model": "gemini-2.5-flash-image",\n  "type": "IMAGE_EDITOR",\n  "metadata": null,\n  "rating": null,\n  "feedback": null,\n  "conversationId": null,\n  "status": "SUCCESS",\n  "createdAt": "2025-10-27T08:43:17.647Z",\n  "aiRecordDetail": {\n    "promptObject": {\n      "prompt": "Transform the style to match the reference images, maintaining the subject while adopting the artistic style and color palette",\n      "imageUrl": "development/images/2025_02_16_15_42_40_711_human.jpg",\n      "referenceImage1": "development/images/uploaded_reference_1.jpg",\n      "referenceImage2": "development/images/uploaded_reference_2.jpg"\n    },\n    "resultObject": [\n      "development/images/2025_10_27_15_43_26_155_702365.jpg"\n    ],\n    "responseObject": {}\n  },\n  "additionalData": null,\n  "temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_10_27_15_43_26_155_702365.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAVRUVQEFIHSKAXGE7%2F20251027%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20251027T084331Z&X-Amz-Expires=604800&X-Amz-Signature=5a66ff004deed5654ac44a823be7c4d1c8850503cb66a4445ce745c5caec5525&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"\n}\n}'}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h2,{id:"use-cases",children:"Use Cases"}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Style transfer with examples"}),": Use reference images to show exactly the desired artistic style"]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Brand consistency"}),": Match corporate visual styles using brand reference images"]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Color palette matching"}),": Adopt specific color schemes from reference materials"]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Artistic emulation"}),": Replicate the style of specific artists or artworks"]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Product visualization"}),": Match product photography styles across catalogs"]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Creative direction"}),": Provide visual examples instead of text descriptions"]}),"\n"]})]})}function j(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(g,{...e})}):g(e)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.