xpay tools logo
  • Tools
  • Collections
  • Skills
  • Docs
  • xpay.sh
  1. Home
  2. ›
  3. Code Runner
  4. ›
  5. Execute Code With Variables

Code Runner
Code Runner
Tool

Execute Code With Variables

execute_code_with_variables

Execute JavaScript or Python code with dynamic input variables that can be defined and passed as key-value pairs


Pricing

Per call

$0.01

Model

flat


Pay only for what you use. No subscriptions.
Inputs

input

string

variables

string

code *

string

enableNetworking

boolean

language *

string

memoryLimit

number

timeout

number
Try It
API
MCP Config
Input Parameters
input
Additional input data for the program (stdin)
variables
Dynamic input variables as key-value pairs. Can be a JSON object or a JSON string (e.g., {"name": "John", "age": 25, "items": [1,2,3]} or "{\"name\": \"John\", \"age\": 25}")
code *
Code to execute
​
language *
Programming language to execute
memoryLimit
Memory limit in MB (max 512)
timeout
Execution timeout in milliseconds (max 60000)
Cost per run
Execution cost
$0.01
Deducted from your xPay allowance
xpay tools logo

Marketplace for AI Capabilities. Run agents, tools & prompts with pay-per-use micropayments.

or ask your AI app
Popular Tools
FirecrawlTavilyExaHunterPerplexityRecraftIdeogramFlux
Collections
AI Image & MediaContent & ResearchDev ToolsFinanceLead GenWeb ScrapingCompetitive Intel
Developers
DocumentationAPI ReferenceQuickstartSDKsSkillsskill.mdllms.txt
Resources
The Agentic EconomyAgentic CommerceAgent Frameworksx402 ProtocolBlog
Company
About xpayxpay.shGitHubDiscordTwitter / X

© 2026 Agentically Inc. All rights reserved.
Privacy PolicyTerms of Service
✦
xpay Assistant
Execute Code With Variables by Code Runner

Ask me about tools, pricing, or how to connect

How does this tool work?
What parameters does it accept?
Show me a usage example
DocsCollectionsExplore