Generate

Sora 2 Price: 0.10$ (10s, 15s)

Sora 2 Pro Price: 0.30$ (20s , 25s)

Sora 2 Parameters

  • prompt (required) - Text description

  • duration (optional, default: 15, available: 10, 15, 20, 25 (20s and 25s video costs 0.30$) - Video duration in seconds

  • aspect_ratio (optional, default: "16:9", available: "16:9", "9:16") - Video aspect ratio

  • image_url (optional) - Single reference image

Request
curl --location 'https://api.unifically.com/sora-2/generate' \
--header 'Authorization: Bearer KEY' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/json' \
--data '{
    "prompt": "dancing robot",
    "aspect_ratio": "16:9",
    "image_url": "urlhere"
    "duration": 15
}'
Response from generation endpoints
{
    "code": 200,
    "data": {
        "task_id": "01k76zrfzfe8988e06b8pg3wen",
        "output": {},
        "error": {}
    }
}
Fetch task status
curl --location --request GET 'https://api.unifically.com/sora-2/status/TASKID' \
--header 'Authorization: Bearer KEY' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/json' \
Response example for fetch status endpoint
{
    "code": 200,
    "data": {
        "status": "completed",
        "task_id": "01k76z3k5yfq9rd4mkr2bz7716",
        "output": {
            "video_url": "https://videos.openai.com/vg-assets/assets%2Ftask_01k76z3k5yfq9rd4mkr2bz7716%2Ftask_01k76z3k5yfq9rd4mkr2bz7716_genid_1cd41ae2-b993-4758-b4c5-2688d80d9b02_25_10_10_11_48_467019%2Fvideos%2F00000_wm%2Fsrc.mp4?st=2025-10-10T10%3A48%3A32Z&se=2025-10-16T11%3A48%3A32Z&sks=b&skt=2025-10-10T10%3A48%3A32Z&ske=2025-10-16T11%3A48%3A32Z&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skoid=8ffff87a-01f1-47c9-9090-32999d4d6380&skv=2019-02-02&sv=2018-11-09&sr=b&sp=r&spr=https%2Chttp&sig=s%2FfFPvzElme3CmAXVAtwjlJdzgNyGKxp1hcbGC3WuWM%3D&az=oaivgprodscus"
        },
        "error": {}
    }
}

{
    "code": 200,
    "data": {
        "status": "failed",
        "task_id": "01k76z3k5yfq9rd4mkr2bz7716",
        "output": {},
        "error": {}
    }
}

Last updated