Capabilities

Video and image generation

Generate video (/v1/videos/generations) and images (/v1/images/generations) from text prompts. Generation runs asynchronously: you get a job id back in milliseconds, poll for completion, then download the file. The exact dollar cost is known and charged before the job starts — no surprises on the invoice.

1. How a job works

A 5-second clip takes 1–3 minutes upstream (premium models can take longer), far past any sane HTTP timeout — so nothing holds a connection open. Three requests, start to finish:

  1. Submit — POST /v1/videos/generations validates your parameters, quotes the exact cost, charges your balance, and returns 202 with a job id.
  2. Poll — GET /v1/videos/generations/:id reports queued → running → succeeded (or failed, which refunds you automatically). Poll every 5–10 seconds.
  3. Download — GET /v1/videos/generations/:id/content streams the finished MP4 (or image file) with correct Content-Type. Re-download as often as you like for 30 days at no extra charge.
cURL — submit, poll, download
# 1. Submit (returns immediately)
curl https://api.nicrron.ai/v1/videos/generations \
  -H "Authorization: Bearer $NICRRON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "bytedance/seedance-2.0",
    "prompt": "A cozy jazz cafe at night, rain on the window",
    "duration": 4,
    "resolution": "720p"
  }'
# -> 202 { "id": "vid-2f56b1de-...", "object": "video.generation",
#          "status": "queued", "cost": 1.2852, "billing_units": 4 }

# 2. Poll until status is "succeeded"
curl https://api.nicrron.ai/v1/videos/generations/vid-2f56b1de-... \
  -H "Authorization: Bearer $NICRRON_API_KEY"
# -> { "status": "succeeded", "content_url": "/v1/videos/generations/vid-.../content",
#      "file_size": 2003164, "completed_at": "2026-08-30T22:13:39.000Z" }

# 3. Download the video
curl -o cafe.mp4 \
  https://api.nicrron.ai/v1/videos/generations/vid-2f56b1de-.../content \
  -H "Authorization: Bearer $NICRRON_API_KEY"
TypeScript — full polling helper
const BASE = "https://api.nicrron.ai";
const headers = {
  Authorization: `Bearer ${process.env.NICRRON_API_KEY}`,
  "Content-Type": "application/json",
};

async function generateVideo(body: object): Promise<ArrayBuffer> {
  const submit = await fetch(`${BASE}/v1/videos/generations`, {
    method: "POST", headers, body: JSON.stringify(body),
  });
  if (submit.status !== 202) throw new Error(await submit.text());
  const { id, cost } = await submit.json();
  console.log(`Job ${id} queued — charged $${cost}`);

  for (;;) {
    await new Promise((r) => setTimeout(r, 5000));
    const poll = await fetch(`${BASE}/v1/videos/generations/${id}`, { headers });
    const job = await poll.json();
    if (job.status === "succeeded") break;
    if (job.status === "failed") throw new Error(job.error); // already refunded
  }

  const file = await fetch(`${BASE}/v1/videos/generations/${id}/content`, { headers });
  return file.arrayBuffer();
}

const mp4 = await generateVideo({
  model: "google/gemini-omni-1.1-flash",
  prompt: "Golden retriever surfing a wave at sunset",
  duration: 8,
});

2. Video models and their parameters

Every model validates its own constraints at submit time — an unsupported duration or resolution returns a 400 listing what the model accepts, before anything is charged. Omitting model defaults to bytedance/seedance-1.0-pro.

