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

# Code Generator

Bruno makes it easy to generate code snippets from your API requests, allowing you to quickly integrate and test your API in various programming languages. This feature supports multiple languages (35+) and can help you save time when writing client code for your API.

## How Code Snippets Work in Bruno

Bruno’s Code Snippet feature automatically generates the necessary code to make the same API request in various programming languages, such as **Python, JavaScript, cURL,** and others. This makes it easy to share and implement API calls directly into your application.

### Steps to Generate Code Snippets in Bruno

1. Create or Open an API request.
2. Go to the **Generate Code** Section (next to the request).

<img src="https://mintcdn.com/bruno-a6972042/k_zr3I3gL1BrG0vM/images/screenshots/send-request/rest/generate-code-pop-up.webp?fit=max&auto=format&n=k_zr3I3gL1BrG0vM&q=85&s=10f40cd8911cabcd0ac71d97590e5046" alt="generate-code-pop-up" width="2472" height="1142" data-path="images/screenshots/send-request/rest/generate-code-pop-up.webp" />

3. Select your desired programming language from the dropdown to generate the code snippet.

<img src="https://mintcdn.com/bruno-a6972042/k_zr3I3gL1BrG0vM/images/screenshots/send-request/rest/generate-code-options.webp?fit=max&auto=format&n=k_zr3I3gL1BrG0vM&q=85&s=f8e65058f8947a8cbd133256617e3c8d" alt="generate-code-options" width="2472" height="1142" data-path="images/screenshots/send-request/rest/generate-code-options.webp" />

## Import a request from cURL

You can create a request by pasting a **cURL** command into Bruno (the reverse of generating cURL from a saved request).

1. In the sidebar, click **`···`** on the **collection** → **New Request**.
2. Set **Request type** to **From cURL**, then paste your cURL into the input.

<img src="https://mintcdn.com/bruno-a6972042/Lbjhw4G1eleQJUyl/images/screenshots/send-request/rest/import-curl-modal.webp?fit=max&auto=format&n=Lbjhw4G1eleQJUyl&q=85&s=dcc24eec9e7ce038071e2d472e18a2aa" alt="New Request dialog — From cURL" width="2604" height="1284" data-path="images/screenshots/send-request/rest/import-curl-modal.webp" />

3. Click **Create** to import the request.

<img src="https://mintcdn.com/bruno-a6972042/Lbjhw4G1eleQJUyl/images/screenshots/send-request/rest/after-curl-import.webp?fit=max&auto=format&n=Lbjhw4G1eleQJUyl&q=85&s=73df810d621a53e9a04a532303251a6f" alt="Request after importing from cURL" width="2604" height="1284" data-path="images/screenshots/send-request/rest/after-curl-import.webp" />

Bruno opens the new request with method, URL, headers, and body filled from the cURL command.

For more ways to create requests, see [Create a request](/get-started/bruno-basics/create-a-request).
