RLM
Recursive Language Model endpoints.
OpenAI Responses-style endpoint for Recursive Language Model execution. Accepts a strict subset of the Responses request shape and proxies to the internal RLM backend.
API key in Authorization header using Bearer .
Strict OpenAI Responses-style request supported by the RLM gateway endpoint.
Model slug to run through the RLM backend.
String input or a text-only array of Responses message items.
Optional top-level instructions mapped to the backend root prompt.
When true, start the RLM run in the background and return an in-progress response resource that can be retrieved later.
falseOptional reasoning controls.
Must be false or omitted. Stateful Responses storage is not supported.
Must be false or omitted. Streaming is not supported for this route.
RLM-specific execution controls.
Successful Response
responsefalseBad Request
Unauthorized
Payment Required
Forbidden
Not Found
Conflict
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
POST /v1/rlm/responses HTTP/1.1
Host: platform.maniac.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 257
{
"background": false,
"input": "Summarize this document.",
"instructions": "Be concise and factual.",
"metadata": {
"source": "dashboard"
},
"model": "openai/gpt-4o",
"reasoning": {
"effort": "medium"
},
"rlm": {
"max_depth": 2,
"max_iterations": 30
},
"store": false,
"stream": false
}{
"created_at": 1710000000,
"id": "resp_123",
"metadata": {
"source": "dashboard"
},
"model": "openai/gpt-4o",
"object": "response",
"output": [
{
"content": [
{
"annotations": [],
"text": "Summary goes here.",
"type": "output_text"
}
],
"id": "msg_123",
"role": "assistant",
"status": "completed",
"type": "message"
}
],
"output_text": "Summary goes here.",
"status": "completed",
"store": false,
"usage": {
"input_tokens": 120,
"output_tokens": 30,
"total_tokens": 150
}
}Retrieve a background RLM response resource by id within the authenticated project.
API key in Authorization header using Bearer .
Successful Response
responsefalseBad Request
Unauthorized
Forbidden
Not Found
Conflict
Validation Error
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
GET /v1/rlm/responses/{response_id} HTTP/1.1
Host: platform.maniac.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"created_at": 1710000000,
"id": "resp_123",
"metadata": {
"source": "dashboard"
},
"model": "openai/gpt-4o",
"object": "response",
"output": [
{
"content": [
{
"annotations": [],
"text": "Summary goes here.",
"type": "output_text"
}
],
"id": "msg_123",
"role": "assistant",
"status": "completed",
"type": "message"
}
],
"output_text": "Summary goes here.",
"status": "completed",
"store": false,
"usage": {
"input_tokens": 120,
"output_tokens": 30,
"total_tokens": 150
}
}Last updated