import OpenAI from "openai"
const openai = new OpenAI({
baseURL: "https://api.aiapilab.com/v1",
apiKey: $AIAPILAB_API_KEY
})
async function main() {
const completion = await openai.chat.completions.create({
model: "amazon/nova-lite-v1",
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What's in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
}
}
]
}
]
})
console.log(completion.choices[0].message)
}
main()
Feature/Aspect | Amazon Nova Pro 1.0 | Amazon Nova Lite 1.0 | Amazon Nova Micro 1.0 |
---|---|---|---|
Latency | Low latency | Low latency | Lowest latency |
Max Tokens | 300,000 | 300,000 | 128,000 |
Model Type | Multimodal (text, image, video) | Multimodal (text, image, video) | Text-only |
Primary Use Cases | Video summarization, complex reasoning | Customer interactions, document analysis | Fast text generation, language tasks |
Custom Fine-tuning | Yes | Yes | Yes |