ANTHROPIC_API_KEY configured on the server.curl --location --request POST '/api/v1/generate' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "Scrape the top 5 Hacker News stories and return them as JSON",
"language": "python",
"execute": true
}'{
"code": "import requests\nfrom bs4 import BeautifulSoup\n...",
"language": "python",
"packages": [
"requests",
"beautifulsoup4"
],
"model": "claude-sonnet-4-6-20250514",
"output": "1. Show HN: ...\n2. ...",
"error": "",
"exitCode": 0
}