Przejdź do głównej treści
POST
/
v1
/
videos
Create a Veo video job
curl --request POST \
  --url https://api.cometapi.com/v1/videos \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'prompt=A paper kite floats above a field.' \
  --form input_reference='@example-file'
{
  "created_at": 1773297229,
  "id": "task_pa9CKKtYlTdxO7IIHOKKhXfjxEu4EQoR",
  "model": "veo_3_1-4K",
  "object": "video",
  "progress": 0,
  "seconds": "",
  "size": "16x9",
  "status": "queued"
}

Documentation Index

Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt

Use this file to discover all available pages before exploring further.

Użyj tej strony, aby uruchomić zadanie Veo przez współdzieloną ścieżkę CometAPI /v1/videos. Podczas ustawiania model wybierz aktualny alias Veo na stronie Models.

Wybierz wzorzec żądania

  • Tekst na wideo: nie wysyłaj żadnych plików input_reference
  • Obraz na wideo: wyślij jedno input_reference
  • Wskazanie pierwszej i ostatniej klatki: wyślij dwa uporządkowane pliki input_reference

Przepływ zadania

1

Prześlij zadanie Veo

Wyślij alias Veo, prompt oraz opcjonalne wejściowe obrazy, a następnie zapisz zwrócone id.
2

Odpytuj współdzielony endpoint wideo

Użyj Veo3 Retrieve, aby śledzić zadanie asynchroniczne, aż osiągnie stan końcowy.
3

Zapisz wynik

Przenieś gotowy zasób do własnej pamięci masowej, jeśli Twoja aplikacja potrzebuje trwałej kopii.

Rozwiązywanie aliasu

Pole model w odpowiedzi może pokazywać rozstrzygnięty identyfikator modelu backendowego zamiast aliasu, który został wysłany. Użyj strony Models, aby znaleźć aktualne aliasy Veo.

Autoryzacje

Authorization
string
header
wymagane

Bearer token authentication. Use your CometAPI key.

Treść

multipart/form-data
prompt
string
wymagane

Text prompt for the video job.

Przykład:

"A paper kite floats above a field."

model
string
domyślnie:veo3-fast

CometAPI Veo alias. Use a current Veo alias from the Models page. The response may resolve this alias to a provider model id.

Przykład:

"veo3-fast"

size
string

Orientation hint. Use a landscape-like value such as 16x9 or a portrait-like value such as 9x16.

Przykład:

"16x9"

input_reference
file

Optional image input. Send one file for image-to-video or two ordered files for first-frame and last-frame guidance.

Odpowiedź

200 - application/json

Task accepted.

created_at
integer
wymagane
id
string
wymagane
model
string
wymagane

Provider model identifier resolved by CometAPI for this task.

object
string
wymagane
progress
integer
wymagane
seconds
string
wymagane
size
string
wymagane
status
string
wymagane