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

# Quickstart

> Getting started with the Sudo developer platform. 

The Sudo developer platform gives you access to 100+ AI models with a single API key. To obtain an API key, use the[ Sudo developer portal](https://sudoapp.dev/dev/ai-apps/new) to create a simple dev app with an API key, then fill your account with credits using your Stripe payment method, which you can connect on the [billing settings page](https://sudoapp.dev/dev/settings/billing).

# Using the Sudo API

<CodeGroup>
  ```python Python theme={null}
  import requests
  import json

  response = requests.post(
    url="https://sudoapp.dev/api/v1/chat/completions",
    headers={
      "Authorization": "Bearer <SUDO_API_KEY>",
    },
    data=json.dumps({
      "model": "gpt-4o",
      "messages": [
          	{
          		"role": "developer",
          		"content": "You are a helpful assistant."
          	},
          	{
          		"role": "user",
          		"content": "Hello! Give me a study plan to learn Python."
          	}
      	],
      	"store": true
  	})
  )
  ```

  ```typescript TypeScript theme={null}
  fetch('https://sudoapp.dev/api/v1/chat/completions', {
    method: 'POST',
    headers: {
      Authorization: 'Bearer <SUDO_API_KEY>',
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      model: 'gpt-4o',
      messages: [
  	  {
          role: 'developer',
          content: 'You are a helpful assistant.',
        },
        {
          role: 'user',
          content: 'Hello! Give me a study plan to learn Python.',
        },
      ],
  	store: true
    }),
  });
  ```

  ```shellscript Shell theme={null}
  curl https://sudoapp.dev/api/v1/chat/completions \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $SUDO_API_KEY" \
    -d '{
      "model": "gpt-4o",
      "messages": [
          {
          "role": "developer",
          "content": "You are a helpful assistant."
          },
          {
          "role": "user",
          "content": "Hello! Give me a study plan to learn Python."
          }
      ],
      "store": true
  }'
  ```
</CodeGroup>

The API also supports streaming.

## Next Steps

Explore the API capabilities and available models:

<CardGroup cols={2}>
  <Card title="API Reference" icon="link" href="/api-ref/overview" />

  <Card title="Supported Models" icon="brain" href="models" />
</CardGroup>
