Skip to content

v1.0.0 - Image Support & Unified API

Choose a tag to compare

@grantsingleton grantsingleton released this 09 Jul 22:08
· 3 commits to main since this release

πŸš€ Major Release: Image Support & Unified API

We're excited to announce batch-ai v1.0.0! This major release introduces image support for batch processing and unifies the API across all providers.

✨ What's New

πŸ–ΌοΈ Image Support

  • Process images alongside text in your batch requests
  • Support for image URLs in both OpenAI and Anthropic providers
  • Perfect for multimodal AI applications

πŸ”§ Unified API

  • Both OpenAI and Anthropic now use the same input format
  • Consistent developer experience across providers
  • Easier to switch between providers

⚠️ Breaking Changes

The input format has changed from strings to ContentPart arrays:

// Before (0.x)
const request = {
  customId: "1",
  input: "Hello world"
};

// After (1.0)
const request = {
  customId: "1",
  input: [{ type: "text", text: "Hello world" }]
};

πŸ“š Migration Guide

See CHANGELOG.md for detailed migration instructions.

πŸ™ Credits

Special thanks to @klichen for implementing image support in #12!


Note: This is a breaking change release. Please review the migration guide before upgrading.