Agile Cloud & AIACAI
ACAI PlatformEvidenceDocsPricing
Agile Cloud & AIACAI

Continuous compliance for AI. Every call scanned, classified, audit-logged, and evidence-ready.

Product

  • AI Layer
  • Sample Reports
  • Pricing
  • Documentation
  • Quickstart
  • Start Free

Company

  • About
  • Talk to an Engineer
  • Security
  • Support

Legal

  • Privacy Policy
  • Terms of Service
Service-Disabled Veteran-Owned Small Business
© 2026 Agile Cloud & AI LLC. All rights reserved.
OverviewQuick StartMigration GuideCompliance Quick StartNext Steps

User Guide

AuthenticationChat CompletionsEmbeddingsTranscriptionModelsGuardrailsRate LimitsError HandlingBYOK / Passthrough

Features

Batch APISemantic CacheRAGPromptsSmart RoutingRealtime APIAudit & Compliance

Developer

ArchitectureSelf-HostingAPI ReferenceInteractive DocsConfigurationContributing
Back to site

Video Generation

Generate videos with the OpenAI Videos API. Asynchronous: create a job, poll it, then download the result.

Endpoints

POST   https://api.agilecloud.ai/v1/videos               # Create a job (JSON or multipart)
GET    https://api.agilecloud.ai/v1/videos/:id           # Poll status
GET    https://api.agilecloud.ai/v1/videos/:id/content   # Download (?variant=video|thumbnail)
DELETE https://api.agilecloud.ai/v1/videos/:id           # Delete the job and its output

Jobs are private to the API key's account. Listing all videos and remix are not supported.

Create — Request Parameters

ParameterTypeRequiredDescription
modelstringYes*Model alias, e.g. wan2.2-t2v-a14b. *Always set it: the OpenAI default (sora-2) is not currently offered and returns 404.
promptstringYesText description of the video (up to 32,000 characters).
secondsstringNoClip length in whole seconds, e.g. "5" (1–60; each model enforces its own limit).
sizestringNoWIDTHxHEIGHT, e.g. 1280x720.
input_referencefile | objectNoStarting image for image-to-video. Send a file in multipart form data, or JSON {"image_url": "data:image/png;base64,..."}. Creative models accept uploads and base64 data URLs only — no remote URLs or file IDs.
lorastringNoCreative models only: the id of an ACAI-curated LoRA style adapter enabled for that model. Arbitrary adapters or URLs are not accepted.
lora_scalenumberNoAdapter strength, 0–2. Only valid with lora.

cURL Example

Create a job:

curl -X POST https://api.agilecloud.ai/v1/videos \
  -H "Authorization: Bearer $DIRECTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan2.2-t2v-a14b",
    "prompt": "A drone shot flying over a mountain lake at sunrise",
    "seconds": "5",
    "size": "1280x720"
  }'

Response

{
  "id": "video_abc123",
  "object": "video",
  "status": "queued",
  "model": "wan2.2-t2v-a14b"
}

Poll, then download when completed:

curl https://api.agilecloud.ai/v1/videos/video_abc123 \
  -H "Authorization: Bearer $DIRECTAI_API_KEY"

curl -o lake.mp4 https://api.agilecloud.ai/v1/videos/video_abc123/content \
  -H "Authorization: Bearer $DIRECTAI_API_KEY"

Python Example

import time
import httpx

BASE = "https://api.agilecloud.ai"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY"}

job = httpx.post(f"{BASE}/v1/videos", headers=HEADERS, json={
    "model": "wan2.2-t2v-a14b",
    "prompt": "A drone shot flying over a mountain lake at sunrise",
    "seconds": "5",
    "size": "1280x720",
}).raise_for_status().json()

while job["status"] in ("queued", "in_progress"):
    time.sleep(10)
    job = httpx.get(f"{BASE}/v1/videos/{job['id']}", headers=HEADERS).raise_for_status().json()

if job["status"] == "completed":
    video = httpx.get(f"{BASE}/v1/videos/{job['id']}/content", headers=HEADERS, timeout=120)
    with open("lake.mp4", "wb") as f:
        f.write(video.raise_for_status().content)
else:
    print("Failed:", job.get("error"))

Job Statuses

StatusDescription
queuedJob accepted, waiting for a GPU
in_progressVideo is being generated
completedReady — download from /content
failedGeneration failed — check the error field

Models

Video is currently offered on open-weight (Apache-2.0) creative models, which require creative access on your account — see Models. Sora and Sora 2 are not currently offered.

ModelDescription
wan2.2-t2v-a14bWan 2.2 text-to-video, 14B active parameters
wan2.2-i2v-a14bWan 2.2 image-to-video (requires input_reference)
wan2.2-ti2v-5bWan 2.2 text- or image-to-video, 5B (faster)

Notes

  • Creative models are screened by ACAI: the prompt and reference image before generation, and sampled frames on every download. Screening fails closed; a busy screener returns 503 with Retry-After. Sexual content involving minors or real, identifiable people is always blocked.
  • The spritesheet download variant is not available on creative models.
  • Usage is metered per second of generated video.
  • The legacy POST /v1/video/generations endpoint remains for existing integrations but does not serve creative models.
  • All requests are audit-logged.