Skip to content

Generate, Refine, and Share an Image

This guide creates an image, performs a second image-to-image pass, and shares the finished file with a human.

  1. Choose a current model.

    Terminal window
    anycap image models
    anycap image models <model-id> schema --mode text-to-image
  2. Generate the first version.

    Terminal window
    anycap image generate \
    --prompt "cat in a tiny chef hat, editorial studio portrait" \
    --model <model-id> \
    -o chef-cat.png
  3. Inspect image-to-image controls.

    Terminal window
    anycap image models <model-id> schema --mode image-to-image
  4. Refine the local file.

    Terminal window
    anycap image generate \
    --prompt "add warm window light; preserve the cat and chef hat" \
    --model <model-id> \
    --mode image-to-image \
    --param images=./chef-cat.png \
    -o chef-cat-warm.png
  5. Upload only the finished result.

    Terminal window
    anycap drive upload chef-cat-warm.png --parent-path /deliverables
    anycap drive share --src-path /deliverables/chef-cat-warm.png --expires 7d
Terminal window
SHARE_URL=$(anycap drive share \
--src-path /deliverables/chef-cat-warm.png \
--expires 7d | jq -r '.url')
printf 'Shareable image: %s\n' "$SHARE_URL"

Keep share expiration as short as the collaboration requires.