videos

Enhance a video prompt from optional multimodal context

Create an asynchronous text-only prompt-enhancement task. Successful tasks are charged after completion from actual input and output tokens; this call does not generate a video. The compatibility model field is ignored.

post/v1/videos/prompts/enhance

Request

  • Base URL
    https://api.beatra.ai (the document declares no server; this is the origin it was published from)
  • Auth
    none declared. Required headers: Idempotency-Key

Headers

x-request-id, string nullable
Idempotency-Key, string required
authorization, string nullable

Request body

VideoPromptEnhancementRequest required

Model-neutral multimodal context for one enhanced video prompt.

metadata, object nullable

Caller-supplied metadata; ≤16 keys, key ≤64 chars, value ≤512 chars

callback_url, string nullable

HTTPS URL beatra will POST the final Task envelope to when the Task reaches a terminal state

callback_signing_key_id, string nullable

Optional standalone callback signing key. Omit for unsigned callback delivery; requires callback_url when provided.

model, string

Compatibility input only. Its value and type are ignored in the first release; Beatra resolves the available prompt-enhancement model internally.

prompt, string required

Required creative intent to expand into a production-ready video prompt.

duration, integer required

Target video duration in integer seconds.

aspect_ratio, 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16' required

Target video aspect ratio. Text-only requests cannot use adaptive.

first_frame, union

Optional strict first-frame context image.

last_frame, union

Optional strict last-frame context image.

references, VideoReference[]

Optional ordered image, video, or audio context. Reference mode and strict-frame mode are mutually exclusive.

Response

Task accepted

TaskEnvelope required

Standard Task envelope.

Returned by every async-creation endpoint, GET /v1/tasks/{id}, and the body of customer callback POSTs.

object, 'task'
task_id, string required
status, 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled' required
capability, string required
workload_type, 'model' | 'social_operation'
model, string nullable

Caller-requested model verbatim (may be 'auto'). Null for social_operation tasks.

resolved_model, string nullable

Actual model that ran (null until execution starts; equals model for explicit-model calls)

model_selection_reason, unknown
social, SocialTaskIdentity nullable
metadata, object nullable
input, object nullable
progress, AppApiV1SchemasCommonTaskProgress nullable
output, object nullable
warnings, TaskWarning[]
error, AppApiV1SchemasCommonTaskError nullable
usage, UsageObject nullable
billing, TaskBilling nullable
callback, TaskCallback nullable
created_at, string date-time required
started_at, string date-time nullable
deadline_at, string date-time nullable
completed_at, string date-time nullable
cancel_requested_at, string date-time nullable
links, TaskLinks required

Changes

No recorded changes to this operation across all 46 revisions of this API.