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

# Quickstart

> Start making API calls to Anyfast in minutes.

Anyfast provides a unified API to access AI models from multiple providers — including chat, image generation, and video generation. This guide gets you up and running with your first API call.

## Get started in three steps

### Step 1: Create an account

Sign up at [anyfast.ai](https://www.anyfast.ai) to create your account.

### Step 2: Get your API key

Head to the [Console](https://www.anyfast.ai/console/token) to generate your API key. Keep it safe — you'll use it to authenticate every request.

<Tip>
  Newly created tokens default to **Direct → Aggregate** group priority.
</Tip>

### Step 3: Make your first API call

Use your API key to call a chat model. The example below uses Claude 3.5 Sonnet via the OpenAI-compatible endpoint:

<CodeGroup>
  ```bash cURL theme={null}
  curl https://www.anyfast.ai/v1/chat/completions \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "claude-3-5-sonnet-20241022",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    }'
  ```

  ```python Python theme={null}
  from openai import OpenAI

  client = OpenAI(
      api_key="YOUR_API_KEY",
      base_url="https://www.anyfast.ai/v1"
  )

  response = client.chat.completions.create(
      model="claude-3-5-sonnet-20241022",
      messages=[
          {"role": "user", "content": "Hello!"}
      ]
  )

  print(response.choices[0].message.content)
  ```

  ```javascript Node.js theme={null}
  import OpenAI from "openai";

  const client = new OpenAI({
    apiKey: "YOUR_API_KEY",
    baseURL: "https://www.anyfast.ai/v1",
  });

  const response = await client.chat.completions.create({
    model: "claude-3-5-sonnet-20241022",
    messages: [{ role: "user", content: "Hello!" }],
  });

  console.log(response.choices[0].message.content);
  ```
</CodeGroup>

<Warning>
  **Configure your channel first.** Each model maps to a specific channel. You must enable the corresponding channel in the console before your API calls will succeed. Go to the [Console](https://www.anyfast.ai/console) to check your channel settings.
</Warning>

## Next steps

<Columns cols={2}>
  <Card title="API Reference" icon="code" href="/api-reference/introduction">
    Authentication, base URL, and error codes.
  </Card>

  <Card title="Model APIs" icon="microchip-ai" href="/api-reference/introduction">
    Browse all available models by provider.
  </Card>
</Columns>
