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 detailsMostra 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ù余
Recolor the hair and the small hair ornaments of the character in image1 to the pink hue seen in image2, while keeping the silver-white hair's flow and the character's purple and black outfit unchanged. The rest of the image remains the same as the input image1.
余承樺
余
Recolor the hair and the small hair ornaments of the character in image1 to the pink hue seen in image2, while keeping the silver-white hair's flow and the character's purple and black outfit unchanged. The rest of the image remains the same as the input image1.
余承樺
余
Recolor the hair and the small hair ornaments of the character in image1 to the pink hue seen in image2, while keeping the silver-white hair's flow and the character's purple and black outfit unchanged. The rest of the image remains the same as the input image1.
余承樺
余
Recolor the hair and the small hair ornaments of the character in image1 to the pink hue seen in image2, while keeping the silver-white hair's flow and the character's purple and black outfit unchanged. The rest of the image remains the same as the input image1.
余承樺
Scopri altro
Utenti consigliati
Potrebbe piacerti
ᯓ★ ⚡ ♡ ᯓ★
(mai)
Winter joy in the snow
FriddaTiss
kyramisu
2
logos
ᯓᯓ 𝙘𝙤𝙘𝙤𝙛𝙡𝙪𝙛𝙛𝙞
Hu Tao
KanKan Matcha
Tilith, the Goddess of Magical Star
entrophee_E:
푸른 물결 속의 신비로운 소녀
조개
X-Ray • Verina
ichikiki
anime
𝚖𝚎𝚛𝚒𝚖𝚎𝚛𝚒
miku
𝚖𝚎𝚛𝚒𝚖𝚎𝚛𝚒
samsara asura
ᯓᯓ 𝙘𝙤𝙘𝙤𝙛𝙡𝙪𝙛𝙛𝙞
🧣🚉 🪐 ‧₊˚ ♡ ˚₊‧
(mai)
❄️Lolicia❄️
weirdcore...
ᯓᯓ 𝙘𝙤𝙘𝙤𝙛𝙡𝙪𝙛𝙛𝙞
HaruYuu 02
uzukun
reunited at last
ᯓᯓ 𝙘𝙤𝙘𝙤𝙛𝙡𝙪𝙛𝙛𝙞
₊˚⊹♡ 𝗯𝘂𝗻𝗻𝘆 𝗴𝗶𝗿𝗹 ♡⊹˚₊
●♡⃝ 𝓑𝓾𝓽𝓽𝓮𝓻𝓯𝓵𝔂•ʚїɞ.𝕏𝕠
...
Tofu
1
...
Tofu
2
₊˚ ꒰ᐢ. .ᐢ꒱ 🍓🍞 ✧
(mai)
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
リオ
Sg75
...
Tofu
이름
이름
1
Commenti