Developer API

Build with Nexora API

Generate images, videos and directed scenes programmatically. Pay-per-use pricing starting at $0.80 per generation. No commitments.

Pay Per Use

No subscription required. Only pay for what you generate. Top up your wallet anytime.

Secure Keys

SHA-256 hashed API keys with scope control, monthly quotas, and instant revocation.

Simple Billing

Pre-paid wallet system. Buy credits, track usage in real-time from your dashboard.

Authentication

All API requests must include your API key in the Authorization header as a Bearer token, or in the x-api-key header.

Authorization: Bearer nx_live_YOUR_API_KEY
# or
x-api-key: nx_live_YOUR_API_KEY
⚠️

Your API key is shown only once when created. Store it securely. If lost, revoke it and create a new one from the API Dashboard.

Endpoints

POST/api/v1/image/generate

Generate an image from a text prompt.

Request Body

{
  "prompt": "A cinematic product photo of premium headphones on marble",
  "model": "nano-banana-2",
  "size": "1024x1024"
}

Response (200 OK)

{
  "imageUrl": "https://fal.media/files/…/generated.webp",
  "model": "nano-banana-2",
  "enhancedPrompt": "…"
}

Error Codes

401Missing or invalid API key
402Insufficient API balance
403API key scope not allowed
429Monthly quota exceeded or rate limited
500Server error

Code Examples

cURL

curl -X POST https://getnexorai.com/api/v1/image/generate \
  -H "Authorization: Bearer nx_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "A cinematic product photo of premium headphones on marble",
  "model": "nano-banana-2",
  "size": "1024x1024"
}'

Python

import requests

response = requests.post(
    "https://getnexorai.com/api/v1/image/generate",
    headers={
        "Authorization": "Bearer nx_live_YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={
    "prompt": "A cinematic product photo of premium headphones on marble",
    "model": "nano-banana-2",
    "size": "1024x1024"
},
)

data = response.json()
print(data["imageUrl"])

JavaScript / Node.js

const response = await fetch("https://getnexorai.com/api/v1/image/generate", {
  method: "POST",
  headers: {
    "Authorization": "Bearer nx_live_YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "prompt": "A cinematic product photo of premium headphones on marble",
    "model": "nano-banana-2",
    "size": "1024x1024"
}),
});

const data = await response.json();
console.log(data.imageUrl);

API Pricing

Pay-per-use. Pre-pay wallet (minimum $10). All prices per generation call.

ModelTypeCost / Call
nano-banana-2Image$0.80
recraft-v3Image$1.00
dall-e-3Image$1.50
google-veo-3Video$2.50
kling-3Video$2.50
seedance-2Video$2.50
sora-2Video$2.50
dop-liteDirector$2.50
dop-previewDirector$3.00
dop-turboDirector$3.50

Ready to build?

Create your API key, top up your wallet, and start generating in minutes.