llm.video/v1

A model makes a video from a prompt (and a first frame). Like music, it's a job. Every call names its model as provider/model: a provider the app's admins added in Settings → LLM, a slash, and that provider's own id for the model. Shared types (File, Usage, ModelInfo, Job, the errors) are in pocketone.dev/ext/contracts/llm.

A wire contract at /api/_c/llm.video/v1 (video.go), one provider. The llm extension provides it, over Vultr, Cloudflare Workers AI, OpenRouter and any OpenAI-compatible API.

Use

In page code it's $llm.video (bound by the llm extension):

const job = await $llm.video.createAsync({ model: "vultr/<video model>", prompt: "waves at a lighthouse", seconds: 5 })
// later
const now = await $llm.video.getAsync(job.id)
if (now.status === "done") record.set("clip", $llm.file(await $llm.video.contentAsync(now.id, 0)))

Over HTTP (a superuser, or a token with the scope shown):

Operation HTTP Body Token scope
Create POST /api/_c/llm.video/v1/create {"model": "...", "prompt": "...", "image": File, "seconds": 5, "aspectRatio": "16:9", "wait": ""} llm
Get POST /api/_c/llm.video/v1/get {"id": "..."} llm:read
Content POST /api/_c/llm.video/v1/content {"id": "...", "index": 0} llm:read
Models GET /api/_c/llm.video/v1/models ?provider= (optional) llm:read

The job is the same as llm.music/v1's.

Errors: not_configured (no providers), unknown_model, not_supported, provider (the cloud's own error), timeout.

From Go: videov1.Contract.Must(app) (from pocketone.dev/ext/contracts/llm/video/v1).

Provide

Implement videov1.Video and provide it in Register (videov1.Contract.Provide(app, impl)). Route on the provider/ prefix, answer not_supported for a provider that can't do this kind, unknown_model for a missing model or provider, and provider with the cloud's own message (never its key) when the cloud refuses. Fill model with the full provider/model that answered, and usage with what the provider reports.

Commands and APIs

Every operation is a REST endpoint, a pocketone command and an MCP tool, all generated from the contract and behind the same token scope check and hooks. See Remote CLI, or the full CLI, Extension APIs and MCP references.

create

Starts making a video. With Wait it returns once the job is done (or failed); otherwise at once, to follow with Get. A done job lists how many files it made (Outputs); Content fetches each.

REST POST /api/_c/llm.video/v1/create
CLI pocketone remote llm video create --model <value> --prompt <value> --image <json> --seconds <n> --size <value> --aspectratio <value> --wait <value> --options <json>
MCP llm_video_create
Token scope llm
Input field Flag Type
model --model string
prompt --prompt string
image --image json
seconds --seconds float
size --size string
aspectRatio --aspectratio string
wait --wait string
options --options json

get

Says how a job is going.

REST POST /api/_c/llm.video/v1/get
CLI pocketone remote llm video get --id <value>
MCP llm_video_get
Token scope llm:read
Input field Flag Type
id --id string

content

Fetches one of a done job's files.

REST POST /api/_c/llm.video/v1/content
CLI pocketone remote llm video content --id <value> --index <n>
MCP llm_video_content
Token scope llm:read
Input field Flag Type
id --id string
index --index int

models

Lists the video models of every provider in Settings → LLM.

REST GET /api/_c/llm.video/v1/models
CLI pocketone remote llm video models --provider <value>
MCP llm_video_models
Token scope llm:read
Input field Flag Type
provider --provider string

Extensions

Extension
llm provides

License

MIT