Skip to content

feat: report credit shortfall in insufficient-credit errors - #214

Merged
davidhu2000 merged 1 commit into
mainfrom
sdk-release-2026/11/22-21.39.03
Nov 22, 2026
Merged

davidhu2000 merged 1 commit into
mainfrom
sdk-release-2026/11/22-21.39.03

Conversation

@magic-hour-sdk-bot

Copy link
Copy Markdown
Contributor

Features

  • Added an optional credit_shortfall field to HTTP 402 responses across 40 /v1 operations, including POST /v1/image-to-video, POST /v1/ai-image-generator, and POST /v1/ai-voice-generator. For insufficient_credits errors, it reports how many more credits the request needs.

@davidhu2000
davidhu2000 merged commit 5389632 into main Nov 22, 2026
6 checks passed
@davidhu2000
davidhu2000 deleted the sdk-release-2026/11/22-21.39.03 branch November 22, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant