Lodol Docs

OpenRouter

API actions for the OpenRouter integration.

OpenRouter

Connect to OpenRouter to generate responses from your selected hosted models.


Generate a response with OpenRouter

Sends a prompt to an OpenRouter-hosted model and returns the generated response text.

Parameters

ParameterTypeRequiredDescription
promptstringYesThe prompt to send to the selected OpenRouter model
modelstringNoOptional OpenRouter model id to target (defaults to a recommended OpenRouter model)

Response

{
  "model": "mock_value",
  "response_text": "mock_value",
  "status": "mock_value"
}

On this page