Quick Start

AIFast 3-minute quick start

Register an account, create an API key, save it as an environment variable, query the model IDs available to your account, and send your first request through the shortest AIFast OpenAI-compatible setup.

Updated 2026-08-18Verified 2026-08-18Estimated 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="your_API_Key"

Windows PowerShell:

$env:AIFAST_API_KEY="your_API_Key"

Step 3: Query the model

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

Copy a model ID available to the current account from the response. Model availability may change upstream, so use the control panel and the live API response as the source of truth.

Step 4: Send short request

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

Once the model responds successfully, continue with the configuration for your chosen client or tool.

FAQ

curl returns HTML

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

https://www.aifast.link/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

Test the current API before fixing, migrating, or creating a test key

Use a temporary, limited key to inspect model declarations, token fields, SSE, and tool calls. Review current models and pricing only when you need a replacement API.

Model Quality CheckModel PricingCreate Account