ホームページ
4All API ドキュメント
Section titled “4All API ドキュメント”4All API ドキュメントへようこそ!
クイックスタート
Section titled “クイックスタート”1. アカウント登録
Section titled “1. アカウント登録”https://4allapi.com にアクセスしてアカウントを登録してください
2. API Key を取得する
Section titled “2. API Key を取得する”ログイン後、管理画面で API Key を取得できます
3. API を呼び出す
Section titled “3. 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)- GPT-4o / GPT-4o Mini
- Claude 3.5 Sonnet
- Gemini 2.0 Flash
- その他のモデル…