Skip to content

Create a Video Generation Task ​

Submit an asynchronous video generation request, then query its result using the returned task ID.

Endpoint Overview ​

POST/hyperone/xapi/api/v3/contents/generations/tasks⚡ Model API Key
SpecificationDetails
ProtocolHTTPS (recommended) / HTTP
AuthenticationAGIOne Model API Key (Authorization: Bearer <KEY>)
Timeout & RetryAsynchronous endpoint; HTTP 200 confirms submission only. Do not auto-retry timed-out requests

Request parameters ​

Headers ​

HeaderRequiredDescription
AuthorizationYesBearer <AGIONE_MODEL_API_KEY>
Content-TypeRequired for POSTapplication/json
AcceptRecommendedapplication/json
Accept-LanguageNozh-CN / en-US

If the deployment requires a routing header, use the name and value supplied by its administrator. Attribution headers cannot change the caller’s user, tenant or project.

Body ​

ParameterTypeRequiredDescription
modelStringYesPublished AGIOne video model identifier accessible to this Key.
contentObject[]YesInput content; see the asset reference below.
content[].typeStringBy input typetext for text, image_url for images.
content[].textStringRequired for textPrompt.
content[].image_url.urlStringRequired for imagesUse asset://<ASSET_ID> for a ready asset.
content[].roleStringModel-dependentUse reference_image for a reference image.

Example body ​

This illustrates the field structure. Replace resource identifiers and URLs with values available to the caller.

json
{
  "model": "<AGIONE_MODEL_ID>",
  "content": [
    {
      "type": "text",
      "text": "The person in image 1 waves to the camera."
    },
    {
      "type": "image_url",
      "image_url": {
        "url": "asset://asset-example"
      },
      "role": "reference_image"
    }
  ]
}

Response parameters ​

Successful responses retain the video protocol shape rather than the Platform API status/result envelope.

FieldTypeDescription
idStringTask identifier; use it unchanged when querying.

Example success shape ​

json
{
  "id": "video-task-example"
}

Request Examples ​

json
{
  "model": "<AGIONE_MODEL_ID>",
  "content": [
    {
      "type": "text",
      "text": "The person in image 1 waves to the camera."
    },
    {
      "type": "image_url",
      "image_url": {
        "url": "asset://asset-example"
      },
      "role": "reference_image"
    }
  ]
}

Operational Notice

Replace <AGIONE_HOST> with your instance gateway, <AGIONE_MODEL_ID> with an authorized model identifier, and <ASSET_ID> with an active portrait asset ID. See Authentication and signing.

Access scope and error handling ​

Use a published AGIOne model identifier and an authorized Model API Key. Model access and quota checks still apply.

Optional video parameters depend on the selected model. This page covers text and asset image references. Upstream additions do not establish support in this instance. An accepted request is not a completed video; do not automatically replay a timed-out submission.

Error handling and troubleshooting

Reference ​

Upstream field reference: Create a video generation task.