# Interfaze 1 Lite

URL: https://interfaze.ai/docs/models/interfaze-1-lite

`interfaze-1-lite` is a smaller any-to-text open-weight model. It takes text, images, audio and files, runs on a single 80 GB GPU, and is available for self-hosting under the Apache 2.0 license.

## Specs and pricing

[Compare models](https://interfaze.ai/docs/models) | [View pricing](https://interfaze.ai/pricing) | [View limits](https://interfaze.ai/docs/limits)

## Quickstart

**Interfaze SDK · typescript**

```typescript
import { Interfaze } from "interfaze";

const interfaze = new Interfaze();

const response = await interfaze.chat.completions.create({
	model: "interfaze-1-lite",
	messages: [
		{
			role: "user",
			content: [
				{ type: "text", text: "Extract the details from this ID" },
				{ type: "image_url", image_url: { url: "https://r2public.jigsawstack.com/interfaze/examples/id.jpg" } },
			],
		},
	],
});

console.log(response.choices[0]?.message.content);
```

**Vercel AI SDK · typescript**

```typescript
import { interfaze } from "@interfaze-ai/ai-sdk";
import { generateText } from "ai";

const { text } = await generateText({
	model: interfaze("interfaze-1-lite"),
	messages: [
		{
			role: "user",
			content: [
				{ type: "text", text: "Extract the details from this ID" },
				{ type: "image", image: "https://r2public.jigsawstack.com/interfaze/examples/id.jpg" },
			],
		},
	],
});

console.log(text);
```

**OpenAI SDK · typescript**

```typescript
import OpenAI from "openai";

const client = new OpenAI({
	baseURL: "https://api.interfaze.ai/v1",
	apiKey: process.env.INTERFAZE_API_KEY,
});

const response = await client.chat.completions.create({
	model: "interfaze-1-lite",
	messages: [
		{
			role: "user",
			content: [
				{ type: "text", text: "Extract the details from this ID" },
				{ type: "image_url", image_url: { url: "https://r2public.jigsawstack.com/interfaze/examples/id.jpg" } },
			],
		},
	],
});

console.log(response.choices[0]?.message.content);
```

**Interfaze SDK · python**

```python
from interfaze import Interfaze

interfaze = Interfaze()

response = interfaze.chat.completions.create(
    model="interfaze-1-lite",
    messages=[
        {
            "role": "user",
            "content": [
                {"type": "text", "text": "Extract the details from this ID"},
                {"type": "image_url", "image_url": {"url": "https://r2public.jigsawstack.com/interfaze/examples/id.jpg"}},
            ],
        }
    ],
)

print(response.choices[0].message.content)
```

**OpenAI SDK · python**

```python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.interfaze.ai/v1",
    api_key=os.environ["INTERFAZE_API_KEY"],
)

response = client.chat.completions.create(
    model="interfaze-1-lite",
    messages=[
        {
            "role": "user",
            "content": [
                {"type": "text", "text": "Extract the details from this ID"},
                {"type": "image_url", "image_url": {"url": "https://r2public.jigsawstack.com/interfaze/examples/id.jpg"}},
            ],
        }
    ],
)

print(response.choices[0].message.content)
```

**cURL · bash**

```bash
curl https://api.interfaze.ai/v1/chat/completions \
  -H "Authorization: Bearer $INTERFAZE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "interfaze-1-lite",
    "messages": [
      {
        "role": "user",
        "content": [
          { "type": "text", "text": "Extract the details from this ID" },
          { "type": "image_url", "image_url": { "url": "https://r2public.jigsawstack.com/interfaze/examples/id.jpg" } }
        ]
      }
    ]
  }'
```

See the [getting started guide](https://interfaze.ai/docs) for setup and authentication.

## Self-host

The weights are on [Hugging Face](https://huggingface.co/interfaze-ai/interfaze-1-lite) under the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0). You need one 80 GB GPU with compute capability 8.9 or newer, like an H100, and `ffmpeg` for audio.

```bash
hf download interfaze-ai/interfaze-1-lite requirements.txt --local-dir .
pip install -r requirements.txt
```

```python
from transformers import AutoModel

model = AutoModel.from_pretrained("interfaze-ai/interfaze-1-lite", trust_remote_code=True)

answer = model.chat(
    [{"role": "user", "content": "What is the total, and which item is highlighted?"}],
    files=["receipt.jpg"],
)
print(answer["content"])
```

The [Hugging Face model card](https://huggingface.co/interfaze-ai/interfaze-1-lite) covers every method and its limitations.
