Skip to main content
Copy one of these prompts into Claude, ChatGPT, or any AI assistant to generate integration code for the /compress/raw/ endpoint. Start with the quick integration prompt to get something working fast, or use the production-ready prompt if you’re building for a live environment.

Prompts

Quick integration

Paste this prompt to generate a minimal Python function - useful for prototyping or one-off scripts.
Quick integration prompt

Production-ready

Paste this prompt to generate a fully typed Python service class with error handling, retries, and environment-variable-based configuration.
Production-ready prompt

FastAPI middleware

Paste this prompt to generate a FastAPI middleware that automatically compresses incoming request context before it reaches your route handlers.
FastAPI middleware prompt

What the production prompt generates

The production-ready prompt instructs the AI to apply six programming principles. Here is an example of the code it produces:
Principles encoded in the production-ready prompt: environment-variable config, typed result dataclass, custom exception class, single-responsibility service client, retry with exponential backoff, full type annotations.