get-image-generation-prompt-instructions
Returns asset-type-specific prompt engineering best practices for
Google Imagen.
{
"assetType": "logo", // required: logo | icon | illustration | character | sprite | pattern | photograph | ui-element
"query": "I need a tech startup logo", // optional: context for the guidelines
"stylePreferences": { // optional: style hints
"colorScheme": "blue and white",
"artStyle": "minimalist",
"mood": "professional"
}
}
generate-images
Generates images using Google Imagen with auto-vectorization for
SVG outputs. Supports batch processing with up to 10 parallel
requests.
{
"requests": [
{
"outputPath": "/path/to/logo.png", // required: output file path
"extension": "png", // required: png | svg | webp | jpeg
"prompt": "Minimalist owl logo, flat design", // required: 1-2000 chars
"images": ["/path/to/reference.png"], // optional: reference images (paths or URLs)
"removeBackground": true // optional: AI background removal (png only)
},
{
"outputPath": "/path/to/icon.svg",
"extension": "svg",
"prompt": "Settings gear icon, outlined style"
}
],
"model": "imagen-4.0-generate-001" // optional: imagen-4.0-ultra-generate-001 | imagen-4.0-generate-001 (default) | imagen-4.0-fast-generate-001
}
vectorize-image
Converts raster images (PNG, JPEG, WebP) to SVG using configurable
vectorization options.
{
"inputPath": "/path/to/input.png", // required: source image
"outputPath": "/path/to/output.svg", // required: output SVG path
"config": { // optional: all fields have defaults
"colorMode": "color", // color | binary (default: color)
"hierarchical": "stacked", // stacked | cutout (default: stacked)
"mode": "spline", // spline | polygon | none (default: spline)
"filterSpeckle": 4, // 0-100: remove small artifacts (default: 4)
"colorPrecision": 6, // 1-8: color clustering precision (default: 6)
"layerDifference": 16, // 0-100: color layer threshold (default: 16)
"cornerThreshold": 60, // 0-180: corner detection angle (default: 60)
"lengthThreshold": 4, // 0-10: min path segment length (default: 4)
"spliceThreshold": 45, // 0-180: curve splice angle (default: 45)
"maxIterations": 10, // 1-20: curve fitting iterations (default: 10)
"pathPrecision": 3 // 1-8: SVG path decimal precision (default: 3)
}
}
remove-background
AI-powered background removal using InSPyReNet model. Works with
complex backgrounds, shadows, and lighting effects. Outputs
transparent PNG. Powered by
transparent-background.
{
"inputPath": "/path/to/image.png", // required: source image
"outputPath": "/path/to/output.png", // required: output PNG with transparency
"fast": false // optional: true = 384x384 (faster), false = 1024x1024 (default, higher quality)
}