Skip to main content
POST
/
v1
/
videos
/
generations
curl --request POST \
  --url https://gccai.heqingsong.uk/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "sora-2",
    "prompt": "A waterfall cascading down forming a rainbow",
    "duration": 8,
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "image_urls": ["https://gccai.heqingsong.uk/_gccai/cdn/doc/9998238782946594-f62f70ce-348c-4b13-bb5f-15f17bee676b-image_task_01K88BEGZHVJWJ3ZV6HY99SWQR_0.png"]
  }'
{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://gccai.heqingsong.uk/llms.txt

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

curl --request POST \
  --url https://gccai.heqingsong.uk/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "sora-2",
    "prompt": "A waterfall cascading down forming a rainbow",
    "duration": 8,
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "image_urls": ["https://gccai.heqingsong.uk/_gccai/cdn/doc/9998238782946594-f62f70ce-348c-4b13-bb5f-15f17bee676b-image_task_01K88BEGZHVJWJ3ZV6HY99SWQR_0.png"]
  }'
{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
    }
  ]
}

Authorizations

Authorization
string
required
All API endpoints require Bearer Token authenticationGet your API Key:Visit the API Key Management Page to get your API KeyAdd it to the request header:
Authorization: Bearer YOUR_API_KEY

Body

model
string
required
Video generation model nameSupported models:
  • sora-2 Sora 2 standard
  • sora-2-pro Sora 2 Pro
Example: "sora-2"
prompt
string
required
Text description for video generationExample: "A waterfall cascading down forming a rainbow"
duration
integer
default:"4"
Supported values: 4, 8, 12, 16, 20Example: 8
resolution
string
default:"720p"
Video resolutionSupported values:
ModelAllowed values
sora-2720p
sora-2-pro720p, 1024p, 1080p
Defaults to 720p when not provided.Example: "720p"
aspect_ratio
string
default:"16:9"
Video aspect ratio, controls landscape or portrait orientationSupported values:
OrientationAllowed values
Landscape16:9, landscape
Portrait9:16, portrait
Defaults to landscape when not provided.
When image_urls is provided (image-to-video), the aspect_ratio parameter is ignored and does not need to be sent; the orientation is determined automatically from the reference image.
image_urls
array<url>
Array of reference image URLs for image-to-video generation
  • Omit for text-to-video; provide 1 image for image-to-video
  • Maximum 1 image
  • Supports publicly accessible image URLs (http:// or https://)
  • Supported formats: .jpeg, .jpg, .png, .webp
  • Maximum file size: 10MB
Example: ["https://example.com/image.jpg"]

Response

code
integer
Response status code, 200 for success
data
array
Response data array