Skip to main content
POST
/
api
/
v1
/
gemini
/
image-to-image
Image to Image
curl --request POST \
  --url https://api.modelhunter.ai/api/v1/gemini/image-to-image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "input": {
    "prompt": "<string>",
    "image_input": [
      "<string>"
    ],
    "aspect_ratio": "<string>",
    "resolution": "<string>",
    "output_format": "<string>",
    "google_search": true
  },
  "webhookUrl": "<string>",
  "metadata": {}
}
'
{
  "success": true,
  "data": {
    "id": "task_abc123",
    "status": "pending",
    "type": "image-to-image",
    "provider": "gemini",
    "model": "nano-banana-2",
    "created_at": "2026-02-27T10:00:00Z",
    "estimated_seconds": 10
  }
}

Body Parameters

model
string
required
Gemini model. Options:
  • nano-banana-2 — Google Gemini 3.1 Flash Image, $0.08–$0.16/image
input
object
required
Input parameters for the generation.
webhookUrl
string
URL to receive a webhook when the task completes.
metadata
object
Custom key-value metadata to attach to the task.
{
  "success": true,
  "data": {
    "id": "task_abc123",
    "status": "pending",
    "type": "image-to-image",
    "provider": "gemini",
    "model": "nano-banana-2",
    "created_at": "2026-02-27T10:00:00Z",
    "estimated_seconds": 10
  }
}