
Running Graphs in Production
Serving the graph API.
Running Graphs in Production
The API Layer
You expose your graph typically as a REST API.
POST /thread/{id}/runs: Submit a new user message.GET /thread/{id}/state: Get current status.
LangGraph Cloud provides this out-of-the-box. Otherwise, you wrap graph.invoke in FastAPI.