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
- Log in to the dashboard
- Go to the Token page
- Click Add Token in the upper right corner
- Enter a name, leave other options as default
- 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:
https://fast-api.orghttps://fast-api.org/v1https://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)