Skip to main content
POST

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