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

# Quickstart

Get started with the [CarrotHub](https://carrothub.ai) API in a few simple steps.

**1. Get an API Key**

Open [API Keys](https://carrothub.ai/app/api-keys) in the CarrotHub Console and create an **Inference key**.

Store your API key securely after creation.

**2. Use the API Key**

Use the API key to send requests to the CarrotHub API.

For example, use the Nano Banana Pro endpoint:

```bash theme={null}
  curl --request POST \
    --url https://api.carrothub.ai/vendors/google/v1/nano-banana-pro/generation \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{
      "prompt": "A beautiful sunset over the mountains",
      "aspect_ratio": "5:4",
      "resolution": "2K"
  }'
```

**3. Get Result of a Task**

Use the [task ID](https://www.carrothub.ai/docs/get-started/async-tasks.md) to get the result of the task.

For example, use the task ID to get the result of the task:

```bash theme={null}
  curl --request GET \
  --url https://api.carrothub.ai/vendors/google/v1/nano-banana-pro/generation/f81d4fae-7dec-11d0-a765-00a0c91e6bf6 \
  --header 'Authorization: Bearer <token>' \
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.