GPT Image 2 generation and editing
gpt-image-2OpenAI's image model with close instruction following, sharp text rendering and detailed edits from reference images. Compared with other image tools: mid-priced, and one of the most used right now. Price: from $0.018 per image, charged only on success. Price depends on quality: low $0.018, medium $0.065, high $0.174 (default medium). One call = one image.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "gpt-image-2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | What to create or change | |
| quality | No | Sets the price. Default medium | |
| background | No | ||
| aspect_ratio | No | Aspect ratio, default 1:1 | |
| input_images | No | Reference or source image URLs (https), optional | |
| output_format | No |