OpenAI CompatibleDeveloper Docs

AIFast GPT, Claude and Gemini API Developer Center

Focused GPT, Claude and Gemini model access

Link offers GPT, Claude and Gemini models. Follow reproducible steps from your first request to production troubleshooting, and check live model IDs, endpoints, groups and prices. Monthly plans apply to specified groups; do not assume a GPT or Claude plan covers Gemini.

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

Gemini API setup: model IDs, Base URL and protocols

Set up Gemini APIs on AIFast Link with an offline model-ID checker and request template. Verify Base URL, protocols, group access and billing before calling.

Gemini APIGemini API gatewayGemini Base URL
8 minutesView tutorial
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
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 token and billed-retry costs, then compare pay-as-you-go with monthly plans using active days, daily limits and overages. No API key needed.

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

Compare SSE terminal events, truncated output and missing usage across three protocols, with curl, Python and Node.js checks.

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
Platform Reference

AIFast Link platform facts, official entry points and verification limits

Review AIFast Link domains, Base URL, GPT, Claude and Gemini scope, and group-specific plan rules to check access and billing conditions.

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

Explain compatibility scores and pass, inconclusive, fail, and observation signals, then provide a fair comparison and retesting method for compatible GPT, Claude, and Gemini APIs.

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

AIFast Link GPT, Claude and Gemini API Test Template: Capability and Cost Review

Compare current AIFast Link GPT, Claude and Gemini models using the same tasks. Record model access, protocols, latency, tokens and billing plans, then choose based on completed tasks.

LLM API comparisonAPI gateway evaluationModel benchmarking
11 minutesView tutorial
Platform Reference

OpenAI SDK Troubleshooting and Protocol Matrix

Compare Python and Node options, timeout units, paths and Chat versus Responses bodies when curl works but the SDK fails, with an offline official-SDK example.

API compatibilityOpenAI Compatible API compatibility issuesOpenAI SDK compatibility
11 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 API setup: custom Base URL and Anthropic Messages

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 API Troubleshooting: Protocol Checks Before AIFast Link

Before using Claude Code with AIFast Link, verify that its required protocol is available. Check the Base URL, authentication, streaming, tool calls and common 401, 403, 429 and 502 errors; a model name does not prove compatibility.

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

Codex Custom Provider Setup in config.toml

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

Hermes Agent API setup: custom endpoint and Base URL

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

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

Use the last event to distinguish 502 errors, SSE interruptions, output limits and tool turns, then check timeouts, retries and actual usage.

502 Bad Gatewaystream disconnectedCodex stream disconnected
11 minutesView tutorial
Troubleshooting

Fix API model not found: model ID, Base URL and 404 troubleshooting

Does the GPT API report model not found or 404? Distinguish ChatGPT from API errors, then check the model ID, permissions, Base URL, /v1/v1 and endpoint against the response. Includes a key-free URL checker and redacted support checklist.

model not found/v1/v1404
8 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 between GPT, Claude and Gemini models

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

Model selectionimage modelvideo model
9 minutesView tutorial
Models and Cost

LLM API Cost Guide: Choosing Top-Ups or a Monthly Subscription

Estimate AIFast Link GPT, Claude and Gemini API costs by tracking top-ups, monthly subscriptions, live prices, quotas and actual tokens separately. Do not mix billing data or outdated prices from other sites.

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 compare Link pay-as-you-go billing and monthly plans before moving a project into production.