Skip to content
Docs

Documentation

Create a generation

Create image, video and audio jobs with the Raywake generation endpoint using a valid quote, model input and an idempotency key.

POST/v1/generate

Holds the quoted credits and starts the generation. Requires generate.

Headers
NameTypeDescription
Idempotency-Keyrequiredstring
A unique value per intended generation, such as a UUID.
Body
NameTypeDescription
modelrequiredstring
The quoted model id.
inputrequiredobject
The exact input you quoted.
quote_idrequiredstring
A valid, unexpired quote for this model and input.
Query parameters
NameTypeDescription
waitboolean
Return when the job is terminal (up to about three minutes) instead of immediately.

Default: false

curl -s -X POST https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Idempotency-Key: YOUR-UUID" \
  -H "Content-Type: application/json" \
  -d '{"model":"nano-banana-pro","input":{"prompt":"A red ceramic cup on a wooden table, soft morning light","aspect_ratio":"1:1"},"quote_id":"QUOTE_ID"}'

Returns a job; see Jobs for its fields.