# pagos.andreax.dev Code Generation from Description

> pagos.andreax.dev Code Generation from Description is a paid API for AI agents from pagos.andreax.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-13).

Generates source code from a natural-language description of what the code should do

## Facts

- Endpoint: GET https://pagos.andreax.dev/api/taller/peaje/codigo
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pagos-andreax-dev-code-generation-from-description-99e3c1b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SA1xG_M3lRJCTcVzI6riJ

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 pagos-andreax-dev-code-generation-from-description-99e3c1b5
```

Example prompt: Can you generate code for me that connects to a REST API, fetches a list of users, and prints their names to the console?

## When to prefer this

Choose this endpoint when you need to rapidly generate code from a natural language description without involving a full IDE or coding assistant. It is ideal for agents automating developer workflows, scaffolding functions, generating boilerplate, or integrating code generation as a step in a larger pipeline. Prefer this over generic LLM inference endpoints when you specifically want code output and a predictable, pay-per-call cost structure.

## Known failure modes

- Missing 'input' query parameter returns an error
- Ambiguous or very vague description may produce non-functional or generic code
- Overly complex requirements may yield incomplete implementations
- LLM backend downtime or rate limiting returns a 5xx error
- Very long descriptions may be truncated or cause timeout
- Non-code requests (e.g. asking for text or math) may return unexpected output

## How this service works

Genera código desde una descripción. Para agentes/devs. input=qué debe hacer.

## Output

Returns generated source code that implements the described functionality. The response includes a working code snippet or full implementation matching the natural language input provided, ready for use by developers or agents.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "description": "qué debe hacer el código"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pagos-andreax-dev-code-generation-from-description-99e3c1b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pagos.andreax.dev](https://www.zero.xyz/host/pagos.andreax.dev/llms.txt)
