OpenAI CompatibleDeveloper Docs

AIFast LLM API Developer Center

One Base URL, unified access to 500+ models

Covers mainstream text, image, video and retrieval models at home and abroad. From the first request to production troubleshooting, access is completed with replicable and verifiable steps.

OpenAI Compatible Quick Migration Domestic network direct call Models, tokens and responses are verifiable

After creating an account, query /v1/models, confirm the model ID and pricing, then connect your test environment.

first-request.sh
# Query currently available models
curl https://www.aifast.link/v1/models \
  -H "Authorization: Bearer $AIFAST_API_KEY"
Verification target: 200 OKOpenAI Compatible
Base URLhttps://www.aifast.link/v1
MODEL TRUST

Concerned about capability degradation, model impersonation, or route substitution?

First check the protocol, model declaration, token, dynamic questions, SSE and tool calls before deciding whether to connect. The report provides itemized evidence and does not package black box screening as manufacturer certification.

Open the free detection tool
KNOWLEDGE BASE

Tutorials and Troubleshooting Manual

All examples are written around real configurations, verification methods, and common failure scenarios.

Quick Start

Claude API access in China: OpenAI-compatible setup and checks

Query a live Claude model ID, run a minimal call, verify streaming, and troubleshoot 401, 404, 429, and protocol compatibility.

Claude API access in ChinaClaude API gatewayClaude OpenAI Compatible
9 minutesView tutorial
Quick Start

OpenAI API Access from China: Base URL, SDK, 401, and 429

Configure the OpenAI SDK Base URL, query live model IDs, and troubleshoot /v1/v1, 401, 429, and API compatibility issues.

OpenAI API access in ChinaOpenAI API access from ChinaOpenAI API gateway
9 minutesView tutorial
Quick Start

Gemini API access in China: OpenAI-compatible calls and checks

Query real Gemini model IDs, complete text calls, and verify multimodality, streaming output, and stability on a case-by-case basis.

Gemini API access in ChinaGemini API gatewayGemini OpenAI Compatible
9 minutesView tutorial
Troubleshooting

OpenAI Compatible Base URL Online Checker

Check OpenAI-compatible API URLs, repeated /v1, complete endpoints, HTTPS, and final request paths to locate /v1/v1 and 404 errors.

Base URL checkerOpenAI Compatible API URLopenai compatible api tester
4 minutesView tutorial
Models and Cost

LLM API Token Cost Calculator

Estimate total API cost from current model prices, input and output tokens, task volume, and the failed-retry rate.

API cost calculatorToken costMillion Token Price
5 minutesView tutorial
Quick Start

OpenAI-Compatible API tutorial: integration and request verification

Configure the Base URL with curl, Python and Node.js, verify the model list and first request, and troubleshoot 401, model not found and /v1/v1 errors.

OpenAI CompatibleBase URLAPI Key
8 minutesView tutorial
Quick Start

AIFast 3-minute quick start

Register, create an API key, query live model IDs, and send your first request in the fewest steps.

AIFastAPI TutorialModel list
5 minutesView tutorial
Quick Start

LLM API streaming and SSE integration guide

Validate streaming responses with curl, Python and Node.js and troubleshoot proxy buffering, interruptions and missing usage.

Streaming outputSSEstream true
10 minutesView tutorial
Quick Start

LLM API Pre-production Checklist

Verify keys, protocols, timeout and retry behavior, logging, cost monitoring, staged rollout, and rollback readiness.

production environmentOnline listRetry after timeout
11 minutesView tutorial
Quick Start

What is LLM API gateway? Access methods and risk checks

Explain the differences between API gateway, OpenAI Compatible, and unified gateway, and give the protocol, security, and cost checks that must be verified before access.

LLM API gatewayAI API GatewayOpenAI API gateway
9 minutesView tutorial
Quick Start

How to choose an OpenAI-compatible API service: a 12-point checklist for teams in China

Compare cloud platforms, global aggregators, self-hosted gateways, and unified services for networks in China using 12 OpenAI-compatible API criteria: protocol support, models, reliability, token accounting, rate limits, security, billing, and migration cost.

How to choose an LLM API gatewayAPI gateway evaluationAPI gateway selection
12 minutesView tutorial
Quick Start

Chinese LLM API setup: DeepSeek, Qwen, Kimi, Doubao and Zhipu

