mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-19 00:03:30 +00:00
- tmp/imagegen* → arc/workflows/imagegen/ - tmp/implement-and-simplify* → arc/workflows/implement-and-simplify/ Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
11 lines
851 B
Text
11 lines
851 B
Text
digraph ImageGen {
|
|
graph [goal="A cute robot painting a landscape"]
|
|
rankdir=LR
|
|
|
|
start [shape=Mdiamond, label="Start"]
|
|
exit [shape=Msquare, label="Exit"]
|
|
|
|
generate [label="Generate Image", backend="cli", prompt="Generate an image of: $goal\n\nCraft a detailed, vivid prompt and then call the Gemini image generation API using curl.\nThe GEMINI_API_KEY env var is already set in your environment.\nUse model gemini-2.5-flash-image at endpoint generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent\nPass the key as query param key=... from the env var.\nPOST JSON with contents/parts/text for your prompt and generationConfig responseModalities TEXT and IMAGE.\nExtract the base64 image data from the response using jq, decode with base64 -d, save to generated.png"]
|
|
|
|
start -> generate -> exit
|
|
}
|