Severe API Latency

Hi MindStudio Community,

After migrating from the deprecated Embed feature to a custom frontend (HTML/JS + PHP on cPanel), API responses now take 15+ seconds—even for simple queries. This occurs across all LLMs and persists in Postman, confirming the delay is API-side.

Key Details:

Identical queries via Embed took <5 seconds; now 15+ seconds via API.

No improvement after testing different LLMs, prompts, or infrastructure.

Critical Questions:

Are there optimizations (payload trimming, headers, streaming) to reduce latency?

Did Embed have hidden backend optimizations now missing in API?

Can caching or async processing mitigate this?

Any insights would save my project! :folded_hands:

Fernando