Builder

Make a picture with AI from a description (Build Credits); only where AI pictures are configured

post/builder/sessions/{sessionId}/assets/generate

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/builder/sessions/{sessionId}/assets/generate
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

sessionIdstring uuid required

Request body

promptstring required
altstring
shape'square' | 'landscape' | 'portrait'

Response

Stored

uploadIdstring uuid required
srcstring required

The picture's address on the site, e.g. /assets/team-3f2a9c1d.webp

widthinteger required
heightinteger required
altstring nullable required
source'upload' | 'openverse' | 'ai' required
licenseobject nullable required
createdAtstring required

ISO-8601 timestamp

Changes

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