curl -v -X POST https://hnd1.aihub.zeabur.ai/v1/chat/completions \
-H "Authorization: Bearer sk-RHb3riFzAGJb7D2QxJsekw" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-5", "messages": [{"role": "user", "content": "Hello"}]}'
참고: -X 또는 --request는 불필요합니다. POST는 자동으로 추론됩니다.
- 프록시 환경 변수
HTTPS_PROXY == 'http://127.0.0.1:1082' 사용
- 127.0.0.1:1082에 연결 시도 중...
- 127.0.0.1 (127.0.0.1) 포트 1082에 연결됨
- CONNECT 터널: HTTP/1.1 협상 완료
- 연결 버퍼 할당
- hnd1.aihub.zeabur.ai:443으로 HTTP 프록시 터널 설정
CONNECT hnd1.aihub.zeabur.ai:443 HTTP/1.1
Host: hnd1.aihub.zeabur.ai:443
User-Agent: curl/8.7.1
Proxy-Connection: Keep-Alive
< HTTP/1.1 200 Connection established
<
- CONNECT 단계 완료
- CONNECT 터널 설정됨, 응답 200
- ALPN: curl이 h2,http/1.1 제공
- (304) (OUT), TLS 핸드셰이크, Client hello (1):
- CAfile: /etc/ssl/cert.pem
- CApath: none
- (304) (IN), TLS 핸드셰이크, Server hello (2):
- (304) (IN), TLS 핸드셰이크, Unknown (8):
- (304) (IN), TLS 핸드셰이크, Certificate (11):
- (304) (IN), TLS 핸드셰이크, CERT verify (15):
- (304) (IN), TLS 핸드셰이크, Finished (20):
- (304) (OUT), TLS 핸드셰이크, Finished (20):
- TLSv1.3 / AEAD-AES128-GCM-SHA256 / [blank] / UNDEF를 사용한 SSL 연결
- ALPN: 서버가 h2 수락
- 서버 인증서:
- subject: CN=*.aihub.zeabur.ai
- 시작 날짜: Nov 4 00:00:00 2025 GMT
- 만료 날짜: Dec 3 23:59:59 2026 GMT
- subjectAltName: 호스트 "hnd1.aihub.zeabur.ai"가 인증서의 "*.aihub.zeabur.ai"와 일치함
- 발급자: C=US; O=Amazon; CN=Amazon RSA 2048 M04
- SSL 인증서 확인 성공.
- HTTP/2 사용
- [HTTP/2] [1] https://hnd1.aihub.zeabur.ai/v1/chat/completions에 대한 스트림 열림
- [HTTP/2] [1] [:method: POST]
- [HTTP/2] [1] [:scheme: https]
- [HTTP/2] [1] [:authority: hnd1.aihub.zeabur.ai]
- [HTTP/2] [1] [:path: /v1/chat/completions]
- [HTTP/2] [1] [user-agent: curl/8.7.1]
- [HTTP/2] [1] [accept: /]
- [HTTP/2] [1] [authorization: Bearer sk-RHb3riFzAGJb7D2QxJsekw]
- [HTTP/2] [1] [content-type: application/json]
- [HTTP/2] [1] [content-length: 70]
POST /v1/chat/completions HTTP/2
Host: hnd1.aihub.zeabur.ai
User-Agent: curl/8.7.1
Accept: /
Authorization: Bearer sk-RHb3riFzAGJb7D2QxJsekw
Content-Type: application/json
Content-Length: 70
- 업로드 완료: 70 bytes
< HTTP/2 401
< content-type: application/json
< content-length: 198
< date: Thu, 21 May 2026 00:34:28 GMT
< server: uvicorn
< x-cache: Error from cloudfront
< via: 1.1 0391390c8a406ba1a7bd713ed630aaa8.cloudfront.net (CloudFront)
< x-amz-cf-pop: LAX53-P2
< x-amz-cf-id: nFIaSA_Emt1W05rOE1WKZsbRZDIAN1hnBIb6uKdXvkLnD9f5VbBZ5Q==
<
- 호스트 127.0.0.1에 대한 연결 #0 유지됨
{"error":{"message":"user not allowed to access model. This user can only access models=['no_default_models']. Tried to access gpt-5","type":"user_model_access_denied","param":"model","code":"401"}}%