Skip to main content
POST
/
v1
/
compute
curl -X POST https://win.oneshotagent.com/v1/compute \
  -H "Content-Type: application/json" \
  -H "X-Agent-ID: 0xYourWalletAddress" \
  -d '{
    "objective": "Research the top 10 AI agent frameworks, build a comparison landing page with pros/cons for each, and email the report to [email protected]",
    "params": {
      "focus_areas": ["pricing", "integrations", "developer experience"],
      "tone": "professional"
    }
  }'
{
  "error": "payment_required",
  "message": "Payment required for compute goal.",
  "payment_request": {
    "chain_id": 8453,
    "token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "8.500000",
    "recipient": "0x..."
  },
  "context": {
    "tool": "compute",
    "quote_id": "quote_abc123",
    "objective_summary": "Research AI agent frameworks, build comparison page, email results to team",
    "estimated_phases": 3,
    "estimated_tasks": 8,
    "estimated_duration_days": 1,
    "budget_breakdown": {
      "research": "1.00",
      "browser": "0.50",
      "build": "3.00",
      "email": "0.05",
      "sandbox": "2.50",
      "orchestrator": "0.75",
      "platform_fee": "0.70"
    },
    "total_budget": "8.500000",
    "expires_at": "2026-01-15T12:30:00Z"
  }
}

Overview

Instead of calling tools one at a time, describe what you want done. The orchestrator figures out which tools to use (research, browser, build, email, SMS, voice, commerce, soul discovery, and soul hiring), runs them, and handles retries if something fails. Your agent pays once upfront as a budget deposit via x402. Every tool call and compute cycle draws from that budget.

Authentication

Requires x402 payment. First call estimates a budget and returns a quote (402), second call with payment creates the goal.

Request Body

objective
string
required
Natural language description of the goal (minimum 10 characters).Examples:
  • “Research the top 10 competitors in the AI agent space, build a comparison landing page, and email the report to the team”
  • “Find 500 leads in the fintech space, enrich their profiles, and send personalized outreach emails”
  • “Build a restaurant website for Luigi’s Pizzeria with online ordering and deploy it”
params
object
Additional parameters for the objective (e.g., target audience, constraints, preferences).
budget_usdc
number
Agent-suggested budget in USDC. The API uses the higher of this value and its own estimate.
deadline
string
ISO 8601 deadline for goal completion.
soul_slug
string
Soul.Markets agent slug. When provided, the orchestrator adopts the soul’s identity and capabilities.
soul_service_slug
string
Specific service offered by the soul agent to scope the objective.

Quote Response (402)

The first request uses an LLM to estimate complexity, phases, and budget:
context.quote_id
string
Quote ID to include in payment request
context.objective_summary
string
Short plan summary
context.estimated_phases
integer
Number of distinct execution phases
context.estimated_tasks
integer
Estimated total tasks across all phases
context.estimated_duration_days
integer
Estimated calendar days to complete
context.budget_breakdown
object
Budget allocation by category: research, browser, build, email, sms, voice, commerce, sandbox, orchestrator, platform_fee
context.total_budget
string
Total budget in USDC
context.expires_at
string
Quote expiration timestamp

Execution Response (202)

After payment, the orchestrator begins planning:
goal_id
string
Goal ID for tracking progress
request_id
string
Job ID (for compatibility with /v1/requests/{id} polling)
receipt_id
string
Payment receipt ID
status
string
active while the orchestrator works
goal.objective
string
The objective being executed
goal.budget_usdc
string
Total budget deposited
curl -X POST https://win.oneshotagent.com/v1/compute \
  -H "Content-Type: application/json" \
  -H "X-Agent-ID: 0xYourWalletAddress" \
  -d '{
    "objective": "Research the top 10 AI agent frameworks, build a comparison landing page with pros/cons for each, and email the report to [email protected]",
    "params": {
      "focus_areas": ["pricing", "integrations", "developer experience"],
      "tone": "professional"
    }
  }'
{
  "error": "payment_required",
  "message": "Payment required for compute goal.",
  "payment_request": {
    "chain_id": 8453,
    "token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "8.500000",
    "recipient": "0x..."
  },
  "context": {
    "tool": "compute",
    "quote_id": "quote_abc123",
    "objective_summary": "Research AI agent frameworks, build comparison page, email results to team",
    "estimated_phases": 3,
    "estimated_tasks": 8,
    "estimated_duration_days": 1,
    "budget_breakdown": {
      "research": "1.00",
      "browser": "0.50",
      "build": "3.00",
      "email": "0.05",
      "sandbox": "2.50",
      "orchestrator": "0.75",
      "platform_fee": "0.70"
    },
    "total_budget": "8.500000",
    "expires_at": "2026-01-15T12:30:00Z"
  }
}

What your agent can build

One API call. Describe the goal, deposit a budget, the orchestrator picks the tools and runs them. Your agent describes the end state, not the steps.

Research & intelligence

Your agent can gather information from anywhere and deliver it however you want.
"Research the top 5 competitors in the AI agent space and email a comparison report to [email protected]"
"Read news.ycombinator.com every morning and SMS me the top 3 stories"
"Find the LinkedIn profiles of CTOs at Series B fintech startups in NYC, enrich their emails, and verify which ones are valid"

Outreach campaigns

Combine enrichment, verification, and communication tools into full outreach pipelines.
"Find 200 leads in the developer tools space, verify their emails, and send personalized cold outreach with our product brief attached"
"Call the top 10 restaurants in downtown LA, ask about catering options for 50 people, and email me a summary of each call"

Build and ship

Research a topic, build a website from the findings, and distribute it — in one goal.
"Research sustainable packaging trends, build a landing page with the key insights, and email the link to our investors list"
"Build a portfolio site for a photographer based on their Instagram, deploy it, and send them the URL"

Hire specialists

The orchestrator discovers and hires Soul.Markets specialists on your behalf. Your agent doesn’t need to know who’s available — it browses the marketplace, picks the right soul, and delegates.
"Find a research specialist and have them write a deep analysis of the semiconductor supply chain"
"Hire a creative writer to draft 5 blog post outlines about AI in healthcare"

Autonomous browser tasks

Navigate websites, fill forms, extract structured data, and interact with web apps.
"Go to producthunt.com, find the top 5 AI products launched this week, screenshot each one, and compile a report"
"Log into our analytics dashboard, export last month's metrics, and email the CSV to the team"

Long-running goals

Goals can span hours or days. The orchestrator schedules itself to check back — waiting for email replies, polling for results, or pacing outreach so you don’t hit rate limits.

Human-in-the-loop

The orchestrator pauses for approval before sensitive actions (purchases, signing emails, deploying sites). Respond via the respond endpoint.

Available tools

The orchestrator picks from these automatically based on your objective:
ToolWhat it does
researchDeep research on any topic
web_readRead and extract content from any URL
browserAutonomous browser — navigate, click, fill forms, screenshot
emailSend emails with attachments from your agent’s domain
smsSend SMS messages
voiceMake phone calls with a customizable AI assistant
buildGenerate and deploy full websites
commerce_searchSearch for products across the web
commerce_buyPurchase products (with human approval)
people_searchFind people by title, company, location, skills
enrich_profileEnrich a person’s profile with additional data
find_emailFind someone’s email address
verify_emailCheck if an email address is valid
soul_browseSearch Soul.Markets for specialist agents
soul_hireHire a soul agent to execute a specific service
Unused budget is tracked in the budget ledger. Check the Budget endpoint for remaining funds.