web-app/netlify/generate

The stateless BYOK generation proxy (Netlify function). Receives {prompt, key, params}, will forward to the chosen hosted image API and poll for the result, and returns image URLs. Stores nothing, never logs the key. The hosted dispatch is a deliberate phase-2 stub today.

Description:
  • The stateless BYOK generation proxy (Netlify function). Receives {prompt, key, params}, will forward to the chosen hosted image API and poll for the result, and returns image URLs. Stores nothing, never logs the key. The hosted dispatch is a deliberate phase-2 stub today.

Source:

Members

(static, constant) handler

Description:
  • Netlify function entry: validate the request, then (phase 2) dispatch to the hosted provider. Currently returns a 501 stub.

Source:

Netlify function entry: validate the request, then (phase 2) dispatch to the hosted provider. Currently returns a 501 stub.

Methods

(inner) json(statusCode, obj) → {object}

Description:
  • Build a JSON HTTP response.

Source:
Parameters:
Name Type Description
statusCode number

The HTTP status.

obj object

The response body object.

Returns:

A Netlify {statusCode, headers, body} response.

Type
object