Image generation and edits
Generate or edit images with GetRun image models.
Generate an image
POST /v1/images/generations accepts JSON and a public image model name.
curl "$GETRUN_BASE_URL/images/generations" \
-H "Authorization: Bearer $GETRUN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"YOUR_IMAGE_MODEL","prompt":"A lighthouse at dawn"}'Edit an image
POST /v1/images/edits accepts multipart/form-data. Let the HTTP client generate the multipart boundary; setting it manually can produce a body the server cannot parse.
curl "$GETRUN_BASE_URL/images/edits" \
-H "Authorization: Bearer $GETRUN_API_KEY" \
-F "model=YOUR_IMAGE_MODEL" \
-F "prompt=Replace the background with a white studio" \
-F "image=@product.png"Available fields and output formats depend on the selected image model. Save the returned image or URL after receiving the result.