---
title: "Test Case Generate (x402)"
method: GET
path: "/x402/v2/test-case-generate"
tags: ["x402"]
---

# Test Case Generate (x402)

`GET /x402/v2/test-case-generate`

## Request

- Base URL: `https://api.strale.io`
- URL: `https://api.strale.io/x402/v2/test-case-generate`
- Auth: none required

Generate test cases from a function description or signature. Includes happy path, edge cases, boundary tests, and error cases.

## Query parameters

- `language` string
- `include_edge_cases` boolean
- `function_description` string, required

## Response `200`

Success

- object
  - `test_cases` unknown[]
    - unknown
  - `total_cases` integer
  - `coverage_notes` string

## Other responses

- `402`: Payment required (x402 — pay with USDC on Base)

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
