Skip to content

Getting Started

With FlixML installed and pointed at a GPU, one call makes an image.

Terminal window
curl -X POST <your-api-url>/api/image/generate \
-H "Authorization: Bearer <your-key>" \
-H "Content-Type: application/json" \
-d '{
"workflow": "<workflow-id>",
"prompt": "portrait of a woman in a red dress, soft studio lighting",
"provider": "<provider-id>",
"width": 1024,
"height": 1024
}'

Leave out the Authorization header if your install doesn’t require keys. Discover what your install can run with GET /api/workflows, and which GPU to send it to with GET /api/nodes — that one reports whether a node is online and how much VRAM it has, which /api/providers doesn’t. Full request/response details are in the Agent API reference.