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-micro-v1",
messages: [
{
"role": "user",
"content": "Write a blog about cat."
}
]
})
console.log(completion.choices[0].message)
}
main()
Feature/Aspect | Amazon Nova Pro | Amazon Nova Lite | Amazon Nova Micro |
---|---|---|---|
Speed | Best combination of accuracy and speed | Very fast for multimodal tasks | Fastest with low latency |
Model Type | Highly capable multimodal model | Multimodal model (text, image, video) | Text-only model |
Key Use Cases | Video summarization, question answering, software development | Customer interactions, document analysis, visual question answering | Language understanding, translation, reasoning |
Maximum Tokens | 300,000 tokens | 300,000 tokens | 128,000 tokens |
Fine-tuning Support | Yes, supports text, image, and video inputs | Yes, supports text, image, and video inputs | Yes, supports text input |