Quick Start

AIFast 3-minute quick start

From registering an account, creating API Key, saving environment variables, querying the real model ID to sending the first request, complete the shortest verification process of AIFast OpenAI Compatible API.

Updated on 2026-07-12Checked 2026-07-12Estimated reading time: 5 minutesApplies to AIFast OpenAI Compatible API
Configuration fields were checked against public documentation. Models, prices, and capabilities can change; verify current values in the console and live API responses.

This tutorial only accomplishes one thing: using the minimum steps to confirm that the account, key, model and API link are all working properly. Run the short request first, and then configure Cursor, Dify, Codex or your own application.

Check before you start

  • open AIFast registration page Create an account.
  • Log in to the console and go to "API Tokens".
  • Prepare a local environment variable that will not be submitted to the code repository.

Configuration steps

Step 1: Create API Key

Create a new token in the console. It is recommended to clearly state the purpose of the name, for example:

macbook-local-test
cursor-work
production-order-service

Different devices and projects use different Keys, which can be revoked individually if a leak is subsequently discovered, without affecting all businesses.

Step 2: Save as environment variable

macOS or Linux:

export AIFAST_API_KEY="yours_API_Key"

Windows PowerShell:

$env:AIFAST_API_KEY="yours_API_Key"

Step 3: Query the model

curl https://www.aifast.club/v1/models \
  -H "Authorization: Bearer $AIFAST_API_KEY"

Copy a real model ID from the results. The model name may change depending on the upstream opening. When it is officially used, it will be subject to the console and API returns.

Step 4: Send short request

curl https://www.aifast.club/v1/chat/completions \
  -H "Authorization: Bearer $AIFAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_MODEL_ID",
    "messages": [{"role": "user", "content": "Reply only:Connection successful"}],
    "stream": false
  }'

After seeing the model response, enter the specific tool configuration.

FAQ

curl returns HTML

Usually the web page address is requested, not the API address. Check if using:

https://www.aifast.club/v1

Key looks correct but still 401

Copy the Key again, avoiding leading and trailing spaces. don't put Bearer The text is saved into the Key field;Bearer Should be added automatically by request header or client.

There are too many models and I don’t know which one to choose.

Just choose a text dialogue model for the first test. The request formats for images, videos, and retrieval models may be different and not suitable as the first test request for the underlying link.

Next step

After the basic call is successful, you can continue reading OpenAI-compatible API quick start, or enter the corresponding tool tutorial.

Source checked

Reference and Check Sources

Next step

Check the model and price first, then create an independent test Key

The model ID, open status and price will change; it will be added to production after passing small-scale verification.

Model PricingCreate Account View API documentation