# Orbonomy LLM Code Generation

> 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.

## Facts

- Endpoint: POST https://main.orbonomy.xyz/api/llm/code
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/orbonomy-llm-code-generation-89025e69
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z-1nIRbSqjj17iT6JNr63

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability orbonomy-llm-code-generation-89025e69 -d '<json body>'
```

Example prompt: Can you write me a Python function that reads a CSV file and returns the column headers as a list? Use Orbonomy's LLM code endpoint with 'Python' as the language.

## When to prefer this

Choose 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.

## Known failure modes

- Missing required 'text' or 'language' fields returns a validation error
- Unsupported or unrecognized programming language may cause generation failure
- Payment failure via x402 protocol results in 402 Payment Required
- Malformed or overly complex prompt may yield a low-quality or empty code output
- Service downtime on main.orbonomy.xyz returns 5xx errors

## How this service works

50+ pay-per-call API endpoints across accommodation, AI, content, fact-checking, and data services. Powered by x402 protocol.

## Output

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.

## Example request

```json
{
 "text": "Write a function that takes a list of numbers and returns the sum of all even numbers",
 "language": "Python"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text",
  "language"
 ],
 "properties": {
  "text": {
   "type": "string"
  },
  "language": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/orbonomy-llm-code-generation-89025e69/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from main.orbonomy.xyz](https://www.zero.xyz/host/main.orbonomy.xyz/llms.txt)
