Skip to content
LLM-friendly formats:

Image Generation (Sync)

Endpoint: POST /image/{family}/{model}/{task}

Generate images with immediate response.

Text-to-Image (t2i)

Terminal window
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.webp

Image-to-Image (i2i)

Transform an existing image.

Terminal window
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.webp

Common Parameters

  • prompt - Generation prompt (required)
  • negative_prompt - What to avoid
  • steps - Inference steps
  • guidance - Prompt adherence (1.0-5.0)
  • seed - Random seed