Skip to main content
Copy one of these prompts into Claude, ChatGPT, or any AI assistant to generate integration code for the /v1/scaledown 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, and for porting an existing Jev (TypeSafe) integration.
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

Porting from Jev

If you have existing code calling POST https://openrouter.ai/api/alpha/decisions, porting to /v1/scaledown is mostly a base-URL and auth-header swap: Everything else - the state/questions request shape and the answers/usage response shape - is unchanged. See Overview for the full compatibility notes.