Skip to main content

Overview

Rose Agents are autonomous AI systems that can execute complex, multi-step tasks. Each agent has access to powerful tools including web search, browser automation, code execution, and the ability to spawn sub-agents.

Create an Agent

x-api-key
string
required
Your Rose API key

Body Parameters

goal
string
required
The task for the agent to accomplish. Be specific and detailed.
model
string
default:"rose-1-lite"
The model to use:
  • rose-1-lite - Fast, cost-effective
  • rose-1-ultra - High quality reasoning

Request

curl -X POST "https://navi-j9a9.onrender.com/api/agents" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "goal": "Research the top 5 AI startups founded in 2024 and summarize their products",
    "model": "rose-1-lite"
  }'

Response

{
  "agent_id": "550e8400-e29b-41d4-a716-446655440000",
  "goal": "Research the top 5 AI startups founded in 2024...",
  "model": "rose-1-lite",
  "status": "ACTIVE",
  "progress": 0,
  "created_at": "2024-01-15T10:30:00Z"
}

Get Agent Status

Poll this endpoint to check agent progress and retrieve messages.
id
string
required
The agent ID returned from creation

Request

curl "https://navi-j9a9.onrender.com/api/agents/550e8400-e29b-41d4-a716-446655440000" \
  -H "x-api-key: YOUR_API_KEY"

Response

{
  "agent": {
    "agent_id": "550e8400-e29b-41d4-a716-446655440000",
    "goal": "Research the top 5 AI startups...",
    "model": "rose-1-lite",
    "status": "ACTIVE",
    "status_message": "Searching for AI startups...",
    "progress": 0.35,
    "token_count": 15420,
    "message_count": 12,
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-15T10:32:15Z"
  },
  "messages": [
    {
      "message_id": "msg-001",
      "timestamp": "2024-01-15T10:30:00Z",
      "text": "Research the top 5 AI startups...",
      "role": "USER"
    },
    {
      "message_id": "msg-002",
      "timestamp": "2024-01-15T10:30:05Z",
      "text": "I'll search for recently founded AI startups...",
      "role": "ASSISTANT"
    }
  ]
}

Agent Statuses

StatusDescription
STARTING_UPAgent is initializing
ACTIVEAgent is working on the task
PAUSEDAgent is paused (can be resumed)
COMPLETEDTask completed successfully
FAILEDTask failed (check status_message)
OUT_OF_CREDITSRan out of credits

Pause an Agent

curl -X POST "https://navi-j9a9.onrender.com/api/agents/550e8400.../pause" \
  -H "x-api-key: YOUR_API_KEY"

Resume an Agent

curl -X POST "https://navi-j9a9.onrender.com/api/agents/550e8400.../resume" \
  -H "x-api-key: YOUR_API_KEY"

Delete an Agent

curl -X DELETE "https://navi-j9a9.onrender.com/api/agents/550e8400..." \
  -H "x-api-key: YOUR_API_KEY"

Agent Tools

Every Rose agent has access to these tools:
ToolDescription
web_searchSearch the web using Perplexity AI
deep_researchComprehensive research on any topic
spawn_sub_agentsSpawn up to 10,000 parallel sub-agents
spawn_browser_agentControl a browser for web tasks
spawn_claude_code_agentExecute code in a sandbox
find_allDiscover entities matching criteria
enrichEnrich entity data from the web
monitorMonitor web pages for changes
message_personSend messages via SMS/email

Example: Polling for Completion

import requests
import time

API_KEY = "YOUR_API_KEY"
BASE_URL = "https://navi-j9a9.onrender.com/api"

# Create agent
response = requests.post(
    f"{BASE_URL}/agents",
    headers={"x-api-key": API_KEY, "Content-Type": "application/json"},
    json={"goal": "Find the current Bitcoin price"}
)
agent_id = response.json()["agent_id"]

# Poll until complete
while True:
    status = requests.get(
        f"{BASE_URL}/agents/{agent_id}",
        headers={"x-api-key": API_KEY}
    ).json()

    print(f"Status: {status['agent']['status']}, Progress: {status['agent']['progress']:.0%}")

    if status["agent"]["status"] in ["COMPLETED", "FAILED"]:
        break

    time.sleep(2)

# Print final messages
for msg in status["messages"]:
    print(f"[{msg['role']}] {msg['text'][:200]}...")

Pricing

Agents consume credits as they work:
  • Token usage is billed per-model at standard rates
  • Tool usage (web search, browser, etc.) has additional costs
  • Monitor your usage in the Dashboard
Agents can spawn sub-agents, which inherit the parent’s credit balance. Set appropriate limits for complex tasks.