API Reference

Proxy Endpoint

The core endpoint for executing AI wrappers. Send your prompt and optional overrides, and receive perfectly structured JSON in return.

Authentication

Authenticate your API requests by including your secret API key in the Authorization header.

Authorization: Bearer zw_live_xxxxxxxxxxxxxxxxxxxx

The Endpoint

POSThttps://api.zywrap.com/v1/proxy

Request Body

Parameters

wrapperCodesarray of stringsREQUIRED

An array of wrapper codes to execute. If multiple are provided, they will be executed sequentially as a chain.

promptstringOPTIONAL

Your input text, instructions, or data to be processed by the wrapper(s).

modelstringOPTIONAL

The specific AI model code to use (e.g., 'openai-gpt-4o'). If omitted, the platform default is used.

toneCodestringOPTIONAL

Override the wrapper's default tone.

styleCodestringOPTIONAL

Override the wrapper's default writing style.

formatCodestringOPTIONAL

Override the wrapper's default output formatting.

complexityCodestringOPTIONAL

Override the wrapper's default complexity level.

Code Examples

bash
curl -X POST https://api.zywrap.com/v1/proxy \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "wrapperCodes": ["summarize_article"],
    "prompt": "Your input text here..."
  }'
javascript
import axios from 'axios';

const response = await axios.post(
  'https://api.zywrap.com/v1/proxy',
  {
    // Model is optional (defaults to system setting)
    wrapperCodes: ['summarize_article'],
    prompt: 'Your input text here...'
  },
  {
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY'
    }
  }
);

console.log(response.data);
Ready to ship?

Start building with Zywrap today.

Stop wrestling with prompts. Integrate powerful, structured AI into your applications in minutes.