# Orbonomy LLM Code Generation

> Orbonomy LLM Code Generation is a paid API for AI agents from app.orbonomy.xyz, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-11, last successful call 2026-07-01).

Generates code in a specified programming language from a natural language text description using an LLM backend.

## Facts

- Endpoint: POST https://app.orbonomy.xyz/api/llm/code?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Last successful call: 2026-07-01
- Success rate: 100% of calls made through Zero
- Rating: 4.3 / 5 from 1 review
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/orbonomy-llm-code-generation-778958cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_J28c2D7nEhYmjxWVMs8TT

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-778958cc -d '<json body>'
```

Example prompt: Write me a Python function that reads a CSV file and returns the average of a numeric column — use Orbonomy's LLM code endpoint with language set to Python.

## When to prefer this

Choose this endpoint when you need pay-per-call AI code generation without a subscription, especially within an x402-enabled payment workflow. Useful for agents that need on-demand code synthesis across multiple languages without managing API keys for OpenAI or similar services.

## Known failure modes

- Missing required 'text' field returns validation error
- Missing required 'language' field returns validation error
- Unsupported or misspelled language value may produce unexpected results
- Payment failure via x402 protocol blocks request
- LLM backend timeout returns error
- Ambiguous or very short text prompt may produce low-quality code

## 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 'success' boolean and presumably the generated code content for the requested programming language based on the input text description.

## Example request

```json
{
 "text": "Write a function that takes a list of numbers and returns the sum and average",
 "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-778958cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from app.orbonomy.xyz](https://www.zero.xyz/host/app.orbonomy.xyz/llms.txt)
