Sign up free, get 10,000 credits

Starter credits added when you sign up.

Notice: About Recent Slower Generation Speeds and Limited Computing Resources — Dear PixAI Community, Thank you for your continued love and support for PixAI. Recently, generation speeds on PixAI have…

View details
AI artwork
Genera gratis

余承樺

More to See

Commenti

Replace the outfit of the character in image2 with the royal violet and black ensemble from image1, transferring the character's identity: long flowing hair with a small braid on the side, pointed elf ears, and a voluptuous build, while maintaining the original pose — leaning back with one hand behind the head — and the white background from image2. The outfit must be colored as a royal violet dress with a black cape, golden metallic trim, a gold heart buckle on the belt, a dark purple corset, and a white pleated skirt trim with shiny leather textures. The art style stays the same.
Mostra parametri
Immissione richiesta originale
import requests import time # 1. 設定 PixAI API 資訊 API_KEY = "YOUR_PIXAI_API_KEY" # 請替換為你的 PixAI API Token BASE_URL = "https://api.pixai.art/v2" headers = { "Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json" } # 2. 控制參數與配色提示詞設定 (預設套用方案一:皇家紫黑) payload = { "modelId": "1648704505322807386", # 建議選擇動漫風格模型 (如 Anything V5, RealAnime) "inputImageId": "YOUR_OUTFIT_IMAGE_MEDIA_ID", # 這件衣服圖片上傳至 PixAI 後的 Media ID # 啟用 ControlNet 線稿引導,確保 AI 依照原圖邊緣上色 "controlnet": { "enabled": True, "type": "lineart", # 線稿引導模式 "weight": 1.0 # 線條保留強度 (0.8~1.0 最為精準) }, # 正面提示詞:指定服裝細節色彩與質感 "prompt": ( "masterpiece, highly detailed, vibrant colors, " "royal violet dress, black cape, golden metallic trim, gold heart buckle, " "dark purple corset, white pleated skirt trim, shiny leather textures, " "studio lighting, clean background" ), # 負面提示詞:防止顏色混濁與畫風失真 "negativePrompt": ( "monochrome, grayscale, low contrast, desaturated, " "bad anatomy, deformed, worst quality, low quality" ), "cfgScale": 7.5, "steps": 30 } # 3. 發送 ControlNet 線稿上色任務 def submit_colorization_task(): response = requests.post(f"{BASE_URL}/gen-task/img2img", json=payload, headers=headers) if response.status_code == 200: task_id = response.json().get("id") print(f"上色任務提交成功!Task ID: {task_id}") return task_id else: print("提交失敗:", response.text) return None # 4. 檢查生成進度並下載結果 def get_task_result(task_id): while True: res = requests.get(f"https://api.pixai.art/v1/task/{task_id}", headers=headers) data = res.json() status = data.get("status") if status == "COMPLETED": result_url = data.get("outputs", [{}])[0].get("media", {}).get("url") print("\n上色完成!彩色圖片網址:", result_url) break elif status in ["FAILED", "CANCELLED"]: print("\n任務失敗:", data) break print("AI 渲染中,請稍候...") time.sleep(4) if __name__ == "__main__": task_id = submit_colorization_task() if task_id: get_task_result(task_id) 上玩色以後給第二張的女角色穿上
Modalità
flash
Dimensione
1024 x 1024
Helper di Prompt

Modello e LoRA utilizzati

Immagini simili

Mostra di più

Scopri altro

Utenti consigliati

Potrebbe piacerti

AI artwork
Avatar image of リオ
character: kaname_madoka_(magical_girl), copyright: mahou_shoujo_madoka_magica Kaname Madoka from Puella Magi Madoka Magica, pink twin tails tied with deep red ribbons, wearing her iconic magical girl costume, white corset-like bodice with delicate back lacing, voluminous layered white and pale pink ruffled skirt, crimson ribbons flowing loosely around her body, viewed from behind at a three-quarter angle, seated with her back gracefully arched, both arms extending naturally downward behind her back, one hand gently holding the opposite wrist, clearly separated hands, relaxed slender fingers, five distinct fingers on each hand, natural finger spacing, anatomically correct wrists, elegant delicate hands, visible knuckles, softly curved fingers, hands clearly visible against the white skirt, unobstructed hand silhouette, accurate hand anatomy, head tilted far backward, chin raised toward the darkness, face mostly hidden, elegant elongated silhouette, delicate exposed shoulders, soft loose strands of pink hair, dramatic asymmetrical composition, close medium shot, large skirt filling the lower frame, dark almost black background, dramatic directional lighting, pale ivory highlights, muted dusty pink, cold gray shadows, rich crimson accents, strong contrast between luminous fabric and deep darkness, thick impasto oil painting, expressive visible brushstrokes, heavy layered paint, rough palette knife texture, sculptural paint strokes, painterly edges, textured canvas, loose gestural painting, rich tactile surface, dramatic chiaroscuro, melancholic atmosphere, haunting beauty, full bleed composition, edge-to-edge artwork, no borders, no frame, textured illustration, grainy texture, crayon texture, chalky brushwork, impasto strokes, bold color blocking, stylized anime, flat shading, dry brush effect, atmospheric lighting, soft glow highlights, rough painterly anime style, visible textured brushstrokes, heavy impasto texture, scratchy charcoal-like linework, expressive gestural strokes, smudged edges, desaturated base tones with aggressive high-contrast color, sketch style, rough brushstroke
リオ