generate_image
Creates images from text prompts on Perchance's lite engine. Supports negative prompts, resolutions, art styles, seeds, and guidance scale, then saves the image and returns its saved path.
Instructions
Generate an image via lite mode (curl_cffi + external solver).
Memory: 80-120MB (no browser). If SOLVER_URL set, calls solver service (Byparr/Camoufox) that does Turnstile solving (200MB) on separate Render account. If no solver, requires PERCHANCE_USER_KEY env var (64 hex from browser).
Args: prompt: What to draw negative_prompt: Things to avoid seed: -1 random or specific int resolution: 512x512, 512x768, 768x512, 768x768 guidance_scale: 1-30 default 7 art_style: Optional style from list_styles save_path: Where to save (default auto)
Returns JSON with saved_path, seed, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| prompt | Yes | ||
| art_style | No | ||
| save_path | No | ||
| resolution | No | 512x512 | |
| guidance_scale | No | ||
| negative_prompt | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |