> For the complete documentation index, see [llms.txt](https://docs.aimlapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aimlapi.com/quickstart.md). Agents can also search and read this documentation through its [MCP server](https://docs.aimlapi.com/~gitbook/mcp).

# Quickstart

- [Documentation Map](https://docs.aimlapi.com/quickstart/readme.md): Map of the AI/ML API docs: find the model for a task and open its API reference. One API key, OpenAI-compatible base URL https://api.aimlapi.com/v1.
- [Quickstart](https://docs.aimlapi.com/quickstart/simple-model.md): Make a first request to any model with the OpenAI SDK, Python requests or curl: base URL https://api.aimlapi.com/v1, header Authorization: Bearer \<AIMLAPI\_KEY>.
- [Requesting more advanced models](https://docs.aimlapi.com/quickstart/simple-model/requesting-more-advanced-models.md)
- [MCP](https://docs.aimlapi.com/quickstart/mcp.md): Connect Claude Desktop, Claude Code, Cursor and other MCP clients to AI/ML API over OAuth, with no API key to copy: discover models and run inference.
- [CLI](https://docs.aimlapi.com/quickstart/cli.md): Connect Claude Code, Codex, OpenCode, Cline, OpenClaude, OpenClaw, Hermes Agent, zero or ZCode to AI/ML API with one command using the aimlapi CLI.
- [Agent setup skill](https://docs.aimlapi.com/quickstart/cli/aimlapi-setup.md): Instructions for a coding agent (Claude Code, Codex, OpenCode, Cline, OpenClaude, OpenClaw, Hermes Agent, zero or ZCode) to install the aimlapi CLI and connect itself to AI/ML API.
- [Agent skills](https://docs.aimlapi.com/quickstart/agent-skills.md): Agent skills that teach Claude Code, Cursor, Codex, Gemini CLI, OpenCode and other coding agents to write code against AI/ML API: install with \`npx @ai-ml.api/skills install\`, the Claude Code plugin,
- [Supported SDKs](https://docs.aimlapi.com/quickstart/supported-sdks.md): Use the OpenAI SDK (Python, JavaScript) and other SDKs with AI/ML API by setting base\_url to https://api.aimlapi.com/v1.
- [Toolbox](https://docs.aimlapi.com/quickstart/toolbox.md): Ready-made tools — web search, page extraction, screenshots, news and social data and more — callable with your AI/ML API key from agents, MCP clients and your own apps.


---

# 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.aimlapi.com/quickstart.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.
