Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
recipe
string
required

Name of the recipe to apply

url
string

Source image url. Required for every recipe but the generate ones (background), which read only the prompt.

refresh
boolean

Derive from what the origin serves now rather than answering with the asset already in the shared store

prompt
string

Generation prompt, for recipes that generate their asset (background). It alone is the derived identifier.

frame
string

Identifier of the stored frame a useSources generation is conditioned on. The caller stored it; this peer only reads it, so asking to render one it cannot find fails the derivation rather than producing an unconditioned background.

variant
string

A regenerate nonce, part of the generation fingerprint on the caller's side too: the peer derives under the same identifier the caller would.

size
number

Edge of the square an unconditioned generation runs at. Part of the identifier on the caller's side too, so the peer derives the same asset the caller already named.

Response

200 - application/json

Ok

status
enum<string>
required
Available options:
success
program
string
required
version
string
required
datetime
string
required
message
string
required
data
object
required
code
number