Image Generation (Sync)
Endpoint: POST /image/{family}/{model}/{task}
Generate images with immediate response.
Text-to-Image (t2i)
curl -X POST "https://sync.render.weyl.ai/image/flux/schnell/t2i?format=1024" \ -H "Authorization: Bearer $WEYL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "cyberpunk street at night", "guidance": 3.5, "seed": 42 }' \ -o output.webpImage-to-Image (i2i)
Transform an existing image.
curl -X POST "https://sync.render.weyl.ai/image/flux/dev/i2i?format=1024" \ -H "Authorization: Bearer $WEYL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "convert to watercolor style", "image": "https://example.com/photo.jpg", "strength": 0.7 }' \ -o transformed.webpCommon Parameters
prompt- Generation prompt (required)negative_prompt- What to avoidsteps- Inference stepsguidance- Prompt adherence (1.0-5.0)seed- Random seed