apimaxDocs
DocsPricingConsole
API ReferenceIntegration GuideUser GuideChangelog

Get started

Quick Start

FAQ

FAQ & Troubleshooting

Docs / FAQ

FAQFAQAPI KeyTop-upError CodesAsync Tasks

FAQ & Troubleshooting

Common questions about accounts, top-ups, API keys, model calls, asynchronous tasks, and result links.

FAQ & Troubleshooting#

This page collects the most common questions about accounts, top-ups, API keys, model calls, and asynchronous tasks. Before submitting a ticket, note the request time, model name, HTTP status code, and task ID.

Accounts and Top-ups#

Why can't I see my balance or orders after signing in?#

  • Confirm you are signed in with the same account used for the top-up.
  • If you use workspaces, check whether you have switched to the correct personal account or workspace.
  • If the payment succeeded but the balance did not update, refresh the wallet page and check the top-up order status.

What if the top-up succeeded but the quota has not arrived?#

  1. Under Wallet → Top-up Orders, check whether the order shows a successful status.
  2. Keep both the platform order number and the payment channel order number.
  3. Avoid paying the same order more than once.
  4. If the credit still has not arrived after a long time, submit a ticket with the order number; do not upload full bank card or payment account details.

Why can't I request two invoices at the same time?#

A single user can have only one invoice request in pending or processing status at a time. The next request can be submitted only after the current one is issued or rejected.

API Key#

How do I create a key?#

Go to the API Keys page in the user console, click create, and set the name, permissions, and quota limit as needed. We recommend creating separate keys for different projects, environments, and clients.

Why is the key only partially displayed?#

To protect credentials, console lists usually show masked values only. Save the full key immediately when you create it; if it is already lost, delete the old key and create a new one instead of trying to recover the plaintext from log or database pages.

401 Unauthorized#

Common causes:

  • The Authorization request header is missing.
  • Malformed Bearer format; the correct format is Authorization: Bearer YOUR_API_KEY.
  • The key has leading or trailing spaces or line breaks.
  • The key has been deleted, disabled, or has exceeded its own quota limit.
  • The Claude native SDK is using the wrong authentication variable.

403 Forbidden#

This usually means the key or account lacks permission for the target model. Check the key's model restrictions, your user group, and whether the model is still in the available list.

What should I do if a key leaks?#

Delete or disable the key in the console immediately, then create a new key and update the server-side environment variables. Do not only change the value in the code repository, because the old key remains usable.

Models and Requests#

Which Base URL should I use?#

Use this by default:

text
https://api.apimax.ai

If an OpenAI-compatible client requires the versioned path, use https://api.apimax.ai/v1. Tools that require the root URL, such as Claude Code, should not append /v1/messages.

Where do model names come from?#

Follow the model list in the APIMAX console and the specific model's documentation. Do not copy model IDs from other platforms; the same series may use different names on different platforms.

404 Not Found#

  • Check whether the Base URL and API path accidentally duplicate /v1.
  • The asynchronous image endpoint is /v1/images/async-generations, not the same-named path from other platforms.
  • The unified task query endpoint is /v1/tasks/{id}.

400 parameter error#

  • Check required fields and JSON syntax.
  • Models differ in the resolution, duration, number of reference images, and sampling parameters they support.
  • Explicitly turn off the client's advanced parameters and verify again with a minimal request.
  • Do not casually remove explicit values such as 0 or false; they may carry business meaning.

429 Too Many Requests#

The request rate, concurrency, or upstream resources have hit a limit. Lower the concurrency and use exponential backoff; do not poll an asynchronous task at high frequency after submitting it. If you persistently need higher concurrency, contact support with your real workload.

Asynchronous Tasks#

Why is no image or video returned immediately after a successful submission?#

Asynchronous endpoints return a task ID first. Keep calling GET /v1/tasks/{id} until the status becomes completed or failed.

What do the task statuses mean?#

StatusMeaning
pendingCreated, waiting to run
processingRunning
completedFinished; results can be read
failedFailed; read error

A task stays in processing#

  • Images usually take tens of seconds; videos and music may take several minutes.
  • Use a reasonable polling interval and avoid multiple queries per second.
  • If the task exceeds the duration suggested in the model documentation, note the task ID and check the task records.
  • Do not immediately resubmit just because the client timed out; first confirm the original task's final status to avoid duplicate billing.

Will a failed task be refunded?#

When the gateway fails to execute a task, it refunds or settles the difference according to the task billing rules. The account usage logs and balance records are authoritative; if a record looks wrong, contact support with the task ID.

The result URL does not open#

  • The URL may have expired; url_expires_at in the task response gives the expiry time.
  • Download and re-host the result as soon as the task completes.
  • Check whether the local network can reach the corresponding object storage or CDN domain.

Error Handling#

upstream_error#

The upstream rejected the request, usually due to incompatible parameters, a content safety policy, or input file problems. Inspect error.upstream.code and the sanitized message, adjust the request, and try again.

upstream_unavailable#

The upstream is temporarily unavailable or its retries were exhausted. Wait and retry later; do not immediately resubmit at high concurrency.

storage_error#

Storing the result failed. Retry later; if it keeps happening, keep the task ID and contact support.

insufficient_quota#

The balance or the key's available quota is insufficient. Check the wallet balance, subscription quota, key limit, and current workspace.

Before Submitting a Ticket#

Please provide:

  • The task ID or request time.
  • The model name and API path used.
  • The HTTP status code.
  • A sanitized copy of the full error object.
  • Whether it reproduces consistently, plus a minimal reproduction request.

Do not provide full API keys, passwords, private keys, payment accounts, or unsanitized business data.

Next steps

All docs
Quick StartComplete your first APIMAX integration: create an API key, make a synchronous text call, submit an asynchronous image task, and query tasks through the unified task API.
On this page
OverviewFAQ & TroubleshootingAccounts and Top-upsWhy can't I see my balance or orders after signing in?What if the top-up succeeded but the quota has not arrived?Why can't I request two invoices at the same time?API KeyHow do I create a key?Why is the key only partially displayed?401 Unauthorized403 ForbiddenWhat should I do if a key leaks?Models and RequestsWhich Base URL should I use?Where do model names come from?404 Not Found400 parameter error429 Too Many RequestsAsynchronous TasksWhy is no image or video returned immediately after a successful submission?What do the task statuses mean?A task stays in processingWill a failed task be refunded?The result URL does not openError HandlingupstreamerrorupstreamunavailablestorageerrorinsufficientquotaBefore Submitting a TicketNext steps