PixMind Docs
Api referenceVideo ModelsSora 2 Pro Video Generation

Sora 2 Pro Video Generation

Generate detailed 10- or 15-second creative shots with image guidance and audio.

Detailed video generation for 10- or 15-second creative shots with image guidance and audio support.

Provider

OpenAI

Model ID

sora-2-pro

Endpoint

POST /v1/generations

Model notes

  • Pricing is per request at the selected duration, not per generated second.

Request parameters

ParameterTypeRequiredDescription
modelstringYes

Stable PixMind model ID. Use `sora-2-pro`.

Allowed values: sora-2-pro

promptstringYes

Natural-language generation or editing instructions.

resolutionstringNo

Output video resolution. This field affects per-second pricing.

Allowed values: 1080p

Default: 1080p

durationintegerNo

Requested clip duration in seconds.

Allowed values: 10, 15

Default: 10

aspect_ratiostringNo

Requested output aspect ratio.

Allowed values: 16:9, 9:16, 1:1, 4:3, 3:4

Default: 16:9

image_urlstring (URI)No

Starting image for image-to-video generation.

callback_urlstring (URI)No

HTTPS endpoint that receives the terminal task event. Polling remains available when omitted.

generate_audiobooleanNo

Generate synchronized audio when supported by the selected mode.

Allowed values: true, false

Default: true

Request example

cURL
curl https://aihub-admin.aimix.pro/v1/generations \
  -H "Authorization: Bearer $PIXMIND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sora-2-pro",
  "prompt": "A detailed continuous tracking shot through a futuristic night market",
  "duration": 10,
  "resolution": "1080p",
  "aspect_ratio": "16:9",
  "generate_audio": true
}'
JavaScript
const response = await fetch("https://aihub-admin.aimix.pro/v1/generations", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.PIXMIND_API_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "model": "sora-2-pro",
  "prompt": "A detailed continuous tracking shot through a futuristic night market",
  "duration": 10,
  "resolution": "1080p",
  "aspect_ratio": "16:9",
  "generate_audio": true
})
});

const task = await response.json();

Accepted task response

Generation is asynchronous. Save the id from the response and poll GET /v1/generations/{id} until it reaches a terminal status.

202 Accepted
{
  "id": "img_01JXYZ...",
  "model": "sora-2-pro",
  "status": "processing"
}

API pricing

ConfigurationPrice
10-second request$0.480 / request
15-second request$0.720 / request

API pricing uses the apiPlatform role and is separate from PixMind Studio credits. The accepted task response is the final pricing snapshot.