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

# Examples

> Copy-paste examples for common Gateway workflows, starting with free-model requests.

Use these examples as a starting point for your own integrations.

<Note>
  Examples marked with `:free` do not require deposited credits.
</Note>

## 1. Free-model text generation with `/responses`

```bash theme={null}
curl https://api.phaseo.app/v1/responses \
  -H "Authorization: Bearer $AI_STATS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemma-3-27b:free",
    "input": "Summarize this article in 3 bullet points."
  }'
```

## 2. Paid-model chat completion

```bash theme={null}
curl https://api.phaseo.app/v1/chat/completions \
  -H "Authorization: Bearer $AI_STATS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.4",
    "messages": [{"role": "user", "content": "Write a short email."}]
  }'
```

## 3. Image generation

```bash theme={null}
curl https://api.phaseo.app/v1/images/generations \
  -H "Authorization: Bearer $AI_STATS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-1",
    "prompt": "A minimal line drawing of a lighthouse."
  }'
```

## More examples

Explore the [SDK Reference](../sdk-reference/typescript/overview.mdx) for language-specific examples.
