VideoImageAgentPricingAPI

Build on the finalgen API

One REST API for video and image generation. Credits are charged per model — the catalog below lists each model's exact cost.

Models

Live catalog served from GET /api/v1/models — the same source the in-app generator uses.

Pricing

Credits are charged per model — every model's exact cost is listed in the catalog above (server-side single source, same as GET /api/v1/models).

Playground

An interactive playground is on the roadmap — for now, try the API from your terminal with the examples below.

⚡ Playground — coming with the public API keys release

Examples

curl

curl -X POST https://finalgen.ai/api/v1/generations \
  -H "Content-Type: application/json" \
  -b "finalgen_session=<your session cookie>" \
  -d '{
    "modality": "video",
    "mode": "text",
    "prompt": "A drone shot over neon city rooftops at dusk",
    "model": "glm-5.3",
    "params": { "resolution": "720p", "duration": 5, "aspectRatio": "16:9", "seed": 42 }
  }'

TypeScript

const res = await fetch("https://finalgen.ai/api/v1/generations", {
  method: "POST",
  credentials: "include",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    modality: "video",
    mode: "text",
    prompt: "A drone shot over neon city rooftops at dusk",
    model: "glm-5.3",
    params: { resolution: "720p", duration: 5, aspectRatio: "16:9", seed: 42 },
  }),
});

const { jobId } = await res.json(); // 202 -> poll /api/v1/generations/:id

Endpoints