Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

NovelAI image generation Request Body. The unified reference image uses images; the gateway is responsible for converting to model parameters.

model
string
required

Required. Use a model ID or available alias returned by Get Models.

Minimum string length: 1
Examples:

"diffusion-4-5-full"

"diffusion-4-5-curated"

prompt
string
required

Required. Describe the image to generate.

Required string length: 1 - 32000
images
object[]

Optional reference images for image-to-image generation. Omit for text-to-image generation. Image limits depend on the selected model.

Maximum array length: 16
negative_prompt
string

Negative cue words.

n
integer
default:1

Number of generated images. Allowed counts depend on the selected model.

Required range: 1 <= x <= 4
size
string
default:1024x1024

Output size as WIDTHxHEIGHT, or auto for the model default. Supported sizes depend on the selected model.

Pattern: ^[1-9][0-9]*x[1-9][0-9]*$
seed

Random seed.

steps
integer
default:23

Number of sampling steps.

Required range: x >= 1
scale
number
default:5

Cue words guide intensity.

quality_toggle
boolean
default:true

Quality switch.

sampler
enum<string>
default:Euler Ancestral
Available options:
Euler Ancestral,
Euler,
DPM++ 2S Ancestral,
DPM++ 2M SDE,
DPM++ 2M,
DPM++ SDE
noise_schedule
enum<string>
default:karras
Available options:
karras,
exponential,
polyexponential
character_prompts
object[]
response_format
enum<string>
default:url

Response format: url returns image URLs; b64_json returns Base64 image data.

Available options:
b64_json,
url

Response

200 - application/json
created
integer
required

The Unix timestamp (in seconds) when the gateway completed image conversion.

data
object[]
required

Generated image list.

Minimum array length: 1
background
enum<string>

Background settings inferred from unified inbound requests; NovelAI raw responses are typically not echoed.

Available options:
transparent,
opaque
output_format
enum<string>

The format inferred from the downloaded image MIME type or request output_format.

Available options:
png,
jpeg,
webp
quality
enum<string>

Unified quality field; if quality is requested, the gateway will map and echo it.

Available options:
low,
medium,
high
size
string

The size of the original request; NovelAI's original response is usually not echoed.