> 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/quickstart.md).

# Quickstart

{% hint style="info" %}
Looking for UltraSafe AI Platform? Head to platform.us.inc
{% endhint %}

UltraSafe AI API offers a streamlined approach for developers to integrate our cutting-edge models into their applications and production workflows with minimal code. Our API is accessible through the UltraSafe AI Platform. To enable your API keys, you'll need to set up payment on your account. Once activated, you can start using our chat endpoint:

**python**

<figure><img src="/files/y9KhwuiTDXUR9KoQ6KYo" alt=""><figcaption></figcaption></figure>

**typescript**

<figure><img src="/files/AefUQr5lYeCMloLts2jm" alt=""><figcaption></figcaption></figure>

**curl**

<figure><img src="/files/ZT7FkXKjaxBh45uJG6OQ" alt=""><figcaption></figcaption></figure>

To create text embeddings using UltraSafe AI's embeddings API, you can send a request to the API endpoint, specifying the embedding model eus-embed and providing a list of input texts. The API will respond with the corresponding embeddings in the form of numerical vectors, which can then be utilized for further analysis or processing in your NLP applications.

**python**

<figure><img src="/files/sJOvUpQD5bd7BeKB08sp" alt=""><figcaption></figcaption></figure>

**typescript**

```typescript
import { Ultrasafe } from '@Ultrasafeai/Ultrasafeai';

const apiKey = process.env.Ultrasafe_API_KEY;

const client = new Ultrasafe({apiKey: apiKey});

const embeddingsResponse = await client.embeddings.create({
  model: 'Ultrasafe-embed',
  inputs: ["Embed this sentence.", "As well as this one."],
});

console.log(embeddingsResponse);

```

**curl**

```
curl --location "https://api.Ultrasafe.ai/v1/embeddings" \
     --header 'Content-Type: application/json' \
     --header 'Accept: application/json' \
     --header "Authorization: Bearer $Ultrasafe_API_KEY" \
     --data '{
    "model": "Ultrasafe-embed",
    "input": ["Embed this sentence.", "As well as this one."]
  }'

```

For a comprehensive overview of the models available through our API, please refer to our model documentation.

### Account setup

1. Begin by creating a UltraSafe AI account or logging in at console.ultrasafe.ai.
2. Navigate to the "Billing" section under "Account Settings" to add your payment details and activate payments for your account.
3. Once billing is set up, go to the "API Keys" section and generate a new API key by selecting "Create New Key". Be sure to copy your API key, store it securely, and never share it with others.

With these steps completed, you'll be ready to harness the power of UltraSafe AI in your projects!

<br>
