Use this API to call the M2-her model, supporting role-playing, multi-turn conversations and other dialogue scenarios. Supports rich role settings (system, user_system, group, etc.) and example dialogue learning.
HTTP: Bearer Auth
Media type of the request body, should be set to application/json to ensure JSON format
application/json Model ID. Available value: M2-her
M2-her List of conversation messages containing dialogue history. For more message parameter details, please refer to Text Chat Guide
Whether to use streaming transmission, defaults to false. When set to true, responses will be returned in batches
Specifies the maximum length of generated content (in tokens), with an upper limit of 2048. Content exceeding the limit will be truncated. If generation stops due to length reason, try increasing this value.
x >= 1Temperature coefficient affecting output randomness, range (0, 1], default value is 1.0 for M2-her model. Higher values produce more random output; lower values produce more deterministic output
0 < x <= 1Sampling strategy affecting output randomness, range (0, 1], default value is 0.95 for M2-her model
0 < x <= 1Unique ID of this response
List of response choices
Unix timestamp (seconds) of response creation
Model ID used for this request
Object type. chat.completion for non-streaming, chat.completion.chunk for streaming
chat.completion, chat.completion.chunk Token usage statistics for this request
Whether input content hits sensitive words. If input content seriously violates regulations, the API will return a content violation error message with empty reply content
Type of sensitive word hit in input, returned when input_sensitive is true. Values: 1 Serious violation; 2 Pornography; 3 Advertisement; 4 Prohibited; 5 Abuse; 6 Violence/Terror; 7 Other
Whether output content hits sensitive words. If output content seriously violates regulations, the API will return a content violation error message with empty reply content
Type of sensitive word hit in output
Error status code and details