Orbonomy LLM Code Generation is a paid API for AI agents from main.orbonomy.xyz, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).
Generates or processes code for a specified programming language using an LLM, returning a success response via pay-per-call API.
50+ pay-per-call API endpoints across accommodation, AI, content, fact-checking, and data services. Powered by x402 protocol.
Returns a JSON object with a boolean 'success' field indicating whether the code generation request was processed successfully. The generated code or content is expected to accompany the success flag, though the response schema is minimal.
POSThttps://main.orbonomy.xyz/api/llm/codeChoose this endpoint when you need pay-per-call LLM-based code generation without a subscription, especially when integrating with x402-compatible payment flows. Useful for agents that need on-demand code snippets in a specific programming language without committing to a monthly plan.
{
"text": "Write a function that takes a list of numbers and returns the sum of all even numbers",
"language": "Python"
}| Field | Type | Description |
|---|---|---|
| textrequired | string | |
| languagerequired | string |
{
"result": "**Even Number Sum Function**\n================================\n\nHere's a Python function that calculates the sum of all even numbers in a given list:\n\n```python\ndef sum_even_numbers(numbers):\n \"\"\"\n Returns the sum of all even numbers in the input list.\n\n Args:\n numbers (list): A list of integers.\n\n Returns:\n int: The sum of all even numbers in the list.\n\n Raises:\n TypeError: If the input is not a list or if the list contains non-integer values.\n \"\"\"\n if not isinstance(numbers, list):\n raise TypeError(\"Input must be a list\")\n if not all(isinstance(num, int) for num in numbers):\n raise TypeError(\"List must contain only integers\")\n\n return sum(num for num in numbers if num % 2 == 0)\n```\n\n**Example Use Cases**\n---------------------\n\n```python\nnumbers = [1, 2, 3, 4, 5, 6]\nprint(sum_even_numbers(numbers)) # Output: 12\n\nnumbers = [10, 20, 30, 40, 50]\nprint(sum_even_numbers(numbers)) # Output: 150\n\n# Test error handling\ntry:\n sum_even_numbers(\"not a list\")\nexcept TypeError as e:\n print(e) # Output: Input must be a list\n\ntry:\n sum_even_numbers([1, 2, \"not an integer\"])\nexcept TypeError as e:\n print(e) # Output: List must contain only integers\n```\n\n**Code Review**\n--------------\n\n* The function is concise and easy to understand.\n* It includes docstrings to provide documentation and usage information.\n* It uses type hints to specify the expected input and output types.\n* It includes error handling to catch potential issues, such as non-list inputs or non-integer values.\n* It uses the built-in `sum` function and a generator expression to calculate the sum of even numbers, making the code efficient and readable.\n\n**Performance**\n--------------\n\nThe function has a time complexity of O(n), where n is the length of the input list, because it iterates over the list once to calculate the sum of even numbers. This is an optimal time complexity for this problem, as we need to examine each element in the list at least once.\n\n**Style Improvements**\n---------------------\n\nThe code adheres to the PEP 8 style guide, which is the standard for Python code. It uses consistent indentation, spacing, and naming conventions, making the code easy to read and understand.",
"success": true,
"provider": "nim"
}| Field | Type | Description |
|---|---|---|
| success | boolean |
No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"