API-First Image Generation: A Practical Playbook for AI Agents