算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
illusion-diffusion-hq【设计与创意】Illusion Diffusion | QR Code Art Generator. Generate artistic QR codes and optical illusion images from prompts. Triggers: illusion diffusion, qr code art, qr code, optical illusion, artistic qr
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate artistic QR codes and optical illusion images from text prompts. Create beautiful, functional QR codes that blend art with utility, or generate optical illusion artwork from custom images.
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "illusion-diffusion-hq",
"version": "0.0.1",
"input": {
"prompt": "a beautiful enchanted forest with magical creatures and glowing plants",
"qr_code_content": "https://eachlabs.ai",
"guidance_scale": 7.5,
"num_inference_steps": 40
}
}'
| Parameter | Type | Default | Description |
|---|---|---|---|
| border | integer | 1 | QR code border size |
| controlnet_conditioning_scale | number | 1 | ControlNet conditioning strength multiplier |
| guidance_scale | number | 7.5 | Scale for classifier-free guidance |
| height | integer | 768 | Height of the output image |
| image | string | - | Input image. If none is provided, a QR code will be generated |
| negative_prompt | string | ugly, disfigured, low quality, blurry, nsfw | Negative prompt to guide generation |
| num_inference_steps | integer | 40 | Number of diffusion steps |
| num_outputs | integer | 1 | Number of outputs |
| prompt | string | - | The prompt to guide QR Code generation |
| qr_code_content | string | - | The website/content your QR Code will point to |
| qrcode_background | string | gray | QR code background color. enum: gray, white |
| seed | integer | -1 | Seed for reproducibility |
| width | integer | 768 | Width of the output image |
Business card QR code art:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "illusion-diffusion-hq",
"version": "0.0.1",
"input": {
"prompt": "an elegant Japanese ink painting with cherry blossoms and a mountain, minimalist",
"qr_code_content": "https://myportfolio.com",
"controlnet_conditioning_scale": 0.9,
"guidance_scale": 8,
"num_inference_steps": 50,
"qrcode_background": "white"
}
}'
Optical illusion from custom image:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "illusion-diffusion-hq",
"version": "0.0.1",
"input": {
"prompt": "a surreal dreamscape with floating islands and cosmic nebulae, detailed fantasy art",
"image": "https://example.com/spiral-pattern.jpg",
"controlnet_conditioning_scale": 1.2,
"guidance_scale": 7.5,
"num_inference_steps": 45,
"seed": 42
}
}'