post
https://platform.perso.ai/api/v1/session//llm/v2/
Send messages using OpenAI-compatible format and receive streaming responses.
Request Parameters
| Parameter | Required | Description |
|---|---|---|
messages | Yes | Array of message objects with role and content |
tools | No | Array of tool definitions for function calling |
Message Format
Each message object must contain:
role:"user","assistant", or"system"content: The message text
Response Format
Returns a Server-Sent Events (SSE) stream with JSON objects containing:
status:"success"or"fail"type:"message","tool_call", or"finish"content: The response contentrole: The assistant's role
Example
Select "LLMV2Request" from the Examples dropdown to see the request format.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
400Bad Request - Invalid input data or parameters.
401Unauthorized - Invalid or missing authentication credentials.
403Forbidden - You do not have permission to perform this action.
404Not Found - The requested resource could not be found.
405Method Not Allowed - Invalid HTTP method
406Not Acceptable - Invalid request accept headers
415Unsupported Media Type - Invalid content type
500Internal Server Error - An unexpected error occurred.
