images

Generate image

Make one image from a prompt, spending credits already in the account at the price quote_image names. Each request makes one image with its own image_generation_id. A reference_asset_id guides it with a picture from the library. Poll get_image every 2 to 5 seconds until it succeeds or fails; a failed image gives its credits back.

post/images

Request

  • Base URL: https://www.socialfaktory.com/v1
  • URL: https://www.socialfaktory.com/v1/images
  • Auth: HTTP bearer

Headers

Idempotency-Keystring required

Request body

brand_idstring

The brand this call belongs to. Required unless the token is pinned to a brand.

promptstring required
aspect'9:16' | '3:4' | '1:1' | '16:9'
reference_asset_idstring

Response

Generate image

image_generation_idstring required
statusstring required
credit_costinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.