> For the complete documentation index, see [llms.txt](https://docs.mozilla.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mozilla.ai/api-reference.md).

# API Reference

- [AnyLLM](https://docs.mozilla.ai/api-reference/any-llm.md): The AnyLLM class - provider interface with metadata access and reusability
- [Responses](https://docs.mozilla.ai/api-reference/responses.md): OpenResponses API for agentic AI systems
- [Completion](https://docs.mozilla.ai/api-reference/completion.md): Create chat completions with any provider
- [Embedding](https://docs.mozilla.ai/api-reference/embedding.md): Create text embeddings with any provider
- [Decide](https://docs.mozilla.ai/api-reference/decide.md): Answer named yes/no, choice and score questions about a state
- [Messages](https://docs.mozilla.ai/api-reference/messages.md): Anthropic Messages API for all providers
- [Exceptions](https://docs.mozilla.ai/api-reference/exceptions.md): Unified exception hierarchy for all providers
- [List Models](https://docs.mozilla.ai/api-reference/list-models.md): List available models for a provider
- [Batch](https://docs.mozilla.ai/api-reference/batch.md): Process multiple requests asynchronously at lower cost
- [Types](https://docs.mozilla.ai/api-reference/completion-1.md): Data models and types for completion operations
- [Responses](https://docs.mozilla.ai/api-reference/completion-1/responses.md): Data models for the OpenResponses API
- [Messages](https://docs.mozilla.ai/api-reference/completion-1/messages.md): Data models for the Anthropic Messages API
- [Model](https://docs.mozilla.ai/api-reference/completion-1/model.md): Data models for model operations
- [Provider](https://docs.mozilla.ai/api-reference/completion-1/provider.md): Data models for provider operations
- [Batch](https://docs.mozilla.ai/api-reference/completion-1/batch.md): Data models for batch operations
- [Decide](https://docs.mozilla.ai/api-reference/completion-1/decide.md): Question and answer models for the decide API


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mozilla.ai/api-reference.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
