messages
Validate Messages Request
Validate a chat completion request without executing it.
This endpoint performs a dry-run validation of the chat request, checking for:
- Message structure and content validation
- Tool definitions and tool_choice compatibility
- Parameter ranges and combinations
- Conversation flow and message ordering
- Response format compatibility with other options
Returns detailed validation results including errors. Use this endpoint to validate requests before sending them to the main chat endpoint.
Notes:
- No tokens are consumed during validation
- All validation rules match the main /messages endpoint
- Warnings indicate potential issues but don't prevent execution
- Request summary provides insights into the parsed request structure
post/v1/messages/validate
Request body
Response
Validation completed
Changes
No recorded changes to this endpoint across all 1 revision of this API.