This API is compatible with OpenAI’s format.For more details, please refer to OpenAI’s official documentation.
Authorizations
Body
application/json
messages
(Developer message · object | System message · object | User message · object | Assistant message · object | Tool message · object | Function message · object)[]
required
Minimum length:
1- Developer message
- System message
- User message
- Assistant message
- Tool message
- Function message
Example:
Available options:
low, medium, high Available options:
minimal, low, medium, high Required range:
-2 <= x <= 2Required range:
-2 <= x <= 2Required range:
0 <= x <= 20- Text
- JSON schema
- JSON object
Example:
Required range:
1 <= x <= 128Example:
Required range:
-9223372036854776000 <= x <= 9223372036854776000- Function tool
- Custom tool
Available options:
none, auto, required Available options:
none, auto Required array length:
1 - 128 elementsRequired range:
0 <= x <= 2Example:
Required range:
0 <= x <= 1Example:
Example:
Available options:
auto, default, flex, scale, priority