Skip to main content
POST
/
videos
Create video
curl --request POST \
  --url https://api.aisa.one/v1/videos \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'prompt=<string>' \
  --form model=sora-2 \
  --form input_reference='@example-file' \
  --form seconds=4 \
  --form size=720x1280
{
  "id": "<string>",
  "object": "video",
  "model": "sora-2",
  "status": "queued",
  "progress": 123,
  "created_at": 123,
  "completed_at": 123,
  "expires_at": 123,
  "prompt": "<string>",
  "size": "720x1280",
  "seconds": "4",
  "remixed_from_video_id": "<string>",
  "error": {
    "code": "<string>",
    "message": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

Parameters for creating a new video generation job.

prompt
string
required

Text prompt that describes the video to generate.

Required string length: 1 - 32000
model
enum<string>

The video generation model to use. Defaults to sora-2.

Available options:
sora-2,
sora-2-pro
input_reference
file

Optional image reference that guides generation.

seconds
enum<string>

Clip duration in seconds. Defaults to 4 seconds.

Available options:
4,
8,
12
size
enum<string>

Output resolution formatted as width x height. Defaults to 720x1280.

Available options:
720x1280,
1280x720,
1024x1792,
1792x1024

Response

200 - application/json

Success

Structured information describing a generated video job.

id
string
required

Unique identifier for the video job.

object
enum<string>
default:video
required

The object type, which is always video.

Available options:
video
model
enum<string>
required

The video generation model that produced the job.

Available options:
sora-2,
sora-2-pro
status
enum<string>
required

Current lifecycle status of the video job.

Available options:
queued,
in_progress,
completed,
failed
progress
integer
required

Approximate completion percentage for the generation task.

created_at
integer
required

Unix timestamp (seconds) for when the job was created.

completed_at
integer | null
required

Unix timestamp (seconds) for when the job completed, if finished.

expires_at
integer | null
required

Unix timestamp (seconds) for when the downloadable assets expire, if set.

prompt
string | null
required

The prompt that was used to generate the video.

size
enum<string>
required

The resolution of the generated video.

Available options:
720x1280,
1280x720,
1024x1792,
1792x1024
seconds
enum<string>
required

Duration of the generated clip in seconds.

Available options:
4,
8,
12
remixed_from_video_id
string | null
required

Identifier of the source video if this video is a remix.

error
object
required

Error payload that explains why generation failed, if applicable.