Get Data
- POSTWeb Page Content
- POSTWeb Page Screenshot
- POSTYouTube Video Transcript
- POSTYouTube Channel Data
- POSTGet Twitter Users
- POSTGet Company Earnings Info
- POSTGet Company Financial Profile
- POSTGet Domain Information
- POSTGoogle News Data
- POSTYouTube Search Results
- POSTSearch Results
- POSTGet Recent Tweets
- POSTGet LinkedIn Profile
- POSTFind LinkedIn Profile
- POSTGet LinkedIn Activity
- POSTEnrich Company Data
- POSTGet Bluesky Posts
- POSTSearch Bluesky Posts
- POSTGet Instagram Profile
- POSTGet Instagram Followers
Advanced
Create Output
Agent Discovery
Use AI
Use GenAI (LLM)
Invoke a language model (LLM) to generate text based on input instructions, enabling creative and dynamic text outputs.
POST
/
action
/
invoke_llm
curl --request POST \
--url https://api-lr.agent.ai/v1/action/invoke_llm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"instructions": "What is an AI agent?",
"llm_engine": "gpt4o"
}'
{
"status": 200,
"response": "An AI agent is a software entity that performs tasks autonomously using artificial intelligence techniques. It perceives its environment through sensors, processes the information, and takes actions to achieve specific goals. AI agents can range from simple programs that perform basic tasks to complex systems capable of learning and adapting to new situations. They are used in various applications, including virtual assistants, autonomous vehicles, recommendation systems, and more. AI agents can be classified based on their capabilities, such as reactive agents, which respond to stimuli without internal state, and cognitive agents, which have memory and reasoning abilities."
}
Authorizations
Bearer token from your account (https://agent.ai/user/settings#credits)
Body
application/json
Response
200 - application/json
Use GenAI (LLM)
The response is of type object
.
curl --request POST \
--url https://api-lr.agent.ai/v1/action/invoke_llm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"instructions": "What is an AI agent?",
"llm_engine": "gpt4o"
}'
{
"status": 200,
"response": "An AI agent is a software entity that performs tasks autonomously using artificial intelligence techniques. It perceives its environment through sensors, processes the information, and takes actions to achieve specific goals. AI agents can range from simple programs that perform basic tasks to complex systems capable of learning and adapting to new situations. They are used in various applications, including virtual assistants, autonomous vehicles, recommendation systems, and more. AI agents can be classified based on their capabilities, such as reactive agents, which respond to stimuli without internal state, and cognitive agents, which have memory and reasoning abilities."
}
Assistant
Responses are generated using AI and may contain mistakes.