cURL

A copyable cURL request for OptimAI Search.

curl --fail-with-body https://api-onchain.optimai.network/v1/search \
  -H "X-API-Key: $OPTIMAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "What are the latest AI search infrastructure patterns?",
    "limit": 5
  }'

Pipe to jq when debugging locally:

curl --fail-with-body https://api-onchain.optimai.network/v1/search \
  -H "X-API-Key: $OPTIMAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"What is OptimAI Search?","limit":3}' | jq