Generations
Start a generation
Generate a file with a selected model. A Brand ID scopes the request; pass a completed Brief to a supported model to include brand guidance and assets. Retrieve outputs with Get a generation.
post/generations
Request
- Base URLhttps://www.rainbrand.com/api/v1
- URLhttps://www.rainbrand.com/api/v1/generations
- Auth
- API key in header x-api-key
- or HTTP bearer
- or OAuth 2Authorization code: https://www.rainbrand.com/api/auth/oauth2/authorizeToken URL: https://www.rainbrand.com/api/auth/oauth2/token
Headers
idempotency-keystring
Optional key for safely retrying this request. Reuse it only with the same body to get the original generation back; use a new key for a new generation.
Request body
Example request
{
"brandSessionId": "e6220a5e-4a68-4d39-8bb9-5105e9a3a164",
"model": "openai/gpt-image-2.5-sunburst",
"input": {
"prompt": "Create a landscape launch image for Acme Inc. Atlas Pro. Center the product and include the headline \"Meet Atlas Pro\" and the call to action \"Explore Atlas Pro\".",
"size": "1536x1024"
},
"briefId": "657bcf79-1f2f-47fa-90f8-9245142980ed"
}Response
OK
Changes
No recorded changes to this operation across all 2 revisions of this API.