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

# Box AI API

export const SignupCTA = ({children}) => {
  return <div className="flex flex-wrap items-center gap-4 p-5 rounded-lg border border-gray-200 dark:border-gray-700 my-6" style={{
    background: "linear-gradient(135deg, rgba(0, 97, 213, 0.06), rgba(0, 97, 213, 0.02))"
  }}>
      <div className="flex-1 text-sm leading-relaxed text-gray-700 dark:text-gray-300" style={{
    minWidth: "280px"
  }}>
        {children}
      </div>
      <div className="flex flex-col items-center gap-2">
        <a href="https://account.box.com/signup/developer#ty9l3" className="signup-cta-button inline-flex items-center whitespace-nowrap px-5 py-2 text-sm font-semibold text-white no-underline">
          Get started for free
        </a>
        <a href="https://account.box.com/developers/console" className="signup-cta-login text-xs text-gray-500 dark:text-gray-400 no-underline whitespace-nowrap">
          Already have an account? Log in
        </a>
      </div>
    </div>;
};

export const Link = ({href, children, className, ...props}) => {
  const localizedHref = href;
  return <a href={localizedHref} className={className} {...props}>
      {children}
    </a>;
};

The Box AI API summarizes your
content, answers questions, generates text, and extracts structured metadata
through a single API. The API is available to all Box customers on Business plans and above.

<SignupCTA>
  A free developer account gives you access to the Box AI API. See the benefits of document
  summarization, question answering, and metadata extraction for yourself.
</SignupCTA>

## Capabilities

| Capability                      | Description                                                                     | Endpoint                                                                                |
| ------------------------------- | ------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| **Ask questions**               | Get answers about document content                                              | <Link href="/reference/post-ai-ask">`POST /ai/ask`</Link>                               |
| **Generate text**               | Create drafts, templates, and content from prompts                              | <Link href="/reference/post-ai-text-gen">`POST /ai/text_gen`</Link>                     |
| **Extract metadata**            | Pull key-value pairs from unstructured documents using natural language prompts | <Link href="/reference/post-ai-extract">`POST /ai/extract`</Link>                       |
| **Extract structured metadata** | Extract data using metadata templates or field definitions                      | <Link href="/reference/post-ai-extract-structured">`POST /ai/extract_structured`</Link> |

## Quick starts

Get up and running with Box AI in minutes.

<CardGroup cols={2}>
  <Card title="Summarize documents" href="/guides/box-ai/quick-start/box-ai-summarize" icon="sparkles" arrow="true">
    Summarize document content using Box AI and the Python SDK.
  </Card>

  <Card title="Extract structured data" href="/guides/box-ai/quick-start/box-ai-extract" icon="sparkles" arrow="true">
    Use metadata templates to extract structured data from documents.
  </Card>

  <Card title="Freeform extraction" href="/guides/box-ai/quick-start/box-ai-extract-freeform" icon="sparkles" arrow="true">
    Extract data using natural language prompts or stringified data structures.
  </Card>

  <Card title="Enhanced Extract Agent" href="/guides/box-ai/quick-start/box-ai-extract-enhanced" icon="sparkles" arrow="true">
    Use advanced reasoning models to extract data from complex documents.
  </Card>
</CardGroup>

## API reference

<CardGroup cols={3}>
  <Card title="Ask" href="/reference/post-ai-ask" icon="code" arrow="true">
    `POST /ai/ask`
  </Card>

  <Card title="Text generation" href="/reference/post-ai-text-gen" icon="code" arrow="true">
    `POST /ai/text_gen`
  </Card>

  <Card title="Extract" href="/reference/post-ai-extract" icon="code" arrow="true">
    `POST /ai/extract`
  </Card>

  <Card title="Extract structured" href="/reference/post-ai-extract-structured" icon="code" arrow="true">
    `POST /ai/extract_structured`
  </Card>

  <Card title="Get AI agent config" href="/reference/get-ai-agent-default" icon="code" arrow="true">
    `GET /ai/agent_default`
  </Card>

  <Card title="AI response schemas" href="/reference/resources/ai-response/" icon="code" arrow="true">
    Response objects
  </Card>
</CardGroup>
