Skip to main content

ai-pixel-perfect-design-generator

AI-powered image generation platform for creating professional pixel-perfect designs from text prompts

Zur Installation springen

Quellinformationen

Repository
reason-machines/design-skills
Letzte Quellaktivität
30. Juni 2026 um 22:56
Erkannte Sprache von SKILL.md
Englisch
Sterne
4
Forks
0

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
ai-pixel-perfect-design-generator
description
AI-powered image generation platform for creating professional pixel-perfect designs from text prompts
triggers
["generate ai images with pixel perfect","create professional designs using ai","use aipixelperfect design engine","integrate ai image generation api","generate graphics from text prompts","create studio quality visuals with ai","setup pixel perfect design tool","export ai generated designs to figma"]
# AI Pixel Perfect Design Generator > Skill by [ara.so](https://ara.so) — Design Skills collection ## Overview AiPixelPerfect is a next-generation AI image generation platform that creates professional, pixel-perfect visual assets from text prompts. It acts as a design synergy engine bridging human intuition and machine precision, enabling anyone to produce studio-quality visuals without traditional design software expertise. **Core Capabilities:** - AI-powered design synthesis from text prompts - Responsive UI across all devices - Support for 40+ languages with cultural adaptation - Real-time collaboration and design review - Export to Figma, Adobe Creative Cloud, and Canva - RESTful API for custom integrations ## Installation ### Web Interface Access The primary interface is web-based. Access through the repository's hosted page: ```bash # Navigate to the hosted application open https://abnormal-codex.github.io/Ai-Pixel-Design-Archive/ ``` ### API Integration Setup For programmatic access, install the client library: ```bash npm install @aipixelperfect/client ``` Or for Python projects: ```bash pip install aipixelperfect-sdk ``` ## Configuration ### Environment Variables ```bash # API Configuration export AIPIXELPERFECT_API_KEY=your_api_key_here export AIPIXELPERFECT_ENDPOINT=https://api.aipixelperfect.com/v1 export AIPIXELPERFECT_TIMEOUT=30000 # Output Settings export AIPIXELPERFECT_DEFAULT_RESOLUTION=2048 export AIPIXELPERFECT_OUTPUT_FORMAT=png export AIPIXELPERFECT_STYLE_WEIGHT=0.7 # Collaboration export AIPIXELPERFECT_WORKSPACE_ID=your_workspace_id ``` ### Configuration File Create `aipixelperfect.config.json` in your project root: ```json { "apiKey": "${AIPIXELPERFECT_API_KEY}", "defaults": { "resolution": "2048x2048", "format": "png", "variations": 4, "styleWeight": 0.7 }, "export": { "figma": { "enabled": true, "projectId": "your-figma-project-id" }, "adobe": { "enabled": false } }, "collaboration": { "realtime": true, "annotations": true } } ``` ## Core API Usage ### JavaScript/Node.js Integration ```javascript import { AiPixelPerfect } from '@aipixelperfect/client'; // Initialize client const client = new AiPixelPerfect({ apiKey: process.env.AIPIXELPERFECT_API_KEY, endpoint: process.env.AIPIXELPERFECT_ENDPOINT }); // Generate a design from text prompt async function generateDesign(prompt) { try { const result = await client.synthesize({ prompt: "a futuristic cityscape at sunset with neon reflections", variations: 4, resolution: "2048x2048", styleWeight: 0.8 }); return result.images; } catch (error) { console.error('Generation failed:', error); throw error; } } // Refine an existing design async function refineDesign(imageId, adjustments) { const refined = await client.refine({ imageId: imageId, adjustments: { brightness: 0.1, contrast: -0.05, saturation: 0.15, styleWeight: 0.9 }, newPrompt: "add more vibrant colors and lighting effects" }); return refined; } // Export to external tools async function exportToFigma(imageId) { const exported = await client.export({ imageId: imageId, target: 'figma', projectId: process.env.FIGMA_PROJECT_ID, maintainLayers: true, transparency: true }); console.log(`Exported to Figma: ${exported.figmaUrl}`); return exported; } ``` ### Python Integration ```python from aipixelperfect import AiPixelPerfect import os # Initialize client client = AiPixelPerfect( api_key=os.getenv('AIPIXELPERFECT_API_KEY'), endpoint=os.getenv('AIPIXELPERFECT_ENDPOINT') ) # Generate design def generate_design(prompt, language='en'): result = client.synthesize( prompt=prompt, variations=4, resolution=(2048, 2048), style_weight=0.8, language=language # Supports 40+ languages ) return result['images'] # Batch generation def batch_generate(prompts): results = [] for prompt in prompts: try: images = client.synthesize( prompt=prompt, variations=2, resolution=(1024, 1024) ) results.append({ 'prompt': prompt, 'images': images }) except Exception as e: print(f"Failed for prompt '{prompt}': {e}") return results # Cultural adaptation example def generate_localized_design(concept, locale): """Generate design adapted to cultural preferences""" result = client.synthesize( prompt=concept, language=locale, cultural_adaptation=True, # Enables regional color palettes variations=3 ) return result ``` ### HTML/Frontend Integration ```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>AiPixelPerfect Design Generator</title> <style> .design-canvas { width: 100%; max-width: 800px; margin: 0 auto; padding: 20px; } .prompt-input { width: 100%; padding: 12px; font-size: 16px; border: 2px solid #333; border-radius: 8px; } .variations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; } .design-card { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; cursor: pointer; transition: transform 0.2s; } .design-card:hover { transform: scale(1.02); } .design-card img { width: 100%; height: auto; } </style> </head> <body> <div class="design-canvas"> <h1>AI Design Generator</h1> <input type="text" class="prompt-input" id="promptInput" placeholder="Describe your design concept..." /> <button onclick="generateDesign()">Synthesize</button> <div id="variations" class="variations-grid"></div> </div> <script> const API_KEY = localStorage.getItem('aipixelperfect_api_key'); const API_ENDPOINT = 'https://api.aipixelperfect.com/v1'; async function generateDesign() { const prompt = document.getElementById('promptInput').value; if (!prompt) { alert('Please enter a design concept'); return; } try { const response = await fetch(`${API_ENDPOINT}/synthesize`, { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${API_KEY}` }, body: JSON.stringify({ prompt: prompt, variations: 4, resolution: '1024x1024', styleWeight: 0.7 }) }); const result = await response.json(); displayVariations(result.images); } catch (error) { console.error('Generation failed:', error); alert('Failed to generate design. Please try again.'); } } function displayVariations(images) { const container = document.getElementById('variations'); container.innerHTML = ''; images.forEach((image, index) => { const card = document.createElement('div'); card.className = 'design-card'; card.innerHTML = ` <img src="${image.url}" alt="Variation ${index + 1}"> <div style="padding: 10px;"> <button onclick="refineDesign('${image.id}')">Refine</button> <button onclick="exportDesign('${image.id}')">Export</button> </div> `; container.appendChild(card); }); } async function refineDesign(imageId) { // Refinement logic const newPrompt = prompt('Enter refinement instructions:'); const response = await fetch(`${API_ENDPOINT}/refine`, { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${API_KEY}` }, body: JSON.stringify({ imageId: imageId, newPrompt: newPrompt, adjustments: { brightness: 0.1, contrast: 0.05 } }) }); const result = await response.json(); console.log('Refined design:', result); } async function exportDesign(imageId) { const target = prompt('Export to (figma/adobe/canva):'); const response = await fetch(`${API_ENDPOINT}/export`, { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${API_KEY}` }, body: JSON.stringify({ imageId: imageId, target: target, maintainLayers: true }) }); const result = await response.json(); window.open(result.exportUrl, '_blank'); } </script> </body> </html> ``` ## Common Design Patterns ### Iterative Refinement Workflow ```javascript async function iterativeDesignProcess(initialPrompt) { // Generate initial variations let designs = await client.synthesize({ prompt: initialPrompt, variations: 4 }); // Select best variation const selectedId = designs.images[0].id; // Refine in stages const refinementStages = [ { brightness: 0.1, contrast: 0.05 }, { saturation: 0.15, styleWeight: 0.9 }, { prompt: "add more detail and texture" } ]; let currentDesign = selectedId; for (const stage of refinementStages) { const refined = await client.refine({ imageId: currentDesign, ...stage }); currentDesign = refined.id; } return currentDesign; } ``` ### Batch Processing with Queue ```javascript import Queue from 'bull'; const designQueue = new Queue('design-generation', { redis: { host: 'localhost', port: 6379 } }); // Add jobs to queue async function queueDesignGeneration(prompts) { for (const prompt of prompts) { await designQueue.add('generate', { prompt: prompt, variations: 2, resolution: '1024x1024' }); } } // Process queue designQueue.process('generate', async (job) => { const { prompt, variations, resolution } = job.data; try { const result = await client.synthesize({ prompt, variations, resolution }); return result; } catch (error) { console.error(`Failed to generate design for: ${prompt}`, error); throw error; } }); // Monitor progress designQueue.on('completed', (job, result) => { console.log(`Design generated: ${job.id}`); }); ``` ### Style Transfer and Custom Styles ```python # Create and save custom art style def create_custom_style(sample_images, style_name): """Generate custom style from sample images""" style = client.create_style( name=style_name, sample_images=sample_images, training_iterations=1000 ) return style['style_id'] # Apply custom style to generation def generate_with_custom_style(prompt, style_id): result = client.synthesize( prompt=prompt, custom_style_id=style_id, style_weight=1.0, variations=3 ) return result['images'] # Style mixing def mix_styles(prompt, style_ids, weights): """Combine multiple styles with weights""" result = client.synthesize( prompt=prompt, style_mix=[ {'style_id': sid, 'weight': w} for sid, w in zip(style_ids, weights) ], variations=4 ) return result['images'] ``` ### Real-time Collaboration ```javascript import { io } from 'socket.io-client'; // Connect to collaboration server const socket = io(process.env.AIPIXELPERFECT_COLLAB_URL, { auth: { token: process.env.AIPIXELPERFECT_API_KEY } });
Auf GitHub ansehen
Diese SKILL.md ist sehr gross, daher zeigt SkillsMP hier nur den ersten Abschnitt. Auf GitHub ansehen