Przejdź do głównej treści
POST
/
runway
/
feed
Poll a Runway compatibility-format task
curl --request POST \
  --url https://api.cometapi.com/runway/feed \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "task_id": "4156043d-9ea5-47c5-9e38-3f8446a0b20d"
}
'
{
  "task_id": "4156043d-9ea5-47c5-9e38-3f8446a0b20d"
}

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 tego endpointu po utworzeniu zadania Runway w formacie compatibility-format. To główny krok odpytywania dla przepływów /runway/pro/*.

Najpierw sprawdź te pola

  • task_id dla identyfikatora zadania
  • status i progress dla postępu zadania
  • result_url, video_url lub powiązane pola wyjściowe po zakończeniu zadania
  • fail_reason, gdy zadanie zakończy się niepowodzeniem

Wzorzec odpytywania

1

Najpierw utwórz zadanie w formacie compatibility-format

Zacznij od strony Runway w formacie compatibility-format, takiej jak Generate, Image-to-Video, Video to Video Style Redraw lub Act-one Expression Migration.
2

Spróbuj ponownie raz, jeśli zadanie nie jest jeszcze widoczne

Świeżo utworzone identyfikatory zadań mogą przez chwilę zwracać task_not_exist. Jeśli tak się stanie, odczekaj kilka sekund i odpytaj ponownie.
3

Kontynuuj odpytywanie, aż zadanie osiągnie stan terminalny

Kontynuuj sprawdzanie tego endpointu, aż zadanie opuści stan kolejki lub przetwarzania i odpowiedź będzie zawierać użyteczny adres URL wyjścia.

Autoryzacje

Authorization
string
header
wymagane

Bearer token authentication. Use your CometAPI key.

Nagłówki

X-Runway-Version
string

Optional Runway version header, for example 2024-11-06.

Treść

application/json
task_id
string
wymagane

Runway task id returned by the create endpoint.

Odpowiedź

200 - application/json

Current task state.

task_id
string
wymagane

Task ID returned by the create endpoint.

action
string

Task action.

status
string

Task status.

fail_reason
string

Failure reason, when available.

result_url
string

Result URL, when available.

submit_time
integer

Task submission timestamp.

start_time
integer

Task start timestamp.

finish_time
integer

Task finish timestamp.

progress
string

Task progress.

data
object

Task metadata.