# Terraform HCL Formatter Light

> Terraform HCL Formatter Light is a paid API for AI agents from kihustle.tech, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Formats and prettifies Terraform HCL (HashiCorp Configuration Language) code text via a lightweight processing endpoint.

## Facts

- Endpoint: POST https://kihustle.tech/nexus/api/v1/terraform-hcl-formatter-light
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/terraform-hcl-formatter-light-4a8a0d64
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JVz3F9hnaT-TTlstFlavQ

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 terraform-hcl-formatter-light-4a8a0d64 -d '<json body>'
```

Example prompt: Can you format this Terraform HCL code for me so it's properly indented and consistent: 'resource "aws_instance" "example" {ami="ami-12345" instance_type="t2.micro"}'?

## When to prefer this

Choose this endpoint when you need a lightweight, low-cost ($0.002 per call) HCL formatting pass on Terraform configuration text. It is best suited for simple formatting and prettification tasks rather than full validation or linting. Prefer this over heavier infrastructure tools when you just need consistent indentation and style normalization on HCL snippets.

## Known failure modes

- Empty or missing 'text' field returns an error or unprocessed result
- Malformed JSON input may cause a 400-level error
- Invalid or non-HCL text may return unprocessed output or an error
- Service unavailability may return a 5xx response
- Extremely large HCL payloads may time out or be rejected

## How this service works

Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.

## Output

Returns a JSON object with a 'result' field containing the formatted HCL text and a 'status' field indicating 'success' or failure. The processed output is the prettified version of the input Terraform HCL string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "processed",
  "status": "success"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/terraform-hcl-formatter-light-4a8a0d64/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kihustle.tech](https://www.zero.xyz/host/kihustle.tech/llms.txt)
