#!/bin/bash # Submit 512x512 spider test via API PORT=8188 URL="http://127.0.0.1:$PORT" STEPS=${1:-4} echo "Submitting spider bench: 512x512, $STEPS steps, CFG 1.0" curl -s -X POST "$URL/api/prompt" \ -H "Content-Type: application/json" \ -d "{\"prompt\": { \"1\": {\"class_type\": \"CLIPLoaderGGUF\", \"inputs\": {\"clip_name\": \"Qwen_3_4b-Q8_0.gguf\", \"type\": \"lumina2\"}}, \"2\": {\"class_type\": \"CLIPTextEncode\", \"inputs\": {\"text\": \"a giant spider made of chrome and neon lights, cyberpunk cityscape background, rain reflections, ultra detailed, 8k\", \"clip\": [\"1\", 0]}}, \"3\": {\"class_type\": \"CLIPTextEncode\", \"inputs\": {\"text\": \"\", \"clip\": [\"1\", 0]}}, \"4\": {\"class_type\": \"UnetLoaderGGUF\", \"inputs\": {\"unet_name\": \"z_image_turbo-Q5_K_S.gguf\"}}, \"5\": {\"class_type\": \"EmptyLatentImage\", \"inputs\": {\"width\": 512, \"height\": 512, \"batch_size\": 1}}, \"6\": {\"class_type\": \"KSampler\", \"inputs\": { \"seed\": 42, \"steps\": $STEPS, \"cfg\": 1.0, \"sampler_name\": \"euler\", \"scheduler\": \"normal\", \"denoise\": 1.0, \"model\": [\"4\", 0], \"positive\": [\"2\", 0], \"negative\": [\"3\", 0], \"latent_image\": [\"5\", 0] }}, \"7\": {\"class_type\": \"VAELoader\", \"inputs\": {\"vae_name\": \"ae.safetensors\"}}, \"8\": {\"class_type\": \"VAEDecode\", \"inputs\": {\"samples\": [\"6\", 0], \"vae\": [\"7\", 0]}}, \"9\": {\"class_type\": \"SaveImage\", \"inputs\": {\"filename_prefix\": \"bench_spider\", \"images\": [\"8\", 0]}} }}" echo ""