API Documentation

Chat API

Description
The interface parameters and response format are consistent with the openai api
Interface address changed to
https://api.grsai.com
Original interface
https://api.openai.com/v1/chat/completions
Changed to
https://api.grsai.com/v1/chat/completions
Example
The following is a simple example
Parameter description
model(required)
Type: string
Example: "gpt-4o-mini"
Description:
Model "gpt-4o-mini"
stream(required)
Type: boolean
Example: true
Description:
Whether to stream response
messages(required)
Type: array
Example: [{"role": "user", "content": "Hello!"}]
Description:
Dialog context information