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

# Introduction

> Code examples for every supported AI pipeline on SynapsAI Cloud

This section provides runnable examples for SynapsAI Cloud inference across text, image, audio, video, and embedding pipelines.

Before running examples:

1. [Deploy a model](/guides/deploy-model) with the matching pipeline task.
2. [Create an API key](/manage/api-keys) scoped to that model.
3. Set your API key: `export SYNAPSAI_API_KEY="your-api-key"`
4. Replace `model-id` with your deployment's model ID from the [dashboard](https://platform.synapsai.cloud/models).

<Tip>
  Use the [Playground](https://platform.synapsai.cloud/playground) to test requests interactively and copy generated code.
</Tip>

## Examples

<Columns cols={2}>
  <Card title="Text generation" icon="comment" href="/examples/text-generation">
    Chat completions, completions, and streaming.
  </Card>

  <Card title="Tool calling" icon="wrench" href="/examples/tool-calling">
    Function calling with chat completions.
  </Card>

  <Card title="Embeddings" icon="hexagon-nodes" href="/examples/embeddings">
    Generate vector embeddings for text.
  </Card>

  <Card title="Images" icon="image" href="/examples/images">
    Generation, editing, detection, segmentation, and analysis.
  </Card>

  <Card title="Audio" icon="volume-high" href="/examples/audio">
    Text-to-speech, speech-to-text, and translation.
  </Card>

  <Card title="Videos" icon="video" href="/examples/videos">
    Text-to-video and image-to-video generation.
  </Card>

  <Card title="Classification" icon="layer-group" href="/examples/classification">
    Text, image, audio, and video classification — including zero-shot.
  </Card>

  <Card title="Rerank" icon="arrow-down-wide-short" href="/examples/rerank">
    Rerank documents by relevance to a query.
  </Card>

  <Card title="Fill mask" icon="mask" href="/examples/fill_mask">
    Masked language modeling predictions.
  </Card>

  <Card title="Feature extraction" icon="chart-network" href="/examples/feature_extraction">
    Extract hidden-state features from inputs.
  </Card>
</Columns>

See [Supported tasks](/resources/tasks) for the full pipeline list and endpoint mapping.
