curl -X POST https://api.imagine.art/v1/flow/app \
-H "Authorization: Bearer $IMAGINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Photo Upscaler",
"slug": "photo-upscaler-a1b2c3",
"description": "Upscales a photo 2x.",
"graph": {
"nodes": [{ "id": "n1", "type": "upscale-image", "data": { … } }],
"edges": []
},
"inputs": [
{ "id": "in1", "name": "", "description": "", "handle": "imageUrl",
"node_id": "n1", "node_type": "upscale-image" }
],
"parameters": [
{ "id": "in1", "type": "image", "label": "Photo", "required": true,
"order": 0, "default": "", "options": [], "limit": 1, "version": 2 }
],
"input_presets": [],
"base_cost": 20
}'