Skip to main content

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.

Use these examples as a starting point for your own integrations.
Examples marked with :free do not require deposited credits.

1. Free-model text generation with /responses

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

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

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 for language-specific examples.
Last modified on April 15, 2026