> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

> Reference for AI functions

# AI functions

## AI functions

AI functions invoke large language models (LLMs) and return their responses. Use a [`LOCATION`](/guides/security/location) to supply provider credentials and pass model-specific request payloads (JSON or plain text).

For a step-by-step introduction and examples, see [Getting started with AI](/guides/ai/getting-started-with-ai).

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
SELECT AI_QUERY(
    'us.meta.llama3-3-70b-instruct-v1:0',
    'What is AWS?',
    'my_bedrock_location') as result
```

**Returns (example):**

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
'AWS (Amazon Web Services) is a cloud computing platform by Amazon.'
```

### Available functions

* [`AI_EMBED_TEXT`](/reference-sql/functions-reference/ai/ai-embed-text)
* [`AI_QUERY`](/reference-sql/functions-reference/ai/ai-query)
* [`AWS_BEDROCK_AI_QUERY`](/reference-sql/functions-reference/ai/aws-bedrock-ai-query)
