#How to view the input and output of each request

2 messages · Page 1 of 1 (latest)

reef harborBOT
#

I'm an AI assistant - my answers may be incorrect and I cannot see screenshots. Please verify information with the OpenRouter docs.

To view the input and output of each request in OpenRouter:

  • Use the Activity page in your OpenRouter dashboard. It allows you to see requests broken down by user ID, including both the prompt (input) and the model's response (output).

  • The user parameter in your API requests can help you track requests by user:

    "The user parameter is available in the /activity page, in the exports from that page, and in the /generations API."
    User Tracking Guide

  • For API integration, your code will receive the output as a JSON response. For example, in Python:

    print(response.json()['choices'][0]['message']['content'])
    

    This prints the model's output; the input is whatever you sent in the "messages" array.
    User Tracking Guide

For more details, see the User Tracking Guide and API Reference.

-# This is an automated response powered by Answer HQ. Use !mute to stop the bot from responding.

The author you are looking for could not be found.

main wigeon
#

!mute