curl
Smallest complete request
curl https://claudeimagine.com/api/v1/images/generations \
-H "Authorization: Bearer $CLAUDEIMAGINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-image-2","prompt":"minimal editorial poster of a glass greenhouse at dawn","aspect_ratio":"4:3"}'A bearer header and JSON prompt are required. model defaults to nano-banana-2 and aspect_ratio is optional, so an even smaller request can send only the prompt.
