Downloadable documentation
Documentation index
llms.txtFull documentation (for AI)llms-full.txtNAI OpenAPI 3.1 Schemaopenapi-nai.jsonRequest examples (JSON)examples.jsonHTML, Markdown and full-text indexes are generated from the same source. Fields describe the documented subset; account access remains determined by API responses.
Copy for your coding assistant
Read https://noveadream.com/developers/en/llms-full.txt and https://noveadream.com/developers/openapi-nai.json first.
Use https://noveadream.com and my site API key (sk-...) from an environment variable via Authorization: Bearer.
- NAI Image Generation (NovelAI compatible, recommended): POST https://noveadream.com/ai/generate-image (NO /v1 prefix). Top-level keys: input, model (exact ID e.g. "nai-diffusion-5-full" or "nai-diffusion-4-5-full", NEVER "nai-v4.5" or "nai-v5"), action ("generate" | "img2img" | "infill"), parameters (width, height, steps, n_samples, scale, sampler, negative_prompt). Unknown keys or null values return HTTP 400 (omit seed for random seed).
- NAI Response: Success status is HTTP 201 Created (check 200 <= status < 300, NOT status == 200). Send Accept: application/json to receive {"images": [{"image": "<raw_base64_png>", "index": 0, "seed": 42}]}, or omit Accept to receive standard NovelAI application/zip (image_0.png). Error JSON is {"statusCode": 400, "message": "..."}.
- NAI Multi-Character & Precise Reference: Characters go in parameters.v4_prompt & v4_negative_prompt. Precise Reference uses the 5 equal-length director_reference_* arrays (V4.5 max 4; V5 max 8 with director_reference_secondary_strength_values = [0] and director_reference_information_extracted = [1]).
- Other Models: Standard Images use POST /v1/images/generations; Video uses POST /v1/videos then GET /v1/videos/{id}.
Reuse the exact same Idempotency-Key ONLY when retrying an identical timed-out request. Never log API keys.