# Support

Most problems with the API can be fixed from the error message and the video id. If they cannot, send us a ticket with the details below and a person will look into it.

## How to reach us

- **Ticket:** when signed in, open one at /settings/tickets. Tickets keep the whole conversation in one place, and replies appear there.
- **Email:** [support@magi2ai.dev](mailto:support@magi2ai.dev). Write from the address on your account so we can find it.

## What to include

- The **video id** returned by `POST /api/v1/videos` (or shown in /settings/creations).
- The HTTP status and the `error.message` from the response.
- When it happened, with a time zone, or a Unix timestamp from your logs.
- The request body you sent, with the prompt if it matters.
- For webhooks: your `webhook_url` and whether your server logged any request from us.
- For billing: the order number from /settings/payments.

**Never paste an API key or your webhook secret** into a ticket or email. We do not need them. If you shared one by mistake, revoke it at /settings/apikeys and create a new one.

## Common API errors

**401 Unauthorized.** The key is missing, mistyped or revoked. Send it as `Authorization: Bearer sk_...`, with no quotes or extra spaces, and check at /settings/apikeys that it is still active.

**402 Payment Required.** Your balance does not cover the video you asked for. Check the cost for that model, resolution and length with `GET /api/v1/models`, and your balance with `GET /api/v1/account`. Top up on [/pricing](https://magi2ai.dev/pricing).

**400 Bad Request.** The body is not valid JSON, or the options do not fit the model: a resolution or length it does not render, a text-only request to Hailuo 2.3 (it needs a first-frame image), or `magi-2`, which cannot be run yet. The message says which option to change. `GET /api/v1/models` lists what each model accepts.

**422 Unprocessable.** The prompt or image was refused by safety screening. Nothing was charged. Rewrite the request so it fits the [Acceptable Use Policy](https://magi2ai.dev/acceptable-use).

**429 Too Many Requests.** You sent requests faster than the API allows. Wait a moment and retry with the same `Idempotency-Key`, so a retry never creates a second video.

## A webhook did not arrive

We send each webhook once, with a short timeout and no retries. If it did not reach you:

1. Check that `webhook_url` is a public `https` URL. Plain `http`, localhost and bare IP addresses are rejected when you create the video.
2. Make sure your endpoint answers quickly. Do the slow work after you reply with a 2xx.
3. Verify the `Magi2-Signature` header with the exact raw body you received. Parsing and re-serialising the JSON before checking changes the bytes and breaks the signature.
4. Poll `GET /api/v1/videos/{id}` as a fallback. It returns the same JSON the webhook carries, so the result is never lost.

The [webhooks guide](https://magi2ai.dev/webhooks) has verification code for Node and Python.

## A render failed

When a video fails, its credits are returned to your balance automatically, and the video's `status` is `failed` with an `error` message. You do not need to ask for those credits. Try again, perhaps with a different model or a simpler prompt. If the same request keeps failing, send us the video ids.

## Refunds and billing

Refunds of a first payment for a plan or a pack follow the [refund policy](https://magi2ai.dev/refund-policy). To stop a plan from renewing, cancel it in /settings/billing.

## Docs and tools

- [API docs](https://magi2ai.dev/docs): endpoints, fields, models and errors.
- [Webhooks](https://magi2ai.dev/webhooks): payload, signature and retries.
- [MCP server](https://magi2ai.dev/mcp-server): use Magi2 AI from an AI assistant.
- [Pricing](https://magi2ai.dev/pricing): plans, packs and credit costs per model.

---

Source: https://magi2ai.dev/support · Site index for AI agents: https://magi2ai.dev/llms.txt · Full content: https://magi2ai.dev/llms-full.txt
