# How to Quote a 15-Second MiniMax H3 Clip in the Sogni SDK

Update Sogni’s Intelligence SDK and check both long and short MiniMax H3 quotes without submitting a render.

By Paras Madan | 2026-11-23


If you put an estimate in front of a paid video render, a 10-second validation error can make a 15-second MiniMax H3 clip look unsupported. In this case, the estimate was the part that couldn't handle the longer clip.

[Sogni Intelligence SDK 4.33.2](https://github.com/Sogni-AI/sogni-intelligence-client/releases/tag/v4.33.2), released November 23, fixes that mismatch for MiniMax H3. The change is in the Intelligence SDK wrapper. You can check it with two quote requests before touching the code that submits your renders.

## Check the version running in your app

Look for `@sogni-ai/sogni-intelligence-client` in the app's dependency lockfile and in the environment your render worker actually uses. Updating a test project won't help if the production worker still bundles the old wrapper. If both environments are on the new version but one still rejects the length, look for validation in your own API or form before investigating the render service.

The [SDK change](https://github.com/Sogni-AI/sogni-intelligence-client/commit/c0afee668c6aff870094f91a709a5a3a7065716f) extends the H3 quote ceiling to 362 frames at 24 fps, about 15.08 seconds. It leaves the generic 10-second ceiling in place for models without their own bounds. If you have a shared duration check, don't raise it for every model just because H3 now passes.

## Use the actual frame count

Sogni's [H3 guide](https://docs.sogni.ai/models/minimax-h3/) lists a 24 fps frame grid. The model uses 124 frames for the shortest clip, then adds frames in groups of 17 up to 362. The wrapper still accepts some requested durations shorter than the render minimum; the service snaps those up. A request that passes validation can therefore produce more frames than you expected.

For a quote regression test, pick two lengths on that grid. The example below uses 226 frames (about 9.42 seconds) and 362 frames (about 15.08 seconds). It assumes you're already working with a connected `SogniClientWrapper` instance. It requests estimates only.

```ts
const settings = {
  modelId: 'minimax-h3-fastvideo-int8_i2v_turbo',
  width: 1344,
  height: 768,
  steps: 4,
  fps: 24,
  tokenType: 'spark' as const,
};

for (const frames of [226, 362]) {
  const quote = await client.estimateVideoCost({ ...settings, frames });
  console.log(frames, quote.spark);
}
```

In an existing integration, run the same probe before and after updating. The short request checks that the old path still works. The long request is the one that should stop failing the wrapper's duration check. Don't hardcode the returned quote in a test that calls the live service; pricing can change independently of SDK validation.

## Keep the quote matched to the render

The example is FastH3 image-to-video. If your customer selects a different tier or switches to reference-to-video, quote that configuration instead. For a reference-to-video job, pass input clip durations in `referenceVideoDurations` in the same order as the clips. Final billing uses the durations the service accepts. The [pricing reference](https://docs.sogni.ai/pricing/) explains how these seconds contribute to the quote. Two jobs with the same output length can cost different amounts when one includes a video reference.

Store the model ID, requested frames, frame rate and resolution beside the quote. If someone changes the settings, ask for a new quote rather than treating the old one as a budget for the new render. That gives you a clean check for the original fix and a clear way to spot the next mismatch between what the user sees and what the worker sends.

I'm Paras. I work at the intersection of AI, engineering and distribution.

I help AI teams explain technical products through clear documentation, practical guides and developer-focused content.

[Book a 30-minute call](https://cal.com/paras-madan/30min).
