Connect an AI agent to Pikes

Pikes is a product-imagery engine an agent can drive: it generates and edits images that keep a real product's label, text and proportions intact, animates them, and files the results in the user's boards. Everything below runs against the user's own Pikes account and spends that account's credits.

What an agent can do#

Three ways in#

Path Best for Start here
MCP server Claude, ChatGPT, Cursor, any MCP client MCP setup
REST tool calls Your own orchestration code — the same tools over plain HTTP API reference
Product-shot endpoints One-call product photography from an image file API reference

The shortest possible start#

bash
# 1. Create a key in the app (Settings → API), then:
curl -X POST https://pikes.ai/mcp/tools/generate_image \
  -H "x-api-key: psk_…" -H "Content-Type: application/json" \
  -d '{"prompt":"a matte black bottle on wet stone","aspectRatio":"4:5"}'
bash
# Or hand it a product photo and get a studio shot back:
curl -X POST https://pikes.ai/api/product-shot \
  -H "x-api-key: psk_…" \
  -F "image=@bottle.jpg" \
  -F "aspect_ratio=4:5" \
  -F "resolution=4K"

Authentication#

API keys look like psk_…, are created in the app under Settings → API (or Settings → Claude / MCP), and are accepted as either header:

text
Authorization: Bearer psk_…
x-api-key: psk_…

Keys are stored only as a SHA-256 hash and can be revoked at any time. Key management itself is authenticated by the user's session — a key cannot mint or revoke keys. MCP clients that can complete OAuth 2.1 should do that instead of holding a key; see MCP setup.

What it costs#

Calls spend the account's credits, charged per generation and refunded if a render fails. The two fixed-price endpoints:

Call Credits
POST/api/product-shot at 1K 6
POST/api/product-shot at 4K 12

Tool calls through MCP or /mcp/tools/… are priced by the model and resolution they run at — get_account_info returns the current balance, and a 402 response carries the shortfall. Rates and plans are on pikes.ai.

Ground rules worth telling your agent#

More#

API reference · MCP setup · llms.txt · every page in one file · questions: leo@pikes.ai