Recraft V2

recraft/recraft-v2

Recraft V2 is an image generation model released in March 2024 and the first model trained from scratch by Recraft. With 20 billion parameters, it was a breakthrough in human anatomical accuracy and the first to support brand consistency and brand color inputs. It also introduced vector image generation (SVG output), as well as minimalistic icon and illustration styles.

index.ts
import { experimental_generateImage as generateImage } from 'ai';
const result = await generateImage({
model: 'recraft/recraft-v2',
prompt: 'A red balloon on a wooden table.'
});