Domestic LLM API access tutorial: unified verification of the real model ID, OpenAI Compatible, tool calling and network search capabilities of DeepSeek, Tongyi Qianwen, Kimi, Doubao and Zhipu GLM.

Domestic LLM APIChinese LLM API setupDeepSeek API setup
10 minutesView tutorial
Platform Reference

AIFast platform facts, official entry points, and verification limits

Review official domains, the Base URL, public endpoints, current platform statements, and the historical Veridrop report while separating live facts, dynamic information, and historical evidence.

AIFastaifast.linkAIFast official website
8 minutesView tutorial
Platform Reference

Enterprise LLM API Unified Procurement, Billing and Invoicing Checklist

Plan model coverage, concurrency, project isolation, billing checks, invoicing, incident handling, migration, and acceptance requirements.

Enterprise LLM APIAPI ProcurementAPI invoice
11 minutesView tutorial
Platform Reference

Is an LLM API degrading model capability? A reproducible test checklist

LLM intelligence detection and model quality testing: downgrading from model declaration, token, dynamic questions, SSE, tool calling and business baseline troubleshooting capabilities, and distinguishing routing changes from occasional fluctuations.

Capability degradation checkLLM intelligence testingModel quality testing
10 minutesView tutorial
Platform Reference

How to investigate model impersonation and route substitution in an LLM API

Use protocol metadata, model declarations, dynamic capability probes, and repeated comparisons to identify impersonation or substitution risks without treating a single anomaly as proof of fraud.

Model impersonation checkRoute replacementAPI gateway verification
10 minutesView tutorial
Platform Reference

Can a matching API model field prove the underlying model is authentic?

Explain what the model field can prove, why a gateway can rewrite it, and how to cross-check it with token usage, capability probes, and repeated tests.

model fieldModel authenticityAPI metadata
8 minutesView tutorial
Platform Reference

How to read an LLM API gateway check report

Interpret compatibility scores and pass, inconclusive, fail, and observation signals, with a fair method for comparing and retesting multiple API gateways.

API gateway detection reportModel checking scoreAPI comparison
9 minutesView tutorial
Platform Reference

LLM API comparison test template: results can be reproduced and costs can be verified

Fixed the model, parameters, question set and sampling period, and compared the success rate, delay, capability, token and complete task cost of multiple API entries.

LLM API comparisonAPI gateway evaluationModel benchmarking
11 minutesView tutorial
Platform Reference

LLM API Compatibility Matrix

OpenAI Compatible API compatibility troubleshooting: Differentiating Chat, Responses, Anthropic Messages, Base URLs, SSE, tool calls, and multimodal capabilities.

API compatibilityOpenAI Compatible API compatibility issuesOpenAI SDK compatibility
9 minutesView tutorial
Tool Integration

Cursor Custom API Setup and Troubleshooting

Configure a custom API key, Base URL, and exact model ID; inspect the request path; and troubleshoot API Key Valid, 401, and model not found errors.

CursorCustom APIOpenAI Compatible
7 minutesView tutorial
Tool Integration

Cursor2API Setup: Fix 401, Truncation, and Migrate APIs

Distinguish Cursor2API from official custom APIs, troubleshoot 401, output truncation, tool-call, and model-change issues, then migrate to a standard API with a repeatable checklist.

Cursor2APICursor2API TutorialCursor2API setup
10 minutesView tutorial
Tool Integration

Claude Code custom API configuration tutorial

Configure ANTHROPIC_BASE_URL, authentication variables, and model mapping to distinguish Anthropic Messages from the OpenAI Compatible protocol.

Claude CodeAPI Keyenvironment variables
7 minutesView tutorial
Troubleshooting

Claude Code gateway API acceptance and troubleshooting

Use a 20-minute checklist to verify Anthropic Messages paths, streaming, tool calls, context, caching, and common 403, 429, and 502 errors.

Claude Code gateway APIClaude Code 502Claude Code streaming
12 minutesView tutorial
Tool Integration

Codex API gateway configuration tutorial: Custom Provider and Responses API

Configure a Codex custom provider for the Responses API, set environment variables and model IDs, then verify tool calls with a minimal file-editing task.

Codex API configurationCodex API gatewayCustom Provider
8 minutesView tutorial
Troubleshooting

Codex gateway API acceptance and troubleshooting

