Skip to main content
POST
/
images
curl -X POST https://api.neuraldraft.io/v1/images \
  -H "Authorization: Bearer ndsk_live_yourkey" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"Serene yoga studio at dawn","style":"photorealistic","aspect_ratio":"16:9","key":"hero.background"}'
{
  "data": {
    "key": "hero.background",
    "url": "https://cdn.neuraldraft.io/prj_2NfQmBcKpXY8/hero-background-89hf.jpg",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "width": 2048,
    "height": 1152,
    "bytes": 482911,
    "mime_type": "image/jpeg",
    "generated": true
  }
}

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.

Body

prompt
string
required
Example:

"A serene yoga studio at dawn, soft sage and linen tones, no people"

style
string
Example:

"photorealistic"

aspect_ratio
enum<string>
default:16:9
Available options:
1:1,
16:9,
9:16,
4:5,
4:3,
3:2
key
string

Optional. If provided, the image is also addressable by this key.

Example:

"hero.background"

Response

Image uploaded (multipart mode).

data
object