Server402 marketplace

Paid API service

Text To Video Result

Use this paid x402 service after text-to-video returns task_id. It retrieves AI video generation status for task_id and returns task_status plus video_url when the text-to-video / prompt-to-video / 文生视频 task has succeeded.

Invocation

Service ID
text-to-video-result
Method
POST
Endpoint
/api/tools/text-to-video-result
Legacy Endpoint
none
MCP Tool
text_to_video_result
Price
USD 0.005

Payment

Call the endpoint without payment to receive HTTP 402 metadata. After payment is complete, retry with X-Payment-Token, an x402 payment signature, or MCP paymentToken.

Call POST /api/tools/text-to-video-result once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId="text-to-video-result". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.

Schema And Examples

{
  "exampleRequest": {
    "task_id": "0385dc79-5ff8-4d82-bcb6-example"
  },
  "exampleResponse": {
    "provider": "aliyun-bailian",
    "service_id": "text-to-video-result",
    "status": "succeeded",
    "task_id": "0385dc79-5ff8-4d82-bcb6-example",
    "task_status": "SUCCEEDED",
    "upstream_request_id": "167f3beb-3dd0-47fe-a83c-example",
    "usage": {
      "duration": 5,
      "ratio": "16:9",
      "video_count": 1
    },
    "video_url": "https://dashscope-result.example.com/generated-video.mp4?Expires=example"
  },
  "inputSchema": {
    "additionalProperties": true,
    "properties": {
      "taskId": {
        "description": "Alias for task_id.",
        "type": "string"
      },
      "task_id": {
        "description": "Task ID returned by text-to-video.",
        "type": "string"
      }
    },
    "required": [
      "task_id"
    ],
    "type": "object"
  },
  "outputSchema": {
    "additionalProperties": true,
    "properties": {
      "provider": {
        "type": "string"
      },
      "result": {
        "additionalProperties": true,
        "type": "object"
      },
      "service_id": {
        "type": "string"
      },
      "status": {
        "type": "string"
      },
      "task_id": {
        "type": "string"
      },
      "task_status": {
        "type": "string"
      },
      "upstream_request_id": {
        "type": "string"
      },
      "usage": {
        "additionalProperties": true,
        "type": "object"
      },
      "video_url": {
        "type": "string"
      }
    },
    "required": [
      "status",
      "service_id",
      "task_id",
      "task_status"
    ],
    "type": "object"
  }
}