Use a 20-minute checklist to verify configuration priority, API keys, Responses paths, streaming, tool calls, context compaction, and 401, 404, 429, and 5xx errors.

Codex gateway APICodex custom providerCodex Responses API
14 minutesView tutorial
Tool Integration

OpenClaw API configuration, model verification and common errors

Add a standalone custom provider, configure the API adapter, Base URL and real model ID, and verify streaming output and tool calls.

OpenClawcustom modelopenai-completions
8 minutesView tutorial
Tool Integration

Configure AIFast in Hermes Agent

Configure Base URL, API Key and real model ID using hermes model and custom endpoint.

Hermes AgentCustom endpointconfig.yaml
8 minutesView tutorial
Tool Integration

Configure the AIFast API in Dify

Configure the Base URL, API Key, model type and real model ID, and verify the workflow and knowledge base nodes.

DifyOpenAI Compatiblecustom model
8 minutesView tutorial
Tool Integration

Embedding, Rerank API and Dify knowledge base access

Distinguish chat, embedding, and reranking models, configure a Dify knowledge base, and validate retrieval quality with real questions.

Embedding APIRerank APIDify knowledge base
12 minutesView tutorial
Tool Integration

Configure AIFast in OpenWebUI

Add an OpenAI Compatible connection, load a list of models, and troubleshoot address, container network, and streaming output issues.

OpenWebUIOpenAI API ConnectionCustom API
7 minutesView tutorial
Tool Integration

Chatbox and Cherry Studio integration guide

Add an OpenAI-compatible provider and configure its API endpoint, API key, and live model ID.

ChatboxCherry Studiocustom supplier
8 minutesView tutorial
Troubleshooting

401, 429, 502 API error troubleshooting

Use HTTP status codes to identify API key, quota, rate-limit, gateway, and upstream model problems.

401429502
10 minutesView tutorial
Troubleshooting

401 invalid_api_key and API Key invalid troubleshooting

Troubleshoot 401 errors by checking request headers, environment variables, the Base URL, the key provider, and configuration overrides. Avoid ineffective retries and key exposure.

invalid_api_key401 UnauthorizedOpenAI API Key is invalid
9 minutesView tutorial
Troubleshooting

Fix OpenAI API 429: Rate Limits, Quota, and Retries

Separate request-rate, token-rate, concurrency, quota, and duplicate-retry causes, then recover with Retry-After, exponential backoff, and request queues.

429 Too Many Requestsrate_limit_exceededOpenAI API 429
10 minutesView tutorial
Troubleshooting

502 Bad Gateway, stream disconnected and SSE disconnection troubleshooting

Locate 502s, upstream errors, and streaming interruptions with short requests, non-streaming comparisons, SSE events, and layered timeouts.

502 Bad Gatewaystream disconnectedCodex stream disconnected
11 minutesView tutorial
Troubleshooting

API model not found, /v1/v1 and 404 troubleshooting

Identify model ID, 404, and duplicate-version path errors using /v1/models, account permissions, and the full request URL.

model not found/v1/v1404
6 minutesView tutorial
Troubleshooting

API Key Security Usage Checklist

Keep API keys out of repositories, frontend code, screenshots, and logs to reduce leakage risk.

API Key Securityenvironment variablesKey leak
6 minutesView tutorial
Models and Cost

How to choose text, image, video, and retrieval models

Select models based on input and output types, latency, cost, and task verifiability.

Model selectionimage modelvideo model
9 minutesView tutorial
Models and Cost

Image generation API integration: requests, results, and quality checks

Verify image endpoints and output formats, download results safely, compare quality with fixed prompts, and track retries and total cost.

Image generation APIImage generation APIText-to-image
10 minutesView tutorial
Models and Cost

Video generation API: asynchronous tasks, polling and result acceptance

Build an idempotent task state machine with bounded polling, download results safely, and track quality, failures, and total cost.

Video generation APIText-to-videoImage-to-video
11 minutesView tutorial
Models and Cost

LLM API cost estimation and usage control

Estimate end-to-end task costs from token usage, failed retries, long contexts, and tool loops, then set budget safeguards.

API costToken usagecost optimization
9 minutesView tutorial
No matching tutorials found. You can try searching for "401" "Cursor" or "Base URL".
DEVELOPER ONBOARDING

Choose the fastest path to your first successful API call

Start with a live gateway check, copy the OpenAI-compatible base URL, or review international funding before moving a project into production.