Model API request
This guide covers the general-purpose /responses API. It is an additional platform API, not the RLM quickstart. To reason over a database or files, start with Run your first RLM.
mrl
mrl "What is the capital of France?" --model claude-sonnet-5
REST API
curl https://api.modelrelay.ai/api/v1/responses \
-H "Authorization: Bearer $MODELRELAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-5",
"input": "What is the capital of France?"
}'
Response shape
POST /responses returns a response object containing output items, usage, model information, and a stop reason. Use the full response shape when you need tools, structured output, or request controls.
See the Responses API reference for the exact schema
and the client support matrix for supported integration surfaces.