Skip to main content
POST
/
api
/
v1
/
ai
/
images
Generate images from prompt
curl --request POST \
  --url https://api.oryntai.xyz/api/v1/ai/images \
  --header 'Content-Type: application/json' \
  --header 'X-Network: <x-network>' \
  --data '
{
  "model": "dall-e-3",
  "prompt": "A futuristic cityscape at sunset",
  "n": 1,
  "size": "512x512",
  "options": {}
}
'
{
  "model": "dall-e-3",
  "images": [
    "https://example.com/image1.png"
  ]
}

Headers

X-Network
string
required

Blockchain network to use (e.g., solana, solana-devnet, base, polygon)

X-PAYMENT
string

On-chain payment proof for HTTP 402 requests

Body

application/json
model
string
required

Image generation model

Example:

"dall-e-3"

prompt
string
required

Prompt for image generation

Example:

"A futuristic cityscape at sunset"

n
number

Number of images to generate

Required range: x >= 1
Example:

1

size
string

Image size

Example:

"512x512"

options
object

Provider-specific options

Response

Generated images