Creative Studio API

Generation endpoints use bring-your-own-key authentication. Send the Gemini key in X-API-Key; it is not persisted.

Example

curl -X POST -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"prompt":"A product on marble","tier":"balanced"}' \
  https://photogen.ashbi.ca/api/generate

Endpoints

MethodPathPurpose
GET/api/whoamiReport BYOK/server-key mode.
POST/api/validate-keyValidate a Gemini key without storing it.
POST/api/generateStart image generation and return a job ID.
GET/api/jobs/<job_id>Read an authenticated job result.
POST/api/compositePlace an uploaded product in a generated scene.
POST/api/exportExport an output using platform presets.
POST/api/qcEvaluate an output against the visual QC rubric.
POST/api/campaigns/<id>/bundlesCreate private exact channel deliverables.
GET/api/campaigns/<id>/bundles/<bundle_id>/downloadDownload an owner-scoped campaign ZIP.
GET/image/<path>Serve an immutable generated image.