{"slug": "pet-imagination-by-inithouse-our-ai-pet-portrait-pipeline-9-styles-under-60", "title": "Pet Imagination by Inithouse: our AI pet portrait pipeline, 9 styles under 60 seconds", "summary": "Inithouse launched Pet Imagination, an AI pet portrait pipeline that generates images in 9 art styles under 60 seconds without requiring signup or storing user photos. The pipeline uses a fixed prompt skeleton with style-specific parameters, parallel preprocessing, and prompt caching to achieve low latency.", "body_md": "At Inithouse, a studio shipping a growing portfolio of products in parallel, we build tools that do one thing and do it fast. [Pet Imagination](https://petimagination.com) generates AI portraits of pets in 9 art styles. Upload a photo, pick a style, get your portrait. No signup, no waiting around. The whole thing runs under 60 seconds.\n\nThis post breaks down how the pipeline works: the prompt skeleton, the style matrix, and the tricks we use to keep latency low.\n\nThe flow has four stages:\n\n**Upload and preprocessing.** The user uploads a pet photo. We validate the image (format, size, aspect ratio), compress it if needed, and extract the key visual features. The preprocessing step also detects whether the subject is a dog, cat, or another animal. This matters because prompts need to reference the animal type explicitly for consistent output.\n\n**Prompt construction.** This is where the style matrix kicks in. We build a prompt from a skeleton template and inject style-specific parameters. More on this below.\n\n**Generation.** The constructed prompt and the preprocessed image hit the image generation API. We measured average response times across hundreds of generations: most styles return in 15 to 35 seconds depending on complexity.\n\n**Delivery.** The generated portrait gets served to the user. We delete the original upload after processing. No photos stored on our servers, no accounts to worry about.\n\nEvery generation starts from the same base structure:\n\n```\n[STYLE_PREFIX]\nA portrait of a [ANIMAL_TYPE] in [STYLE_DESCRIPTION].\nThe subject should be the focal point, [COMPOSITION_RULES].\n[QUALITY_MODIFIERS]\n[NEGATIVE_CONSTRAINTS]\n```\n\nThe skeleton stays constant. What changes per style are five parameter slots:\n\n`STYLE_PREFIX`\n\n: sets the overall artistic direction (oil painting, anime cell shading, pencil sketch)`STYLE_DESCRIPTION`\n\n: detailed style instructions (brushstroke texture, color palette, line weight)`COMPOSITION_RULES`\n\n: framing and layout rules specific to the style`QUALITY_MODIFIERS`\n\n: resolution and detail level`NEGATIVE_CONSTRAINTS`\n\n: what to avoid (distortion, extra limbs, text artifacts)By keeping the skeleton fixed and parameterizing only the style layer, we get predictable quality across all 9 styles without maintaining 9 separate prompt chains.\n\nEach of the 9 styles maps to a distinct set of parameters:\n\n| Style | Prefix direction | Key visual trait | Avg. generation time |\n|---|---|---|---|\n| Renaissance | Classical oil painting | Rich textures, dramatic lighting | ~30s |\n| Watercolor | Loose watercolor wash | Soft edges, transparent layers | ~25s |\n| Anime | Cell-shaded illustration | Clean lines, large expressive eyes | ~20s |\n| Sketch | Graphite pencil drawing | Cross-hatching, paper texture | ~18s |\n| Sheriff | Western portrait | Sepia tones, badge and hat | ~28s |\n| Wizard | Fantasy illustration | Robes, magical particles | ~32s |\n| Astronaut | Sci-fi portrait | Space suit, starfield background | ~30s |\n| Final Boss | Video game boss art | Dramatic pose, energy aura | ~35s |\n| Blocky | Voxel/pixel art | Cubic geometry, limited palette | ~22s |\n\nThe fun styles (Sheriff, Wizard, Astronaut, Final Boss) need more detailed negative constraints to avoid generic fantasy clip art. We found that adding specific composition rules for these styles (\"the pet's face must remain recognizable as the original\") reduced uncanny output by roughly 40%.\n\nGetting the full pipeline under 60 seconds took some iteration. Here is what moved the needle:\n\n**Parallel preprocessing.** Image validation and animal detection run concurrently, not sequentially. This shaved about 3 seconds off the preprocessing stage.\n\n**Prompt caching.** The style parameters rarely change. We precompute and cache the full prompt template for each style. At generation time, we only inject the animal type and any image-specific adjustments. Template assembly takes under 50ms instead of building from scratch each time.\n\n**Compression before upload.** We resize and compress on the client side before sending to the server. Smaller payload means faster upload, and the generation API handles compressed input fine. We measured no visible quality difference in outputs when compressing input images to 70% quality JPEG.\n\n**Timeout and retry strategy.** If generation exceeds 45 seconds, we cancel and retry once with a slightly simplified prompt (fewer quality modifiers). About 8% of generations hit the timeout on first attempt; the simplified retry succeeds in under 30 seconds almost every time.\n\nBuilding image generation at [Pet Imagination](https://petimagination.com) taught us patterns we applied elsewhere. At [Ziva Fotka](https://alivephoto.online), our tool that turns still photos into short animated videos, we reused the same parallel preprocessing approach. The latency savings compound when you process thousands of images daily.\n\nWe also found that exposing the generation pipeline openly (showing progress stages to the user instead of a blank loading screen) reduced perceived wait time. Users who see \"preprocessing your photo\" followed by \"generating portrait\" report the process feeling faster than users who just see a spinner. We observed the same pattern across multiple products in the portfolio.\n\nThe full prompt skeleton and style matrix are what make Pet Imagination consistent at speed. Nine styles, one pipeline, no accounts, photos deleted after processing. If you want to try it: [petimagination.com](https://petimagination.com).\n\nWe keep shipping tools like this at Inithouse, a studio running parallel product experiments. Pet portraits today, [animated photos](https://alivephoto.online) tomorrow. Each product in the portfolio teaches us something about the next one.", "url": "https://wpnews.pro/news/pet-imagination-by-inithouse-our-ai-pet-portrait-pipeline-9-styles-under-60", "canonical_source": "https://dev.to/jakub_inithouse/pet-imagination-by-inithouse-our-ai-pet-portrait-pipeline-9-styles-under-60-seconds-2b1o", "published_at": "2026-06-27 11:14:52+00:00", "updated_at": "2026-06-27 11:34:16.875311+00:00", "lang": "en", "topics": ["artificial-intelligence", "generative-ai", "ai-products", "computer-vision", "developer-tools"], "entities": ["Inithouse", "Pet Imagination"], "alternates": {"html": "https://wpnews.pro/news/pet-imagination-by-inithouse-our-ai-pet-portrait-pipeline-9-styles-under-60", "markdown": "https://wpnews.pro/news/pet-imagination-by-inithouse-our-ai-pet-portrait-pipeline-9-styles-under-60.md", "text": "https://wpnews.pro/news/pet-imagination-by-inithouse-our-ai-pet-portrait-pipeline-9-styles-under-60.txt", "jsonld": "https://wpnews.pro/news/pet-imagination-by-inithouse-our-ai-pet-portrait-pipeline-9-styles-under-60.jsonld"}}