Skip to main content
Run recipe endpoints from Python or any HTTP client — list recipes, execute runs, and stream progress.
The user names a recipe and input; recipe.run or HTTP returns structured output or streaming progress.

How It Works

Quick Start

1

Run a recipe

2

Stream and handle errors


HTTP Client

Use the REST API from any language when the endpoint server is running (praisonai serve).

Response Models

Streaming events use event_type: started, progress, completed, or error.

Best Practices

Pass options={"timeout_sec": 30} (or higher) so long-running recipes fail predictably instead of hanging.
Reuse session_id across calls so conversation recipes retain context between requests.
Log result.trace["trace_id"] for debugging and observability correlation.
Use from praisonai import recipe when running in the same environment; use HTTP for remote or polyglot clients.

Endpoint Provider Registry

Register custom endpoint providers for serve and discovery

CLI Endpoints

Run and manage endpoints from the command line