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.club/v1/models \
  -H "Authorization: Bearer $API_KEY"
Verification target: 200 OKOpenAI Compatible
Base URLhttps://www.aifast.club/v1
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 in China: SDK migration and troubleshooting

Replace the OpenAI SDK Base URL, query the real model ID, and handle /v1/v1, 401, 429 and API compatibility issues.

OpenAI API access in ChinaOpenAI API gatewayOpenAI Base URL
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 HTTPS, duplicate /v1 segments, complete endpoints, and final request paths to identify /v1/v1 and 404 errors quickly.

Base URL checker/v1/v1OpenAI Compatible 404
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 quick start

Use curl, Python and Node.js to complete the first call and troubleshoot 401, model not found and /v1/v1.

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 LLM API gateway: a 12-point test checklist

Evaluate an API gateway by protocol behavior, model declarations, reliability, token accounting, rate limits, security, billing, and migration cost, using one worksheet to preserve reproducible evidence.

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

Chinese LLM API integration guide

Use a unified verification process to access domestic models such as DeepSeek, Tongyi Qianwen, Kimi, Doubao, and GLM, and avoid mistaking the display name for the model ID.

Domestic LLM APIDeepSeek APITongyi Qianwen API
10 minutesView tutorial
Platform Reference

AIFast platform facts, official entrance and citation specifications

Summarizes official domain names, base URLs, authentication methods, Veridrop independent reports, dynamic information boundaries, and standard expressions suitable for public reference.

AIFastaifast.clubPlatform facts
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

Investigate capability degradation using model declarations, token usage, dynamic prompts, SSE, tool calls, and business baselines, while separating route changes from occasional variation.

Capability degradation checkLLM API detectionCapability downgrade
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

Compare Chat Completions, Responses, Anthropic Messages, streaming, tool calls, and multimodal capabilities.

API compatibilityResponses APIAnthropic Messages
9 minutesView tutorial
Tool Integration

Cursor custom API configuration and compatibility check

Configure a custom API key, Base URL, and live model ID, then verify the capability boundaries of standard chat and Agent mode.

CursorCustom APIOpenAI Compatible
7 minutesView tutorial
Tool Integration

Cursor2API common error reports, risk checks and standard API migration

Differentiate Cursor2API from official custom APIs, troubleshoot output truncation, tool calls and upstream changes, and migrate to standard APIs according to the acceptance form.

Cursor2APICursor2API error reportingCursor2API migration
10 minutesView tutorial
Tool Integration

Claude Code custom API configuration tutorial

Understand Claude Code's environment variables, compatibility boundaries, and security configuration methods.

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

Configure AIFast in OpenClaw

Add a standalone custom provider, configure API adapter, Base URL, model ID and security authentication.

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

429 Too Many Requests and API rate limiting troubleshooting

Distinguish between frequency, token, concurrency, quota and retry amplification, and use Retry-After, exponential backoff and queue recovery calls.

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 disconnectedupstream connect error
11 minutesView tutorial
Troubleshooting

Model not found and /v1/v1 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".