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

# Setting Up

> Get started with AnyAPI in minutes. Create your account, get your API key, and make your first request.

# Setting Up AnyAPI

Get started with AnyAPI in just a few minutes. This guide will help you create an account, obtain your API key, and make your first successful API request.

## Create Your Account

1. Visit [AnyAPI Dashboard](https://dash.anyapi.ai)
2. Click **Sign Up** to create your free account
3. Verify your email address
4. Complete your profile setup

## Get Your API Key

<Steps>
  <Step title="Access the Dashboard">
    Once logged in, navigate to your [dashboard](https://dash.anyapi.ai)
  </Step>

  <Step title="Generate API Key">
    Go to [API Keys](https://dash.anyapi.ai/?page=api-keys) section and click **Create New Key**
  </Step>

  <Step title="Copy Your Key">
    Copy your API key and store it securely. You'll need this for authentication.
  </Step>
</Steps>

<Warning>
  Keep your API key secure and never expose it in client-side code or public repositories.
</Warning>

## Make Your First Request

Here's how to make your first API call using different programming languages:

<CodeGroup>
  ```bash cURL theme={"system"}
  curl -X POST "https://api.anyapi.ai/v1/chat/completions" \
    -H "Authorization: Bearer your_api_key" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "openai/gpt-4o",
      "messages": [
        {"role": "user", "content": "Hello, world!"}
      ]
    }'
  ```

  ```python Python theme={"system"}
  import requests

  headers = {
      "Authorization": "Bearer your_api_key",
      "Content-Type": "application/json"
  }

  data = {
      "model": "openai/gpt-4o",
      "messages": [
          {"role": "user", "content": "Hello, world!"}
      ]
  }

  response = requests.post(
      "https://api.anyapi.ai/v1/chat/completions",
      headers=headers,
      json=data
  )

  print(response.json())
  ```

  ```javascript JavaScript theme={"system"}
  const response = await fetch('https://api.anyapi.ai/v1/chat/completions', {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer your_api_key',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      model: 'gpt-4o',
      messages: [
        {role: 'user', content: 'Hello, world!'}
      ]
    })
  });

  const data = await response.json();
  console.log(data);
  ```
</CodeGroup>

## Authentication

All API requests require authentication using your API key in the Authorization header:

```
Authorization: Bearer your_api_key
```

## Rate Limits

AnyAPI implements rate limiting to ensure fair usage:

* **Free Tier**: 100 requests per minute
* **Pro Tier**: 1,000 requests per minute
* **Enterprise**: Custom limits

Rate limit information is included in response headers:

* `X-RateLimit-Limit`: Total requests allowed
* `X-RateLimit-Remaining`: Requests remaining in current window
* `X-RateLimit-Reset`: Time when the rate limit resets

## Error Handling

AnyAPI uses standard HTTP status codes and returns errors in JSON format:

```json theme={"system"}
{
  "error": {
    "type": "invalid_request_error",
    "message": "Invalid API key provided",
    "code": "invalid_api_key"
  }
}
```

Common error codes:

* `401`: Invalid or missing API key
* `429`: Rate limit exceeded
* `400`: Invalid request format
* `500`: Internal server error

## Next Steps

Now that you're set up, explore what you can build:

<CardGroup cols={2}>
  <Card title="Supported SDKs" icon="code" href="/get-started/supported-sdks">
    Learn about our SDKs and libraries
  </Card>

  <Card title="API Reference" icon="book" href="/api-reference/models/text-models/overview">
    Browse our complete API documentation
  </Card>

  <Card title="Use Cases" icon="lightbulb" href="/use-cases/create-images">
    See example implementations
  </Card>

  <Card title="Integrations" icon="puzzle-piece" href="/integrations/overview">
    Integrate with your favorite tools
  </Card>
</CardGroup>

## Support

Need help? We're here for you:

* Join our [Discord community](https://discord.gg/rJgyzGynHw)
* Contact [Support](mailto:support@anyapi.ai)
