> 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
- [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


---

# 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 dynamically by asking a question.

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

```
GET https://docs.mozilla.ai/api-reference.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.
