> For the complete documentation index, see [llms.txt](https://netmind-power.gitbook.io/netmind-power-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://netmind-power.gitbook.io/netmind-power-documentation/api/fine-tuning/create-job.md).

# Create Job

Now you can create a fine-tuning job using a previously uploaded file and one of the supported models. Use "**id**" from the reponse of "**/v1/files**" and "**name**" from the reponse of "**/v1/fine-tuning/template**"

{% hint style="info" %}
Replace `{{API_TOKEN}}` with your actual token.
{% endhint %}

**Example Request:**

{% tabs %}
{% tab title="Curl" %}

```bash
curl --location 'https://api.netmind.ai/v1/fine-tuning/job' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{API_TOKEN}}' \
--data '{
    "model": "llama-3-8b",
    "training_file_id": "file-KVvi...",
    "hyperparameters": {
        "per_device_train_batch_size": 1,
        "learning_rate": 0.0001,
        "num_train_epochs": 30
    }
}'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
import json

url = "https://api.netmind.ai/v1/fine-tuning/job"

payload = json.dumps({
  "model": "llama-3-8b",
  "training_file_id": "file-KVvi...",
  "hyperparameters": {
    "per_device_train_batch_size": 1,
    "learning_rate": 0.0001,
    "num_train_epochs": 30
  }
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': 'Bearer {{API_TOKEN}}'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

{% endtab %}
{% endtabs %}

**Example Response:**

```json
{
    "id": "ftjob-0mlf..."
}
```