ModelPriceDuration (s)ResolutionAspect RatiosAudio
google/gemini-omni-1.2-flash$0.0819/s (720p), $0.1229/s (1080p)3–15720p, 1080p16:9, 9:16Native, always on (included in price)
google/gemini-omni-1.1-flash$0.10/s (720p), $0.15/s (1080p)3–10720p, 1080p16:9, 9:16Native, always on (included in price)
kling/v3-pro$0.112/s ($0.168/s with audio)3–15— (set by the model)16:9, 9:16, 1:1Optional (generate_audio: true)
kling/o3-pro$0.112/s ($0.14/s with audio)3–15— (set by the model)16:9, 9:16, 1:1Optional (generate_audio: true)
kling/o3-standard$0.084/s ($0.112/s with audio)3–15— (set by the model)16:9, 9:16, 1:1Optional (generate_audio: true)
kling/v3-4k$0.42/s3–154K (fixed)16:9, 9:16, 1:1Native, on by default (included in price)
pixverse/v6-max$0.099/s 720p, $0.198/s 1080p (+audio: $0.135, $0.252)2–15720p, 1080p21:9, 16:9, 4:3, 1:1, 3:4, 9:16Optional (generate_audio: true)
pixverse/v6$0.045/s 720p, $0.09/s 1080p (+audio: $0.06, $0.115)2–15720p, 1080p21:9, 16:9, 4:3, 1:1, 3:4, 9:16Optional (generate_audio: true)
minimax/h3-max$0.05/s 480p, $0.16/s 1080p, billed for one extra second2–15480p, 1080p21:9, 16:9, 4:3, 1:1, 3:4, 9:16Native, always on (included in price)
minimax/h3-max-turbo$0.025/s 480p, $0.08/s 1080p, billed for one extra second2–15480p, 1080p21:9, 16:9, 4:3, 1:1, 3:4, 9:16Native, always on (included in price)
black-forest-labs/flux-3-max-video$0.17/s (720p), $0.29/s (1080p)5–20720p, 1080p21:9, 16:9, 4:3, 1:1, 3:4, 9:16Native, on by default (included in price)
alibaba/wan-3.0$0.05/s (480p), $0.10/s (720p), $0.20/s (1080p)2–30480p, 720p, 1080p16:9, 4:3, 1:1, 3:4, 9:16Native, on by default (included in price)
xai/grok-imagine-video-1.5$0.08/s (480p), $0.14/s (720p), $0.25/s (1080p)2–15480p, 720p, 1080p16:9, 4:3, 1:1, 3:4, 9:16—
bytedance/seedance-2.5-flash$0.136/s (480p), $0.306/s (720p)4–30480p, 720p21:9, 16:9, 4:3, 1:1, 3:4, 9:16Native, on by default (included in price)
bytedance/seedance-2.5$0.22/s (480p), $0.48/s (720p)4–30480p, 720p21:9, 16:9, 4:3, 1:1, 3:4, 9:16Native, on by default (included in price)
bytedance/seedance-2.0$0.31/s (720p), $0.69/s (1080p)4–15720p, 1080p21:9, 16:9, 4:3, 1:1, 3:4, 9:16Native, on by default (included in price)
bytedance/seedance-1.0-pro$2.5/1M video tokens (~$0.62 per 1080p 5s)2–12480p, 720p, 1080p21:9, 16:9, 4:3, 1:1, 3:4, 9:16—
google/veo-3.1
Retires 2026-11-17
$0.20/s ($0.40/s with audio)4, 6, or 8720p, 1080p16:9, 9:16Optional (generate_audio: true)
google/veo-3.1-fast
Retires 2026-11-17
$0.10/s ($0.15/s with audio)4, 6, or 8720p, 1080p16:9, 9:16Optional (generate_audio: true)
google/veo-3.1-lite
Retires 2026-11-17
$0.03/s 720p, $0.05/s 1080p (+audio: $0.05, $0.08)4, 6, or 8720p, 1080p16:9, 9:16Optional (generate_audio: true)
kling/v2.5-turbo-pro$0.07/s5 or 101080p (fixed)16:9, 9:16, 1:1—
minimax/hailuo-02-pro$0.48/video6 (fixed)1080p (fixed)— (prompt only)—
  • Cheapest test run: kling/v2.5-turbo-pro at 5s ≈ $0.37 — great for iterating on prompts before a premium render.
  • Veo 3.1 retires on 2026-11-17. fal stops serving it that day; from then a Veo request returns a 400 naming its successor, google/gemini-omni-1.1-flash, which Google lists as the replacement. Omni always includes audio, takes 3–10 second clips and has no seed.
  • Newest, longest clips: bytedance/seedance-2.5 — up to 30 seconds with native audio, at 480p or 720p.
  • Best quality with sound: bytedance/seedance-2.0 — native synchronized audio (ambient sound, music, effects) at no extra cost.
  • MiniMax H3 Max: clips can run up to about 0.7 seconds past the length you ask for, so the price includes one extra second.
  • seed is supported by Seedance 1.0, Veo, Wan 3.0, PixVerse V6, MiniMax H3 Max and FLUX 3 Max; camera_fixed by Seedance 1.0 only. Passing a parameter a model doesn't support returns a 400 rather than being silently dropped.
  • Prices shown are list rates; the exact all-in charge for your parameters is returned as cost in the 202 response — that number is authoritative.

