Muse Image from Meta Superintelligence Labs is now available on AI Gateway. It is their first image model and a separate family from Muse Spark, returning images rather than text. Send a prompt and get an image back, or send an image with an instruction and get it changed. One model does both, so you don't switch models to move from generating to editing.
To use Muse Image, set model to meta/muse-image-1.0 and call generateImage from the AI SDK :
import { generateImage } from 'ai' ;
const { images } = await generateImage ( {
model : 'meta/muse-image-1.0' ,
prompt : 'A conference poster for a talk on database indexes.' ,
} ) ;
To steer the result toward art you already have, pass reference images in prompt.images alongside the text, and the model blends them into what it draws.
Copy link to heading Editing
Pass the image you want changed in prompt.images with an instruction, and the model changes what you asked for and leaves the rest:
import { readFileSync } from 'node:fs' ;
import { generateImage…