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.
| Name | Type | Description |
|---|---|---|
Idempotency-Keyrequired | string | A unique value per intended generation, such as a UUID. |
| Name | Type | Description |
|---|---|---|
modelrequired | string | The quoted model id. |
inputrequired | object | The exact input you quoted. |
quote_idrequired | string | A valid, unexpired quote for this model and input. |
| Name | Type | Description |
|---|---|---|
wait | boolean | Return when the job is terminal (up to about three minutes) instead of immediately. |
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.