POST / prompt - runs / run - sync;POST / prompt - runs / async;POST / prompt - runs / run - sse;
Prompts
Prompts Overview
Overview of the Prompts API endpoints
Copy
POST / prompt - runs / run - sync;POST / prompt - runs / async;POST / prompt - runs / run - sse;
The Prompts API allows you to run AI prompts with your project. You can trigger prompts with different streaming options based on your application needs.
Run a specific prompt and stream the response using HTTP/2 protocol. This is useful for real-time applications where you want to display the response as it’s being generated.
Run a specific prompt and stream the response using Server-Sent Events (SSE) protocol. This is useful for web applications that need to display the response as it’s being generated.