Skip to main content
GET
Retrieve a video generation's status and result
Rufe den Status eines Videogenerierungs-Jobs ab. Solange er pending oder processing ist, frage weiter ab; sobald er completed ist, enthält die Antwort das erzeugte Video mit einer presigned url, 24 Stunden gültig. Nur Jobs, die deine Organisation erstellt hat, sind sichtbar; jede andere id liefert 404 not_found.
Übergib eine webhook_url bei der ursprünglichen Video-Anfrage, um statt abzufragen einen signierten Callback zu erhalten. Siehe Webhooks.

Autorisierungen

Authorization
string
header
erforderlich

Organization API key as a bearer token: Authorization: Bearer samsa_sk_....

Pfadparameter

generation_id
string<uuid>
erforderlich

Antwort

Successful Response

GET /videos/generations/{id} body (ADR §7.2).

created_at and credits_used come from the immutable credit-ledger row (the durable public submit record); mode prefers the same source because the worker's completion path rewrites video_jobs.metadata.

id
string<uuid>
erforderlich
status
enum<string>
erforderlich

pending, processing, completed, failed, or cancelled.

Verfügbare Optionen:
pending,
processing,
completed,
failed,
cancelled
Beispiel:

"completed"

created_at
string<date-time>
erforderlich

When the job was submitted.

mode
string | null

image_to_video, text_to_video, or text_to_video_styled.

Beispiel:

"image_to_video"

credits_used
integer | null

Credits charged for this job.

Beispiel:

80

video
PublicVideoAsset · object | null

The produced video (presigned URL); null until completed.

error
string | null

Failure detail when status is failed; otherwise null.