Skip to main content

Gemini 3.1 Flash Image Preview - Image Text Editor

Fast and efficient AI image editing model powered by Google's Gemini 3.1 Flash technology, designed for image transformations using reference images. This model supports flexible aspect ratios and multiple image sizes, making it ideal for high-volume editing workflows that require speed and quality.

Endpoint

Request Headers

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Parameters

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_EDITOR
modelstringYesAI model identifier. Must be gemini-3.1-flash-image-preview
promptObjectobjectYesConfiguration object containing all image editing parameters

Prompt Object Parameters

ParameterTypeRequiredDescriptionDefault
imageUrlstringYesPath to the source image to be edited-
promptstringYesText description of the desired image transformation-
imageSizestringYesImage size quality. Must be one of: "512", "1K", "2K", or "4K"1K
referenceImage1stringNoPath to first reference image (uploaded via Asset API)-
referenceImage2stringNoPath to second reference image (uploaded via Asset API)-
temperaturenumberNoControls randomness in generation (0.0-2.0). Higher values produce more creative results1.0
topPnumberNoNucleus sampling parameter (0.0-1.0). Controls diversity of output0.95

Code Examples

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_EDITOR",
"model": "gemini-3.1-flash-image-preview",
"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",
"imageSize": "2K",
"referenceImage1": "development/images/uploaded_reference_1.jpg",
"referenceImage2": "development/images/uploaded_reference_2.jpg",
"temperature": 1.0,
"topP": 0.95
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Path to the source image to be edited
Description of desired transformation using reference images
Image size quality. Must be one of: 512, 1K, 2K, or 4K
Path to first reference image (uploaded via Asset API)
Path to second reference image (uploaded via Asset API)
Controls randomness (0.0-2.0). Higher = more creative
Nucleus sampling parameter (0.0-1.0). Controls diversity

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_EDITOR",
"model": "gemini-3.1-flash-image-preview",
"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",
"imageSize": "2K",
"referenceImage1": "",
"referenceImage2": "",
"temperature": 1,
"topP": 0.95
}
}'

Response Format

Success Response (200)

{
"aiRecord": {
"uuid": "ac32acf4-0b2e-400e-9edf-cb3086c30a2c",
"userId": "c937fbcc-fa8f-4565-a440-c4d87f56fcb2",
"teamId": "a4e176b2-dabb-451e-9c58-62b451fa9630",
"teamUser": {
"teamId": "a4e176b2-dabb-451e-9c58-62b451fa9630",
"userId": "c937fbcc-fa8f-4565-a440-c4d87f56fcb2",
"userName": "John Doe",
"userAvatar": "https://lh3.googleusercontent.com/a/example",
"status": "ACTIVE",
"role": "ADMIN",
"creditLimit": 100000000,
"usedCredit": 8164605,
"createdAt": "2025-10-20T04:13:40.847Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-10-27T05:06:17.651Z",
"updatedBy": "SYSTEM"
},
"model": "gemini-3.1-flash-image-preview",
"type": "IMAGE_EDITOR",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": null,
"status": "SUCCESS",
"createdAt": "2025-10-27T08:43:17.647Z",
"aiRecordDetail": {
"promptObject": {
"prompt": "Transform the style to match the reference images, maintaining the subject while adopting the artistic style and color palette",
"imageUrl": "development/images/2025_02_16_15_42_40_711_human.jpg",
"imageSize": "2K",
"aspectRatio": "16:9",
"referenceImage1": "development/images/uploaded_reference_1.jpg",
"referenceImage2": "development/images/uploaded_reference_2.jpg",
"temperature": 1.0,
"topP": 0.95
},
"resultObject": [
"development/images/2025_10_27_15_43_26_155_702365.jpg"
],
"responseObject": {}
},
"additionalData": null,
"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&..."
}
}

Use Cases

  • Style transfer with examples: Use reference images to show exactly the desired artistic style with flexible output sizing
  • Brand consistency: Match corporate visual styles using brand reference images across multiple aspect ratios
  • Color palette matching: Adopt specific color schemes from reference materials efficiently at scale
  • Artistic emulation: Replicate the style of specific artists or artworks with speed and quality
  • Product visualization: Match product photography styles across catalogs with cost-effective generation
  • Creative direction: Provide visual examples instead of text descriptions for fast, high-volume workflows
  • Multi-platform content: Generate edited images in different aspect ratios for various platforms in one workflow