Back to Models
Description
gpt image 2 by OpenAI. This model supports image capabilities. Main use: Image Generation.
Specifications
- Input Modalities:
- Text, Image
- Output Modalities:
- Image
- Main Use:
- Image Generation
Pricing
- Per Image (1MP) Cost:
- 0.10600000 Credits
- Images (1MP) per credit:
- 9.43
Usage Example
const { Client } = require('ai-proxy-sdk');
const client = new Client({
consumerKey: process.env.BITMESH_CONSUMER_KEY,
consumerSecret: process.env.BITMESH_CONSUMER_SECRET
});
const response = await client.images.generate({
prompt: 'Flying car',
model: 'openai/gpt-image-2',
width: 1024,
height: 1024,
seed: 22,
n: 1,
steps: 20
});