Estimate AI Video Credits

Send the same body as Generate an AI Video and get the credits it would cost, without generating anything.

Updated

POST
/v1/ai/video/estimate
curl -X POST "https://api.orshot.com/v1/ai/video/estimate" \
  -H "Authorization: Bearer <ORSHOT_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "<PROMPT>",
    "imageRef": "<IMAGE_REF>",
    "script": "<SCRIPT>",
    "duration": 1
  }'

Same body as Generate an AI Video. Returns what the request would cost so you can check it against the account's AI credits before spending.

Endpoint
POST https://api.orshot.com/v1/ai/video/estimate

Request Body#

Accepts every field of Generate an AI Video.

promptString

What to generate.

imageRefString

Reference image for animation or speech.

scriptString

Spoken text; its length decides the clip length for speech.

durationNumber

Any whole number of seconds from 3 to 15, capped by your plan.

fullHdBoolean

1080p output at 2x credits.

Request#

JavaScript
await fetch("https://api.orshot.com/v1/ai/video/estimate", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    Authorization: "Bearer <ORSHOT_API_KEY>",
  },
  body: JSON.stringify({
    prompt: "a sneaker drops onto wet asphalt at night, neon reflections",
    duration: 10,
    fullHd: true,
  }),
});
JSON
{
  "data": {
    "capability": "t2v",
    "credits": 60,
    "seconds": 10,
    "tier": "fhd"
  }
}

Errors#

The estimate applies the same plan gate as generation, so it fails the same way: ai-video-not-on-plan (403) on the free plan, ai-speech-not-on-plan (403) when speech is not included, and the input errors listed on Generate AI Video. Nothing is ever charged by an estimate.

Was this page helpful?

Ready to automate?

Start rendering images, PDFs and videos from your templates in under 2 minutes. Free plan, no credit card.

Get your API key
  • Image, PDF and video generation via API
  • Visual editor with AI and smart layouts
  • Zapier, Make, MCP and 40+ integrations
  • White-label embed for your own app
  • 100 free credits a month, no credit card required