Skip to content

Quick Start Guide ​

Access Fast-API and call mainstream global AI models in just 3 steps.

🖥️ 1. Register an Account ​

Go to Fast-API to register an account for free.

🔑 2. Obtain Your API Key ​

  1. Log in to the dashboard
  2. Go to the Token page
  3. Click Add Token in the upper right corner
  4. Enter a name, leave other options as default
  5. Obtain the generated Key (format: sk-xxxx...)

🔄 3. Update Request Address ​

Simply change your request address and Key to the following configuration:

  • API Base URL: https://fast-api.org
  • API Key: The token you acquired

Usage

Fully compatible with OpenAI API format. Just replace https://api.openai.com with https://fast-api.org. No other code changes needed.

Notes ​

Different clients require different BASE_URL settings. Some programs may need the /v1 suffix:

  1. https://fast-api.org
  2. https://fast-api.org/v1
  3. https://fast-api.org/v1/chat/completions

Quick Example ​

python
from openai import OpenAI

client = OpenAI(
    api_key="sk-yourAPIKey",
    base_url="https://fast-api.org/v1"
)

response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

More Tutorials ​