Home Page
4All API Documentation
Section titled “4All API Documentation”Welcome to the 4All API documentation!
Quick Start
Section titled “Quick Start”1. Register an Account
Section titled “1. Register an Account”Visit https://4allapi.com to register an account
2. Get an API Key
Section titled “2. Get an API Key”After logging in, get your API Key from the dashboard
3. Call the API
Section titled “3. Call the API”import openai
client = openai.OpenAI( api_key="your-api-key", base_url="https://api.4allapi.com/v1")
response = client.chat.completions.create( model="gpt-4o", messages=[{"role": "user", "content": "你好!"}])
print(response.choices[0].message.content)Supported Models
Section titled “Supported Models”- GPT-4o / GPT-4o Mini
- Claude 3.5 Sonnet
- Gemini 2.0 Flash
- More models…