Request sequence
Authenticate every request with your NoveaDream key. Upload images (skip for text-only generation), quote the complete body, submit with quote_id, retain the generation ID, and query results. There is no parameters wrapper here.
curl --fail-with-body 'https://noveadream.com/v1/nai/capabilities' \
-H "Authorization: Bearer $NOVEA_API_KEY"1. Upload assets
curl --fail-with-body https://noveadream.com/v1/nai/assets \
-H "Authorization: Bearer $NOVEA_API_KEY" \
-F "file=@reference.png"Use data.id from the response. Upload source and mask separately; subsequent requests must use assets owned by the same account.
2. Save request.json and obtain a quote
This is a complete V4.5 Precise Reference request. Replace 123 with the uploaded data.id; omit references for text-only generation. For V5 use model_variant: nai-diffusion-5-full and omit references; model remains nai-v4.5.
{
"model": "nai-v4.5",
"model_variant": "nai-diffusion-4-5-full",
"prompt": "watercolor, an adult traveler in a blue coat",
"negative_prompt": "lowres, blurry",
"width": 832,
"height": 1216,
"steps": 23,
"count": 1,
"seed": 42,
"guidance": 5,
"sampler": "k_euler_ancestral",
"quality_tags": false,
"references": [
{
"asset_id": 123,
"role": "precise",
"description": "character",
"strength": 1,
"fidelity": 0.7,
"information_extracted": 1
}
]
}curl --fail-with-body 'https://noveadream.com/v1/nai/estimate' \
-H "Authorization: Bearer $NOVEA_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H "Idempotency-Key: $REQUEST_ID" \
--data-binary @request.jsondata.quote_id is the quote ID. Quotes expire; obtain a new one after changing inputs or parameters.
3. Submit generation
Keep every field from request.json and add quote_id and client_request_id at the top level; save as submit.json. Replace QUOTE_ID with the returned quote. Generate a unique client_request_id and keep it unchanged when retrying.
{
"model": "nai-v4.5",
"model_variant": "nai-diffusion-4-5-full",
"prompt": "watercolor, an adult traveler in a blue coat",
"negative_prompt": "lowres, blurry",
"width": 832,
"height": 1216,
"steps": 23,
"count": 1,
"seed": 42,
"guidance": 5,
"sampler": "k_euler_ancestral",
"quality_tags": false,
"references": [
{
"asset_id": 123,
"role": "precise",
"description": "character",
"strength": 1,
"fidelity": 0.7,
"information_extracted": 1
}
],
"quote_id": "QUOTE_ID",
"client_request_id": "YOUR_UNIQUE_REQUEST_ID"
}curl --fail-with-body 'https://noveadream.com/v1/nai/generations' \
-H "Authorization: Bearer $NOVEA_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H "Idempotency-Key: $REQUEST_ID" \
--data-binary @submit.jsonSave data.generation_id from the response as GENERATION_ID for subsequent GET requests.
4. Query or follow the same task
curl --fail-with-body 'https://noveadream.com/v1/nai/generations/GENERATION_ID' \
-H "Authorization: Bearer $NOVEA_API_KEY"curl -N https://noveadream.com/v1/nai/generations/GENERATION_ID/events \
-H "Authorization: Bearer $NOVEA_API_KEY"To receive SSE from submission, use /v1/nai/generations/stream in step 3 with curl -N. Handle queued, preview, done, error, and keepalive events. V5 has no upstream step previews; a missing preview event does not mean failure. Reconnect using the existing generation ID instead of creating another task.