API reference

Quote

Validates a generation request exactly like the real endpoint and returns its price. Nothing is charged, uploaded or queued, and no Idempotency-Key is needed.

POST/v1/quote
Scope: readReturns 200

Send type plus the same body you would send to /images or /videos. For Motion Control also send motion_video_seconds (the real charge uses the measured length).

  • typestringrequired

    image or video.

  • …

    Every field of Create an image or Create a video.

  • motion_video_secondsnumber

    Motion Control only: clip length, 1–30.

  • app_credits is what the same work costs in the Orior app; credits is the API price you would be charged.
CodeWhen
VALIDATION_ERRORThe request would be rejected by the real endpoint (unknown model, option not allowed for the model, …).
curl -X POST https://api.oriorai.com/v1/quote \
  -H "Authorization: Bearer $ORIOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "video",
  "model": "kling-3.0",
  "prompt": "Slow dolly-in on the product",
  "duration": "10",
  "resolution": "1080p",
  "audio": true,
  "start_frame": "upl_4f1c…"
}'
Response
{
  "object": "quote",
  "type": "video",
  "model": "kling-3.0",
  "credits": 48,
  "app_credits": 24
}