가드레일이 적용하는 내용
지출 한도
모든 API key에 크레딧 한도를 설정합니다. 한도를 초과하는 요청은402 오류로 거부됩니다.
대시보드에서
API Keys → 키 편집 → 크레딧 한도 설정.API를 통해
한도에 도달했을 때:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
모든 API 요청에 조직 정책을 적용합니다. 가드레일은 사용 가능한 모델 제어, 지출 한도 설정, 데이터 보존 구성을 중앙에서 관리합니다.
| 제어 항목 | 설명 |
|---|---|
| 모델 허용 목록 | 멤버가 사용할 수 있는 모델 제한 |
| 제공업체 허용 목록 | 요청이 라우팅될 수 있는 제공업체 제한 |
| 지출 한도 | 키별 및 조직별 예산 상한 |
| 요청 속도 제한 | 키 또는 멤버별 요청 속도 제한 |
| 데이터 정책 | ZDR 강제 적용, 데이터 수집 제한 |
402 오류로 거부됩니다.
curl -X PATCH https://api.arouter.ai/api/v1/keys/{key_hash} \
-H "Authorization: Bearer lr_admin_xxxx" \
-H "Content-Type: application/json" \
-d '{"limit_usd": 50.00}'
| 필드 | 타입 | 설명 |
|---|---|---|
limit_usd | number | 최대 누적 지출(USD). null = 무제한. |
{"error": {"code": 402, "message": "Credit limit exceeded for this API key.", "metadata": {"limit_usd": 50.00, "used_usd": 50.01}}}
curl -X PATCH https://api.arouter.ai/api/v1/keys/{key_hash} \
-H "Authorization: Bearer lr_admin_xxxx" \
-H "Content-Type: application/json" \
-d '{"rate_limit": {"requests_per_minute": 60, "requests_per_day": 1000}}'
| 필드 | 타입 | 설명 |
|---|---|---|
requests_per_minute | integer | 분당 최대 요청 수. null = 무제한. |
requests_per_day | integer | 일당 최대 요청 수. null = 무제한. |
curl -X PATCH https://api.arouter.ai/api/v1/keys/{key_hash} \
-H "Authorization: Bearer lr_admin_xxxx" \
-H "Content-Type: application/json" \
-d '{"allowed_models": ["openai/gpt-5.4", "anthropic/claude-sonnet-4.6", "google/gemini-2.5-flash"]}'
curl -X PATCH https://api.arouter.ai/api/v1/keys/{key_hash} \
-H "Authorization: Bearer lr_admin_xxxx" \
-H "Content-Type: application/json" \
-d '{"allowed_providers": ["OpenAI", "Anthropic"]}'
curl -X PATCH https://api.arouter.ai/api/v1/keys/{key_hash} \
-H "Authorization: Bearer lr_admin_xxxx" \
-H "Content-Type: application/json" \
-d '{"enforce_zdr": true}'
조직 기본값
└── API Key 재정의
└── 요청별 제공업체 객체