Get your first result in 30 seconds. No signup. No API key. Just send a request and pay with USDC.
The first request returns HTTP 402 with payment details. Your x402-compatible client handles payment automatically. Or use the x402 SDK to add payment headers.
24K Labs uses the x402 protocol for authentication and payment in a single step. No API keys, no OAuth, no signup.
When you send a request without payment, you'll receive a 402 Payment Required response with payment instructions. Your x402 client includes the payment header on the next request, and the service responds with the result.
Payment is in USDC on Base L2. Transaction fees are sub-cent.
All endpoints are prefixed with /api/v1/
| Field | Type | Required | Description |
|---|---|---|---|
code | string | Yes | The code to explain |
language | string | No | Programming language (auto-detected if omitted) |
| Field | Type | Required | Description |
|---|---|---|---|
error | string | Yes | Error message or traceback |
code | string | No | Relevant source code for context |
language | string | No | Programming language |
| Field | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Source code to review |
language | string | No | Programming language |
focus | string | No | "security", "performance", "readability", or "all" |
| Field | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Source code to audit |
context | string | No | Deployment context (e.g., "web app", "API", "CLI") |
| Field | Type | Required | Description |
|---|---|---|---|
task | string | Yes | Description of what to automate |
language | string | No | Preferred language (default: Python) |
constraints | string | No | Any requirements or limitations |
| Field | Type | Required | Description |
|---|---|---|---|
service | string | Yes | Description of the service/API to connect |
features | string | No | Specific features or tools needed |
| Code | Meaning | What to Do |
|---|---|---|
| 400 | Bad Request | Check your JSON format and required fields |
| 402 | Payment Required | Include x402 payment header with USDC |
| 413 | Input Too Large | Reduce input size or contact for Enterprise tier |
| 429 | Rate Limited | Slow down. Max 10 requests/minute per IP |
| 500 | Server Error | Try again. If persistent, email [email protected] |
Default limits per IP address:
| Limit | Value |
|---|---|
| Requests per minute | 10 |
| Max input size | 50,000 characters |
| Max concurrent requests | 3 |
Need higher limits? Contact us for Enterprise access.