---
title: "Discussion on \"“How AI APIs Work: Response Types, Hallucination, and How to Handle Them”\" | Hashnode"
description: "Discussion on \"“How AI APIs Work: Response Types, Hallucination, and How to Handle Them”\". Learn how AI APIs function, handle types of responses, tackle hallucinations, and optimize performance in applications with effective strategies"
url: "https://hashnode.com/posts/how-ai-apis-work-response-types-hallucination-and-how-to-handle-them/683b23186402a87de5f56962"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [“How AI APIs Work: Response Types, Hallucination, and How to Handle Them”](https://www.himal-acharya.com.np/how-ai-apis-work-response-types-hallucination-and-how-to-handle-them?utm_source=hashnode&utm_medium=feed)

Learn how AI APIs function, handle types of responses, tackle hallucinations, and optimize performance in applications with effective strategies

May 31, 2025 · 4 min read · himal-acharya.com.np  
Updated Jun 21, 2025  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[HIMAL](https://hashnode.com/@himalacharya)

@himalacharya · Kathmandu,Nepal

  
[View profile](https://hashnode.com/@himalacharya)

himal

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
