セキュリティモデル
API Key はプロジェクトの認証情報です。パスワードと同様に扱ってください:- シークレット API Key をブラウザ側のコードに公開しないでください。
- キーはサーバー側のシークレットマネージャーまたは環境変数に保存してください。
- キーが漏洩した場合はローテーションしてください。
- 開発、ステージング、本番では別々のキーを使用してください。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
プロジェクト API Key を使って公開 API リクエストを認証します。
curl https://apiany.ai/v1/models \
-H "Authorization: Bearer $APIANY_API_KEY"
{
"error": {
"type": "auth_error",
"message": "Invalid API key"
}
}