Use this recipe when the common video request fields are not enough and one provider path needs extra settings.Documentation Index
Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
Use this file to discover all available pages before exploring further.
Goal
- Keep the shared gateway request shape.
- Add provider-specific overrides only where required.
- Avoid forking your whole integration around one provider.
1. Start with the shared video request
Keep the common request fields at the top level:modelpromptdurationaspect_ratioresolutioninput_referenceswebhook
provider_params for the extra provider-specific fields.
2. Add provider-specific settings under provider_params
3. Keep overrides isolated
Do not duplicate the whole request just because one provider needs two extra fields. Good pattern:- one gateway request shape
- one optional
provider_paramsobject
- one code path per provider for otherwise identical video jobs
4. Validate with one known model path first
Before generalizing the override:- choose one known model
- submit one real job
- confirm the status and final output
5. Document the override at the call site
Whenever you addprovider_params, leave a short comment or internal note that explains:
- which provider path requires it
- why the top-level gateway fields were not enough
- where the provider docs live