AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help

Video generation

Submit video-generation tasks, retrieve status, and read generated output.

Overview

AGTCloud provides multiple video-generation models and protocols. A video request usually creates a task first, then uses the task identifier to retrieve status and output.

Supported tasks

TaskDescriptionMain input
Text to videoGenerate a video from a text descriptionPrompt
Image to videoAdd motion to a still imagePrompt, image
Reference-based generationGenerate content from images or video supported by the modelPrompt, reference media
Model-specific extensionsUse start/end frames, camera controls, or other model featuresDepends on the model and protocol

API access

Base URL

https://api.agtcloud.cn/v1

Text to video

curl 'https://api.agtcloud.cn/v1/video/generations' \
  -H 'Authorization: Bearer your-api-key' \
  -H 'Content-Type: application/json' \
  --data '{
    "model": "MODEL_ID",
    "prompt": "A train crosses a valley after the rain as the camera slowly moves forward"
  }'

Image to video

curl 'https://api.agtcloud.cn/v1/video/generations' \
  -H 'Authorization: Bearer your-api-key' \
  -H 'Content-Type: application/json' \
  --data '{
    "model": "MODEL_ID",
    "prompt": "Preserve the subject and have the person walk slowly toward the camera",
    "image": "https://example.com/input.jpg"
  }'

After creating a task, save its Task ID and retrieve it through the same protocol.

Retrieve a task

curl 'https://api.agtcloud.cn/v1/video/generations/TASK_ID' \
  -H 'Authorization: Bearer your-api-key'

See Create a video task and Retrieve a video task for the create and retrieve fields.

Choose a protocol

ProtocolCreate endpointFollow-up
Platform Video GenerationsPOST /v1/video/generationsRetrieve output with the Task ID
OpenAI VideosPOST /v1/videosRetrieve and download with the Video ID
Vendor-specific protocolSee the corresponding ReferenceUse the task identifier and status defined by that protocol

Use the create, retrieve, and download endpoints from the same protocol for a given task.

Learn more

On this page