Getting Started

Welcome to the Zywrap API. Our platform allows you to execute complex, structured AI tasks by simply referencing a wrapperCode.

Instead of spending hours engineering prompts, you just pick a wrapper (e.g., "Summarize Article", "Generate SQL", "Cold Email") and send your data. We handle the complexity, model switching, and prompt optimization.


1. Making a Basic Request

All requests are sent to our unified endpoint:

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

A minimal request requires three things:

  • model: The AI provider you want to use (e.g. openai-gpt-4o).
  • wrapperCodes: The ID of the wrapper you found in the Explore page.
  • prompt: Your input data.
json
{
    "model": "openai-gpt-4o",
    "wrapperCodes": ["summarize_article"],
    "prompt": "Here is a long article about AI..."
}

2. Customizing Output (Overrides)

One of Zywrap's most powerful features is dynamic customization. You don't need to change the prompt to change the tone or style. Just pass override codes in the request body.

For example, to make the summary funny and suitable for a non-technical audience:

json
{
    "model": "openai-gpt-4o",
    "wrapperCodes": ["summarize_article"],
    "prompt": "Here is a long article about AI...",
    "audienceCode": "non_technical",
    "toneCode": "humorous"
}

Note: Available codes (like "humorous") can be found on the Wrapper Detail page or via the SDK options endpoint.

Next Steps

Ready to ship?

Start building with Zywrap today.

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