litellm/tests/unit/proxy/video_endpoints
hx 2c313b6fd0 fix(xai): bill video creation for the submitted duration and resolution
The xAI create response only carries request_id, so usage was empty and
completion_cost priced every created video at zero seconds. Derive
usage.duration_seconds and usage.video_resolution from the request body
sent to xAI, and forward the resolution param that was being dropped.

Also cover the remaining image edit/generation, video, and ownership
behaviors that had no tests.
2026-10-24 11:16:26 +08:00
..
__init__.py test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006) 2026-10-01 11:06:42 -07:00
test_endpoints.py feat(xai): add grok imagine image generation, edit, and video download 2026-10-24 11:16:26 +08:00
test_ownership.py fix(xai): bill video creation for the submitted duration and resolution 2026-10-24 11:16:26 +08:00
test_utils.py feat(xai): add grok imagine image generation, edit, and video download 2026-10-24 11:16:26 +08:00