> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/cheahjs/free-llm-api-resources/llms.txt
> Use this file to discover all available pages before exploring further.

# Novita AI

> Get $0.50 in free credits valid for 1 year to access various open-source models

## Overview

Novita AI provides \$0.50 in trial credits that are valid for 1 year, giving you extended access to experiment with their collection of open-source models.

<CardGroup cols={2}>
  <Card title="Trial Credits" icon="dollar-sign">
    \$0.50 in free credits
  </Card>

  <Card title="Duration" icon="calendar">
    Valid for 1 year
  </Card>
</CardGroup>

## Available Models

Novita AI offers access to various open-source models for text generation, image generation, and other AI tasks.

<Info>
  Browse the complete model catalog at [novita.ai/models](https://novita.ai/models)
</Info>

## Getting Started

### 1. Sign Up

Visit [novita.ai](https://novita.ai/?ref=ytblmjc\&utm_source=affiliate) and create a free account to receive your \$0.50 in credits.

### 2. Get Your API Key

After registration, navigate to your dashboard to generate an API key.

### 3. Make API Calls

```python theme={null}
import requests

url = "https://api.novita.ai/v1/chat/completions"
headers = {
    "Authorization": f"Bearer {YOUR_NOVITA_API_KEY}",
    "Content-Type": "application/json"
}

data = {
    "model": "meta-llama/llama-3.1-70b-instruct",
    "messages": [{
        "role": "user",
        "content": "What is the capital of France?"
    }]
}

response = requests.post(url, headers=headers, json=data)
print(response.json())
```

```javascript theme={null}
const response = await fetch('https://api.novita.ai/v1/chat/completions', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${process.env.NOVITA_API_KEY}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    model: 'meta-llama/llama-3.1-70b-instruct',
    messages: [{
      role: 'user',
      content: 'What is the capital of France?'
    }]
  })
});

const result = await response.json();
console.log(result);
```

```bash theme={null}
curl https://api.novita.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_NOVITA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "meta-llama/llama-3.1-70b-instruct",
    "messages": [{
      "role": "user",
      "content": "What is the capital of France?"
    }]
  }'
```

## Extended Trial Period

<Note>
  Your \$0.50 credit is **valid for 1 year**, giving you plenty of time to explore the platform and experiment with different models at your own pace.
</Note>

## Use Cases

* **Long-term Testing**: Extended trial period allows thorough evaluation
* **Educational Projects**: Perfect for learning and experimenting
* **Prototyping**: Build and test applications over an extended timeline
* **Model Exploration**: Try different models without time pressure

## Resources

<CardGroup cols={2}>
  <Card title="Novita AI Platform" icon="link" href="https://novita.ai/?ref=ytblmjc&utm_source=affiliate">
    Access the platform
  </Card>

  <Card title="Model Catalog" icon="book" href="https://novita.ai/models">
    Browse available models
  </Card>
</CardGroup>

<Info>
  With a full year to use your credits, you can experiment at your own pace and revisit the platform for different projects.
</Info>
