Skip to main content
PUT
/
images
/
{key}
cURL (upload)
curl -X PUT https://api.neuraldraft.io/v1/images/hero.background \
  -H "Authorization: Bearer ndsk_live_yourkey" \
  -F "file=@hero.jpg"
{
  "key": "hero.background",
  "url": "https://cdn.neuraldraft.io/prj_2NfQmBcKpXY8/hero-background-89hf.jpg",
  "width": 2048,
  "height": 1152,
  "bytes": 482911,
  "mime_type": "image/jpeg",
  "generated": true,
  "created_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.neuraldraft.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Project API key. Pass as Authorization: Bearer ndsk_live_.... Manage keys via /projects/me/api-keys. Test-mode keys use the ndsk_test_ prefix.

Path Parameters

key
string
required

Image key (any URL-safe identifier).

Example:

"hero.background"

Body

file
file
required

Image file (JPEG, PNG, WebP). Max 10MB.

Response

Image replaced (upload mode).

key
string
required
Example:

"hero.background"

url
string<uri>
required
Example:

"https://cdn.neuraldraft.io/prj_2NfQmBcKpXY8/hero-background-89hf.jpg"

width
integer
Example:

2048

height
integer
Example:

1152

bytes
integer
Example:

482911

mime_type
string
Example:

"image/jpeg"

generated
boolean

True if produced by AI generation; false if uploaded.

Example:

true

created_at
string<date-time>