3. Image generation

Images use the same job API at /v1/images/generations and usually finish in seconds. Flat per-image pricing; prompt and optional seed are the only parameters (FLUX 3, GPT Image 2.5, Seedream 5 and Recraft don't take a seed). Omitting model defaults to google/nano-banana.

ModelUnderlying ModelPrice
google/nano-bananaGemini 2.5 Flash Image$0.039/image
google/nano-banana-proGemini 3 Pro Image$0.15/image
google/nano-banana-2Gemini 3.1 Flash Image$0.08/image
google/nano-banana-2.1Nano Banana 2.1 (1K, minimal thinking)$0.05/image
google/nano-banana-2-liteGemini 3.1 Flash Lite Image (1K)$0.05/image
black-forest-labs/flux-3FLUX 3 (1 megapixel)$0.048/image
qwen/qwen-image-3Qwen Image 3 (1024×1024)$0.04/image
ideogram/ideogram-4.6Ideogram 4.6 (medium quality, 1024×1024)$0.06/image
ideogram/ideogram-4.5Ideogram 4.5 (medium quality, 1024×1024)$0.06/image
openai/gpt-image-2.5GPT Image 2.5 Flare (high quality, 1024×1024)$0.06/image
bytedance/seedream-5.5Seedream 5.5 (2K)$0.0405/image
kling/image-v4Kling Image 4.0 (2K; 21:9, 16:9, 3:2, 4:3, 1:1, 3:4, 2:3, 9:16)$0.063/image
bytedance/seedream-5-flashSeedream 5 Flash (2K)$0.027/image
bytedance/seedream-5-liteSeedream 5 Lite (2K)$0.035/image
recraft/recraft-v4.1Recraft V4.1 (1024×1024)$0.035/image
cURL — generate an image
curl https://api.nicrron.ai/v1/images/generations \
  -H "Authorization: Bearer $NICRRON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/nano-banana",
    "prompt": "Isometric pixel-art coffee shop, warm palette"
  }'
# -> 202 { "id": "vid-...", "object": "image.generation", "cost": 0.041, ... }
# Poll GET /v1/images/generations/:id, then download :id/content

4. Billing: charged upfront, refunded on failure

  • Media pricing is deterministic from your parameters, so the full cost is computed and charged at submit. If your balance can't cover it, the submit returns 402 with the exact price and nothing is charged.
  • If generation fails for any reason — upstream error, content rejection, timeout — the job flips to failed and the full amount is automatically refunded to your balance. Exactly-once, ledger-backed.
  • Polling and downloading are free, and every generation appears in your dashboard logs with its cost.

5. Kept for 30 days

Finished videos and images are stored on Nicrron infrastructure for 30 days and can be re-downloaded any number of times without re-paying. After 30 days the file and its prompt are permanently deleted, the job status becomes expired, and the content route returns 410. Media generation is therefore an exception to the rule that chat prompts are never stored — see the privacy documentation for the exact retention terms.

6. Statuses and errors

Code / StatusMeaning
queued → running → succeededThe happy path. succeeded adds content_url and file_size.
failedGeneration failed upstream; error explains why and the charge was refunded.
expiredMore than 30 days old; the output was deleted.
400Invalid parameters — the message lists what the model supports. Nothing charged.
402Insufficient credits for the quoted cost. Nothing charged.
404Unknown model, or a job id that isn't yours.
409Content requested before the job finished — keep polling.
410Content requested after the 30-day retention window.