Submit an image-generation request. The caller's prompt is treated as a creative brief: Atria expands it into size distinct concept variants and renders one image per variant. size > 1 returns real creative variety, not seed-jittered copies of the same prompt.
Treat prompt as a directional brief (intent, audience, mood, visual hints), not the final image-model prompt — Atria produces the per-variant prompts internally.
Async. Returns immediately with a generation_id and (initially empty) image_ids. Poll GET /open/v1/image-generations/{generation_id} to pick up image ids and track status; see that endpoint for cadence guidance.
Brand required. brand_id must reference a workspace-owned brand from GET /open/v1/owned-brands. The brand's logo / colors / product context grounds the brief — there is no placeholder fallback. Cross-workspace brand ids return code=40401.
Idempotency. idempotency_key deduplicates retries — re-submitting the same key from the same workspace returns the same generation_id and never produces a duplicate charge. Pick a stable UUID per attempt; reuse only to recover from a dropped response.
Credits. Charged at the same rate as the in-app image generation feature — trigger one image in Atria's web app to see the current per-image credit cost; size multiplies it. Credits are reserved on submit; per-image failures are auto-refunded.
Errors: code=40001 when workspace context is missing from the request; code=40401 for unknown / cross-workspace brand_id; code=50001 when the upstream image-gen service is unavailable, returns an error envelope, or rejects the submit (including credit-exhaustion at the upstream layer).
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
