Workflow
Model API endpoint, region and API key checklist
Match the API host, credentials, region, billing scope and model before migrating an SDK or diagnosing 401, 402, 429 and 503 errors.
Sources checked:
What you can do
Get a minimal request through the intended endpoint and billing account.
Record the endpoint, source of credentials, model ID, request origin and billing scope together. Capture the provider’s error code separately from the HTTP status.
Build your execution checklist
Inputs are processed in this browser only and cleared when you close or refresh the page.
An OpenAI SDK request should run in the Beijing or Singapore Model Studio workspace.
Template preview qwen-workspace-canary.txt
Provider: {{Provider}}
Official portal: {{Issuing portal}}
Project or workspace: {{Workspace}}
Egress region: {{Runtime region}}
Request base URL: {{Base URL}}
Protocol and model: {{Protocol and model}}
Billing owner: {{Billing account}}
Minimal canary result: {{HTTP status and safe error code}}
Rollback: restore the last working endpoint and key pairing.Read the full steps
Qwen and DashScope workspace migration
An OpenAI SDK request should run in the Beijing or Singapore Model Studio workspace.
- Open the target Model Studio workspace, confirm its region and read the inference deployment scope. Singapore’s International scope can serve from infrastructure outside mainland China and is wider than one city.
- Copy the workspace’s dedicated API base URL and a key issued for its region and billing plan. For OpenAI Chat Completions use the documented /compatible-mode/v1 base, then use the SDK method to append the request path.
- The old DashScope domain can be available during migration. Keep the old endpoint and credential pairing until the target workspace canary confirms its model, billing and access.
- For 401 compare key region, workspace and endpoint. For 429 use the error subcode to decide between throughput, concurrency, free quota and resource allocation.
- For speech use the documented TTS host and protocol for the workspace instead of assuming the chat base URL handles audio.
Template preview: qwen-workspace-canary.txt
Provider: {{Provider}}
Official portal: {{Issuing portal}}
Project or workspace: {{Workspace}}
Egress region: {{Runtime region}}
Request base URL: {{Base URL}}
Protocol and model: {{Protocol and model}}
Billing owner: {{Billing account}}
Minimal canary result: {{HTTP status and safe error code}}
Rollback: restore the last working endpoint and key pairing.Gemini Developer API and AI Studio location
An AI Studio sign-in or server request reports an unsupported location.
- Check Google’s list of available regions. AI Studio goes by where you sign in from; a Developer API request goes by where your server or notebook sends it from. Outside the listed regions Google does not offer the service, and changing the network route does not make a request eligible.
- Check the Developer API project and billing tier. Google documents billing requirements where the free tier is unavailable.
- Record the redacted error and the service name, then repeat one minimal text request to tell a location refusal from a project or billing error.
Vertex AI / Google Cloud Gemini migration
You need Cloud IAM controls, a Cloud project, or a specific model region.
- Identify the target Cloud project, model, regional or global endpoint and processing location. Read the applicable residency terms for the combination.
- Set up Application Default Credentials for your local or deployed identity and grant approved model-invocation access. Set the Cloud project and location in the Gen AI SDK.
- Test the deployed identity on a test prompt. For 429 record throughput mode and quota/capacity response. Smooth shared traffic and validate the permitted endpoint before enabling any alternate route; for purchased capacity inspect provisioning and overflow behavior.
DeepSeek model aliases, balance and status
You are moving to Flash or deciding whether to fix billing, slow down or retry.
- The direct OpenAI-format base URL is https://api.deepseek.com. Use deepseek-flash for V4.1 Flash; check the direct Models and Pricing page for aliases and exact versions.
- If hosted through another provider, record its model ID, credential issuer, billing owner and fallback policy. Check whether traffic reached the intended route.
- For 402, inspect the official account balance. For 429 lower pressure using its concurrency/rate information. For 503 use capped backoff and a controlled retry. Save the status and a redacted request ID.
Kimi international and mainland platforms
A Kimi key returns 401, or 429 remains after adding funds.
- Identify the portal that created the API key. International Open Platform uses https://api.moonshot.ai/v1. Copy the mainland base URL from the mainland console when using that platform.
- Check balance in the same platform and account that issued the key. A 429 after top-up can still be a workspace or concurrency limit.
- Check an authorized small trial and compare the returned code and billing activity. Use the checkout methods shown for the account’s market.
Kimi API top-up and balance
You need to fund a direct Kimi API account or trace a missing top-up.
- For an international API key, open platform.kimi.ai, select the issuing account and check the billing page. Review the payment methods, amount, currency and any tax shown at checkout.
- After an authorized payment, compare the order status and cash balance. A voucher has separate eligibility, validity and model coverage. The read-only balance endpoint is GET https://api.moonshot.ai/v1/users/me/balance.
- If HTTP 429 persists, check error.type. Compare available_balance for exceeded_current_quota_error, reduce usage for rate_limit_reached_error, and honor Retry-After when provided for engine_overloaded_error.
Template preview: kimi-top-up-record.txt
Issuing portal: {{Platform}}
Account or organization: {{Account}}
Checkout currency and total: {{Currency and total}}
Order reference and status: {{Payment reference}}
Available balance before and after: {{Balances}}
HTTP status and error.type: {{Status and error type}}MiniMax, xAI and Amazon Bedrock
You need a vendor-specific implementation check for one of these services.
- MiniMax international OpenAI-compatible setup uses https://api.minimax.io/v1 or the base specified by the official integration page for your account. Check the issued platform key and exact model casing before changing an existing client.
- xAI 429 limits are model- and team-specific. Inspect the team’s developer limit before changing throughput, then make a small canary.
- For Amazon Nova, check Bedrock model region and API compatibility first. Nova 2 Lite supports Converse in specified locations. Sonic bidirectional audio uses the corresponding Bedrock operation and AWS credentials.
Scope & limits
- Credentials, checkout methods and account entitlements are verified inside the relevant provider console.
Questions & answers
- What if the model is listed but my request fails?
- Compare the project’s entitlement, endpoint, region and protocol with the exact ID in the catalog. Keep the status and vendor subcode for each attempt.
Verified sources
- Gemini availability
- Gemini troubleshooting
- Google Cloud ADC
- Google Gen AI SDK
- Cloud 429 guidance
- Cloud data residency
- Alibaba endpoints
- Alibaba regions
- 百炼错误码
- Qwen speech
- Kimi troubleshooting
- Kimi billing and payment
- Kimi balance endpoint
- Kimi account tiers and limits
- DeepSeek models
- DeepSeek errors
- Hugging Face routing
- MiniMax OpenAI SDK
- xAI limits
- Bedrock regions
- Bedrock API compatibility
Templates are authored by Kunavo. External product behavior depends on the linked sources and your account settings.