Перейти к содержимому
EN

Quote a video

POST
/videos/price
curl --request POST \
--url https://api.mixen.ai/v1/videos/price \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "model": "sora-2", "prompt": "an astronaut cat riding a motorcycle at night", "seconds": "4", "size": "720x1280" }'

Price of POST /videos for the same body, without creating a job or charging. Computed with the same formula as the actual charge (resolution, duration, references).

Media typeapplication/json
VideoCreateRequest
object
idempotency_key
Any of:
string
>= 1 characters <= 128 characters
webhook_url
Any of:
string
<= 2048 characters
wait
Wait

Hold the request until the job is terminal (or wait_timeout) and return the final job object. Default false — return the queued job immediately and poll.

boolean
wait_timeout
Wait Timeout

Seconds to wait when wait=true; on timeout the job is returned as is (still running).

integer
default: 60 >= 1 <= 300
model
Model

Sora-2 / sora-2-pro, or a Mixen model (kling-v3-pro, veo-3.1, seedance-2.0, happyhorse-1.1).

string
default: sora-2
prompt
required
Prompt
string
>= 1 characters <= 30000 characters
seconds
Any of:
string
size
Any of:
string
input_reference
Any of:
object
key
additional properties
any
input_references
Any of:
Array<string>
seed
Any of:
integer
<= 2147483647
Example
{
"model": "sora-2",
"prompt": "an astronaut cat riding a motorcycle at night",
"seconds": "4",
"size": "720x1280"
}

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}