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

# API Reference

> One key, one base URL, every API. Browse every endpoint AIsa routes to with interactive examples.

AIsa exposes a unified API surface at `https://api.aisa.one` — OpenAI-compatible chat at `/v1` and all other APIs under `/apis/v1`. Authenticate once with your `AISA_API_KEY` and call any endpoint below — chat, video, search, market data, and more.

<CardGroup cols={2}>
  <Card title="Chat API" icon="comments" href="/api-reference/chat/createchatcompletion">
    OpenAI-, Anthropic-, and Google-compatible chat completion endpoints.
  </Card>

  <Card title="Video API" icon="video" href="/api-reference/video/post_services-aigc-video-generation-video-synthesis">
    Generate video from text or images with async task polling.
  </Card>

  <Card title="Search API" icon="magnifying-glass" href="/api-reference/search/get_youtube-search">
    YouTube SERP plus Tavily search, extract, crawl, and map.
  </Card>

  <Card title="Perplexity API" icon="sparkles" href="/api-reference/perplexity/post_perplexity-sonar">
    Sonar, Sonar Pro, Sonar Reasoning Pro, and Sonar Deep Research.
  </Card>

  <Card title="Financial API" icon="chart-line" href="/api-reference/financial/get_analyst-estimates">
    Company fundamentals, filings, prices, insider trades, macro data.
  </Card>

  <Card title="Twitter API" icon="twitter" href="/api-reference/twitter/get_twitter-user-info">
    User, tweet, list, community, trend, space, and post endpoints.
  </Card>

  <Card title="Scholar API" icon="graduation-cap" href="/api-reference/scholar/searchscholar">
    Scholar, web, smart, and explain search for research.
  </Card>

  <Card title="Prediction Market API" icon="scale-balanced" href="/api-reference/prediction-market/get_polymarket-events">
    Polymarket, Kalshi, and matching-market data.
  </Card>
</CardGroup>

## Essentials

<CardGroup cols={3}>
  <Card title="Errors" icon="triangle-exclamation" href="/api-reference/errors">
    Error codes and how to handle them.
  </Card>

  <Card title="Rate Limits" icon="gauge-high" href="/api-reference/rate-limits">
    Per-endpoint limits and headers.
  </Card>

  <Card title="Async Operations" icon="hourglass-half" href="/api-reference/async-operations">
    Task creation, polling, and concurrency.
  </Card>
</CardGroup>
