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

# API AI Prompt Setup

> Set up Snippets AI API access in seconds using AI-powered assistance

## Set up Snippets AI API access in seconds

Copy the AI instruction prompt and paste it into your IDE AI agent (Cursor, Windsurf, GitHub Copilot, etc.) so it can set up API access quickly.

<Card title="Get AI Setup Prompt" icon="robot" href="https://www.getsnippets.ai/share/MmQ1NzBi" target="_blank">
  Click to get the AI setup prompt that will configure your API access
  automatically
</Card>

## How It Works

The AI setup prompt contains pre-configured instructions that guide your IDE's AI agent through the entire API setup process. Simply copy the prompt and let AI handle the technical details.

### Quick Steps

<Steps>
  <Step title="Get the prompt">
    Click the button above to access the AI setup prompt
  </Step>

  <Step title="Copy the prompt">Copy the entire prompt from the page</Step>

  <Step title="Paste into your AI agent">
    Paste it into your IDE's AI chat or prompt box
  </Step>

  <Step title="Let AI set it up">
    Your AI agent will automatically configure the Snippets AI API access for
    you
  </Step>
</Steps>

## Supported AI Agents

This setup prompt works with any IDE that has an AI agent with a prompt box:

<CardGroup cols={3}>
  <Card title="Cursor" icon="c">
    Cursor AI IDE
  </Card>

  <Card title="Windsurf" icon="wind">
    Windsurf AI IDE
  </Card>

  <Card title="GitHub Copilot" icon="github">
    GitHub Copilot Chat
  </Card>

  <Card title="VS Code" icon="code">
    VS Code with AI extensions
  </Card>

  <Card title="JetBrains" icon="j">
    JetBrains AI Assistant
  </Card>

  <Card title="Zed" icon="z">
    Zed AI
  </Card>

  <Card title="Claude Code" icon="message">
    Claude for coding
  </Card>

  <Card title="Cline" icon="terminal">
    Cline AI Assistant
  </Card>

  <Card title="Aider" icon="robot">
    Aider AI coding assistant
  </Card>
</CardGroup>

## What Gets Set Up

The AI prompt will help you:

* 🔑 Configure your API authentication
* 📝 Set up proper headers and base URLs
* ⚙️ Create reusable API client functions
* 🧪 Add example requests to test the connection
* 📚 Include error handling best practices

## Benefits

<AccordionGroup>
  <Accordion title="Save Time" icon="clock">
    Skip the manual setup process. Let AI configure everything in seconds instead
    of spending 15-20 minutes reading documentation and writing boilerplate code.
  </Accordion>

  <Accordion title="Reduce Errors" icon="shield-check">
    The AI ensures proper authentication, correct headers, and follows best
    practices automatically - no typos or configuration mistakes.
  </Accordion>

  <Accordion title="Get Started Immediately" icon="rocket">
    Start making API calls right away. The AI sets up working examples you can
    run immediately to verify your connection.
  </Accordion>

  <Accordion title="Learn Best Practices" icon="graduation-cap">
    The generated code includes comments and follows industry best practices for
    API integration, helping you learn as you go.
  </Accordion>
</AccordionGroup>

## Manual Setup Alternative

If you prefer to set up the API manually, check out our comprehensive guides:

<CardGroup cols={2}>
  <Card title="Introduction" icon="book" href="/api-reference/introduction">
    Complete API overview and quick start guide
  </Card>

  <Card title="Authentication" icon="key" href="/api-reference/authentication">
    Step-by-step authentication setup
  </Card>
</CardGroup>

## Need Help?

<CardGroup cols={2}>
  <Card title="Contact Support" icon="life-ring" href="mailto:team@getsnippets.ai">
    Get help from our team
  </Card>

  <Card title="API Documentation" icon="book-open" href="/api-reference/introduction">
    Full API reference
  </Card>
</CardGroup>
