> For the complete documentation index, see [llms.txt](https://ultrasafe.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ultrasafe.gitbook.io/docs/api-documentation/eus1/standard.md).

# Standard

<mark style="color:yellow;">`POST`</mark> <https://api.us.inc/us/eus1/standard/v1/chat/completions>

**Headers**

| Name  | Value         |
| ----- | ------------- |
| Key   | authorization |
| Value | •••••••       |

**Body** raw (json)

```json
{
    "model": "eus1",
    "messages": [
        {
            "role": "user", "content": "Hi"
        }
    ],
    "temperature":0.7,
    "stream": false,
    "max_tokens": 5
}
```

**Example Request**

```json
curl --location 'https://api.us.inc/us/eus1/standard/v1/chat/completions' \
--data '{
    "model": "eus1",
    "messages": [
        {
            "role": "user", "content": "Hello"
        },
        {
            "role": "assistant", "content": "Hello again! If you have any questions or need assistance with something, feel free to ask. I'\''m here to help!"
        },
        {
            "role": "user", "content": "How can you help users?"
        }
    ],
    "temperature":0.7,
    "stream": false,
    "max_tokens": 512
}'
```

**Example Response**

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

```json
{
  "id": "d00b4411-c427-4cdc-ae41-d07669b37e05",
  "object": "chat.completion",
  "created": 1722542978,
  "model": "eus1",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "As an AI assistant, I can help users in various ways, including:\n\n1. **Providing Information:** I can answer questions on a wide range of topics based on the data and knowledge programmed into me. Whether it's historical facts, scientific explanations, or current events up to my knowledge cut-off date, I'm here to provide knowledge.\n\n2. **Assistance with Queries:** If you have a question about how something works, need definitions, translations, or explanations, I can assist you.\n\n3. **Task Management:** I can help you manage your tasks by setting reminders, organizing to-do lists, or providing calendar management assistance, although my capabilities are based on what I was programmed to do.\n\n4. **Educational Support:** If you're learning something new or need assistance with homework (within my knowledge scope), I can offer explanations, examples, and guidance.\n\n5. **Entertainment:** I can suggest books, movies, or games based on your interests, tell you jokes, or engage in fun quizzes and trivia.\n\n6. **Companionship:** I can chat and have conversations to accompany you or even play games like word games to pass the time.\n\n7. **Technical Support:** I can guide you through troubleshooting steps for common tech issues or help you understand software and hardware features.\n\n8. **Safety Assistance:** I can provide information on safety protocols and emergency guidance, although for actual emergencies, you should contact the appropriate authorities directly.\n\nRemember, I operate within the guidelines mentioned earlier, so my responses are designed to be helpful, safe, and respectful. If you need assistance with something specific, just let me know!"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 359,
    "total_tokens": 706,
    "completion_tokens": 347
  }
}
```

{% endtab %}

{% tab title="Headers (9)" %}

|                             |                                                                                                                                                           |
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| X-Powered-By                | Express                                                                                                                                                   |
| Access-Control-Allow-Origin | \*                                                                                                                                                        |
| Content-Type                | application/json; charset=utf-8                                                                                                                           |
| Content-Length              | 2385                                                                                                                                                      |
| ETag                        | W/"951-HgtzKfsPXJ/sboZDCH5M62pIh04"                                                                                                                       |
| Set-Cookie                  | connect.sid=s%3AJ3BejzfdhrSEIEFd538leY5-bwL3yOOd.ks7OvF45fXY2MekD%2FV3aHyPSBUUgSpQQD1UJN%2FTfLgA; Path=/; Expires=Thu, 01 Aug 2024 20:15:16 GMT; HttpOnly |
| Date                        | Thu, 01 Aug 2024 20:09:16 GMT                                                                                                                             |
| Connection                  | keep-alive                                                                                                                                                |
| Keep-Alive                  | timeout=5                                                                                                                                                 |
| {% endtab %}                |                                                                                                                                                           |
| {% endtabs %}               |                                                                                                                                                           |
