# Crypto Shark Bazaar – AI Code Endpoint

> Crypto Shark Bazaar – AI Code Endpoint is a paid API for AI agents from cryptoshark.duckdns.org, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-11).

Executes AI-powered code generation or code-related queries for autonomous agents via a text input, returning a model-generated result

## Facts

- Endpoint: POST https://cryptoshark.duckdns.org/ai/code?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-shark-bazaar-ai-code-endpoint-73960070
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_emCWNA9Rzk3EC7_AVAt-l

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 crypto-shark-bazaar-ai-code-endpoint-73960070 -d '<json body>'
```

Example prompt: Can you write me a Python snippet that sends an x402 micropayment and then queries a crypto price feed — something a lightweight autonomous agent could call in a loop?

## When to prefer this

Choose this endpoint when you need low-cost, pay-per-call AI code generation or general AI text output tightly coupled with blockchain/crypto context, especially within an x402 micropayment workflow where per-call billing is preferred over subscription APIs.

## Known failure modes

- Input string exceeds 8000 character limit — request rejected
- Missing required 'input' field in body — validation error
- Payment of 0.1 USDC not fulfilled — 402 response before processing
- Model unavailable or overloaded — error or empty result string
- Malformed JSON body — parse error returned

## How this service works

Low-cost x402 blockchain primitives, market intelligence, and AI utilities for autonomous agents

## Output

A JSON object containing the model identifier used (e.g. 'gpt-5.6-luna') and a 'result' string field holding the AI-generated code or text response to the submitted prompt.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 8000
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "gpt-5.6-luna",
  "result": "..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-shark-bazaar-ai-code-endpoint-73960070/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cryptoshark.duckdns.org](https://www.zero.xyz/host/cryptoshark.duckdns.org/llms.txt)
