# AI Gateway

AI Gateway nodes let you call AI providers from the Flow Editor using a consistent input/output format. These nodes work with [AI Routes](/documentation-and-resources/components-and-data/ai-routes.md) and [AI Connections](/documentation-and-resources/components-and-data/connections/types-of-connections/ai-connections.md) to manage providers, models, and failover.

## Where to Find These Nodes

In the Flow Editor, within the left palette under **AI Gateway** category.

## Node Reference

* [AI Generate](/documentation-and-resources/components-and-data/flows/node-reference/ai-gateway/ai-generate.md) - Send requests to AI Gateway and receive structured responses.
* [AI Tool](/documentation-and-resources/components-and-data/flows/node-reference/ai-gateway/ai-tool.md) - Define a tool that the model can call from AI Generate.
* [AI Tool Response](/documentation-and-resources/components-and-data/flows/node-reference/ai-gateway/ai-tool-response.md) - Return tool results back into the AI Generate request.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.contextual.io/documentation-and-resources/components-and-data/flows/node-reference/ai-gateway.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
