You have exceeded your plan’s quota or attempted to use a feature not available on your plan.Common causes:
Generated more videos than your plan allows this billing period
Trial period has ended
Plan does not include API access
Copy
Ask AI
{ "error": "quota_exceeded", "reason": "You've used all 30 videos for this billing period. Add credits ($8/video) or upgrade your plan.", "usage": { "used": 30, "limit": 30 }}
The usage object is included when the error is quota-related, showing your current usage and plan limit.
Your API key lacks the required permission to perform this action.Common causes:
API key does not have generate permission (for POST /api/v1/generate)
API key does not have projects:read permission (for GET endpoints)
Attempting to access another user’s resources
Copy
Ask AI
{ "error": "This API key does not have the 'generate' permission"}
API key permissions cannot be modified after creation. If you need different permissions, revoke the key and create a new one with the correct permissions.
See the Permissions page for details on permission scopes.
The request was well-formed, but the server cannot process it due to semantic errors.Common causes:
URL is not a product page (detected as homepage, category page, blog post, etc.)
URL is a valid product page but cannot be processed (unsupported e-commerce platform)
Copy
Ask AI
{ "error": "not_a_product", "reason": "example.com is not a product page. Paste a link to a product you want to advertise."}
The special error code not_a_product is always returned with a 422 status. This indicates the URL was successfully accessed but determined to be a non-product page.
When you receive not_a_product, help the user understand what went wrong:
Copy
Ask AI
if (data.error === 'not_a_product') { console.error('The URL provided is not a product page.'); console.error('Please ensure you are providing a direct link to a product detail page,'); console.error('not a homepage, category page, or blog post.');}