vertex-gemini-3.1-pro2 provider routesGoogle’s flagship reasoning model + Computer Use. 1M context.
Multi-turn dialogue, system prompts.
SSE chunks for incremental output.
Structured arguments via JSON schemas.
Pass images alongside the prompt.
Text and image to short video, async.
Coming soon.
Same canonical model, separate upstream routes. Use the slug from the route you want to call.
This example calls the selected Google Vertex route with vertex-gemini-3.1-pro.
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.miavo.xyz/v1',
apiKey: process.env.MACAW_API_KEY!,
});
const res = await client.chat.completions.create({
model: 'vertex-gemini-3.1-pro',
messages: [
{ role: 'user', content: 'Write me a haiku about gateways.' },
],
});
console.log(res.choices[0].message.content);