---
title: "Free live code-metrics trial"
method: POST
path: "/trials/developer.code-metrics"
tags: ["developer"]
---

# Free live code-metrics trial

`POST /trials/developer.code-metrics`

## Request

- Base URL: `https://apiacre.com`
- URL: `https://apiacre.com/trials/developer.code-metrics`
- Auth: none required

Run one bounded developer.code-metrics execution per client per hour without a wallet or payment. The paid service contract and price remain unchanged.

## Request body

- CodeMetricsInput
  - `code` string, required
  - `language` string

## Response `200`

Successful Response

- ServiceResponse
  - `request_id` string, required
  - `service` string, required
  - `version` string
  - `data` object, required
  - `meta` ServiceMeta, required
    - `duration_ms` integer, required
    - `cached` boolean
    - `sources` string[]
    - `warnings` string[]
    - `next_actions` ServiceNextAction[]
      - `service` string, required
      - `title` string, required
      - `reason` string, required
      - `method` 'POST'
      - `path` string, required
      - `price` string, required
      - `input_template` object, required
      - `use_output` string, required
      - `handoff_path` string, required
      - `checkout_path` string, required
      - `sample_path` string, nullable, required
      - `maximum_atomic_usdc` string, required
      - `handoff_payment_required` false
      - `executes_automatically` false
      - `authorization_required` boolean

## Other responses

- `400`: Payment headers are not accepted on the free route
- `413`: Trial request exceeds the 200000-byte cap
- `422`: Validation Error
- `429`: The per-client hourly trial is already used
- `503`: The bounded in-memory trial pool is full

---

[API](https://skmtc.dev/apiacre/apis/api-acre.md) · [All operations](https://skmtc.dev/apiacre/apis/api-acre/llms.txt) · [OpenAPI document](https://skmtc.dev/apiacre/apis/api-acre/revisions/0ba942b920ad?raw)
