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"}]}'
Catatan: Penggunaan -X atau --request tidak diperlukan, POST sudah disimpulkan secara otomatis.
- Menggunakan variabel lingkungan proxy
HTTPS_PROXY == 'http://127.0.0.1:1082'
- Mencoba 127.0.0.1:1082...
- Terhubung ke 127.0.0.1 (127.0.0.1) port 1082
- Terowongan CONNECT: HTTP/1.1 dinegosiasikan
- Mengalokasikan buffer koneksi
- Membangun terowongan proxy HTTP ke hnd1.aihub.zeabur.ai:443
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
<
- Fase CONNECT selesai
- Terowongan CONNECT berhasil dibangun, respons 200
- ALPN: curl menawarkan h2,http/1.1
- (304) (OUT), TLS handshake, Client hello (1):
- CAfile: /etc/ssl/cert.pem
- CApath: none
- (304) (IN), TLS handshake, Server hello (2):
- (304) (IN), TLS handshake, Unknown (8):
- (304) (IN), TLS handshake, Certificate (11):
- (304) (IN), TLS handshake, CERT verify (15):
- (304) (IN), TLS handshake, Finished (20):
- (304) (OUT), TLS handshake, Finished (20):
- Koneksi SSL menggunakan TLSv1.3 / AEAD-AES128-GCM-SHA256 / [blank] / UNDEF
- ALPN: server menerima h2
- Sertifikat server:
- subject: CN=*.aihub.zeabur.ai
- tanggal mulai: Nov 4 00:00:00 2025 GMT
- tanggal kedaluwarsa: Dec 3 23:59:59 2026 GMT
- subjectAltName: host "hnd1.aihub.zeabur.ai" cocok dengan sertifikat "*.aihub.zeabur.ai"
- penerbit: C=US; O=Amazon; CN=Amazon RSA 2048 M04
- Verifikasi sertifikat SSL berhasil.
- Menggunakan HTTP/2
- [HTTP/2] [1] Membuka stream untuk 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
- Unggahan terkirim sepenuhnya: 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==
<
- Koneksi #0 ke host 127.0.0.1 tetap utuh
{"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"}}%