# Model

## Get List Model

## Get list model

<mark style="color:blue;">`GET`</mark> `https://api.crazyhorse.ai/v1/Model`

Get list model

#### Headers

| Name                                      | Type   | Description |
| ----------------------------------------- | ------ | ----------- |
| api-key<mark style="color:red;">\*</mark> | String |             |

{% tabs %}
{% tab title="200 Success" %}

```javascript
[
   {
      "name": "Koharu Yuna",
      "country": "Japan",
      "style": "Innocent, Sweet Girl",
      "birthday": "9/22/2002",
      "height": "160",
      "id": "yuna-jp"
    }
]
```

{% endtab %}

{% tab title="401: Unauthorized Error" %}

```javascript
{
  "message": "User not logged",
  "errorCode": 4001,
  "statusCode": 401,
  "path": "/v1/lora",
  "error": true,
  "method": "GET"
}
```

{% endtab %}
{% endtabs %}

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

<pre><code>/ require the myapi module and set it up with your API key
const axios = require('axios').default;
<strong>const options = {
</strong>   headers: {
     'api-key': 'xxxxxxxx'
   }
};
const url = 'https://api.crazyhorse.ai/v1/Model';
const getModels = away axios.get(url, options)
</code></pre>

{% endtab %}
{% endtabs %}

> How to use model
>
> When you finish obtaining the list of models, you can then use the "id" field as a parameter, referred to as "girlId" in the [generations API](https://crazyhorse.gitbook.io/crazyhorse/reference/api-reference/generations).
