Skip to content

Tài liệu API

ZoneToken cung cấp một REST API tương thích OpenAI. Bạn có thể dùng các SDK OpenAI chính thức, endpoint messages kiểu Anthropic, hoặc HTTP thuần.

Base URL

https://api.zonetoken.net/v1

Xác thực

Tất cả endpoint đều yêu cầu Bearer token trong header Authorization:

Authorization: Bearer <apiKey>

Các endpoint

MethodEndpointMô tả
GET/v1/modelsLiệt kê các model khả dụng cho tài khoản của bạn.
POST/v1/chat/completionsChat completions kiểu OpenAI.
POST/v1/responsesOpenAI Responses API.
POST/v1/messagesMessages kiểu Anthropic.

Content type

Gửi và nhận JSON. Thêm Content-Type: application/json cho mọi request có body.