Skip to content
Dashboard

Use GPT 5.4 Mini and Nano on AI Gateway

import { streamText } from 'ai';
const result = streamText({
model: 'openai/gpt-5.4-mini',
prompt:
`Scaffold a new Next.js API route that connects to our
Postgres database, validates the incoming webhook payload,
and writes the event to the audit_logs table.`,
});

import { streamText } from 'ai';
const result = streamText({
model: 'openai/gpt-5.4-nano',
prompt:
`Check each file in the PR diff for unused imports,
flag any that can be removed, and return the results
as a JSON array with file path and line number.`,
});

Ready to deploy?