# GPT Code Audit Service

> GPT Code Audit Service is a paid API for AI agents from gpt.558686.xyz, paid per call via x402, $1.5/call, status unknown (last checked 2026-10-02).

Performs an AI-powered security and quality audit of submitted source code, returning findings and recommendations.

## Facts

- Endpoint: GET https://gpt.558686.xyz/v1/audit/code?utm_source=zero.xyz
- Price: $1.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gpt-code-audit-service-05a05e84
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N_lKB6QySanPWjCv5tYc3

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 gpt-code-audit-service-05a05e84
```

Example prompt: Can you audit this Python function for security vulnerabilities and code quality issues? Here it is: `def login(user, pwd): query = 'SELECT * FROM users WHERE username=' + user + ' AND password=' + pwd`

## When to prefer this

Choose this endpoint when you need a quick, automated AI-driven security and quality audit of a code snippet without setting up a full static analysis pipeline. Best suited for individual functions or modules rather than entire large codebases.

## Known failure modes

- Empty or missing input code returns an error or empty findings
- Very large code submissions may be truncated or rejected
- Non-code text input may produce irrelevant or generic feedback
- Network timeout for unusually complex or long code snippets
- Payment failure (402) if USDC balance is insufficient for the $1.50 call fee

## Output

Returns an audit report containing identified security vulnerabilities, code quality issues, potential bugs, severity ratings, and actionable recommendations for improving the submitted code.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string",
   "description": "Source code to audit (required, max 500KB)"
  },
  "context": {
   "type": "string",
   "description": "Extra context about the codebase"
  },
  "filename": {
   "type": "string",
   "description": "Filename for context"
  },
  "language": {
   "type": "string",
   "description": "Programming language (auto-detected if omitted)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gpt-code-audit-service-05a05e84/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gpt.558686.xyz](https://www.zero.xyz/host/gpt.558686.xyz/llms.txt)
