fabro/arc/workflows/imagegen/imagegen.dot
Bryan Helmkamp fb8ff0914d Move experiment workflows from tmp/ to arc/workflows/
- tmp/imagegen* → arc/workflows/imagegen/
- tmp/implement-and-simplify* → arc/workflows/implement-and-simplify/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 13:27:36 -04:00

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
}