1. Receive prompt and optional input images.
2. Validate API key and environment.
3. Execute the `generate_image.py` script with provided arguments.
4. Handle potential errors (API key, `uv` command, authentication).
5. Retry transient errors (HTTP 429, timeouts) once.
6. Save the generated or edited image(s) to the specified filename.
7. Print the path(s) of the saved image(s) to the console.