GPT Image 2
Provider list prices: no platform markup, pay-as-you-go. These are official list prices. Logged-in customers may see effective prices including workspace discounts on /console/pricing.
Use GPT Image 2 in 30 seconds
OpenAI-compatible: swap the base_url, keep your SDK. POST /v1/images/generations
from openai import OpenAI
client = OpenAI(
base_url="https://synthorai.io/v1",
api_key="sk-syn-...",
)
resp = client.images.generate(
model="gpt-image-2",
prompt="a watercolor lighthouse at dawn",
size="1024x1024",
)
print(resp.data[0].b64_json[:80])import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://synthorai.io/v1",
apiKey: "sk-syn-...",
});
const resp = await client.images.generate({
model: "gpt-image-2",
prompt: "a watercolor lighthouse at dawn",
size: "1024x1024",
});
console.log(resp.data?.[0]?.b64_json?.slice(0, 80));curl https://synthorai.io/v1/images/generations \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "a watercolor lighthouse at dawn",
"size": "1024x1024"
}'package main
import (
"context"
"fmt"
"github.com/openai/openai-go/v3"
"github.com/openai/openai-go/v3/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://synthorai.io/v1"),
option.WithAPIKey("sk-syn-..."),
)
resp, _ := client.Images.Generate(context.TODO(), openai.ImageGenerateParams{
Model: "gpt-image-2",
Prompt: "a watercolor lighthouse at dawn",
Size: "1024x1024",
})
fmt.Println(resp.Data[0].B64JSON[:80])
}import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.images.*;
OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl("https://synthorai.io/v1")
.apiKey("sk-syn-...")
.build();
ImagesResponse resp = client.images().generate(
ImageGenerateParams.builder()
.model("gpt-image-2")
.prompt("a watercolor lighthouse at dawn")
.size("1024x1024")
.build());
System.out.println(resp.data().orElseThrow().get(0).b64Json().orElseThrow().substring(0, 80));About GPT Image 2
gpt-image-2 is OpenAI's state-of-the-art image model, built for fast, high-quality image generation and editing.
- Versus its predecessors it adds flexible image sizes and high-fidelity image inputs, and it serves both the image generation and image edit endpoints while rating in the highest performance tier on the official model page.
- It is the current default recommendation for new image workloads.
- Synthorai supports gpt-image-2 on its OpenAI-compatible /v1/images/generations route, keeping request and response shapes identical to upstream.
Specs & limits
| Modalities | text + image → image |
| Features | vision |
| Image capabilities | Flexible resolutions: edges up to 3840px in multiples of 16, ratio <=3:1, ~0.65-8.3MP total (incl. 4K 3840x2160); editing with mask inpainting; all image inputs processed at high fidelity; significantly improved text rendering (precise placement can still struggle) |
| Notable | State-of-the-art image generation and editing tier; partial-image streaming via partial_images parameter (100 extra image tokens per partial). |
FAQ
Is the GPT Image 2 API free to try?
Yes: new accounts get 10 trial calls and up to $1 in free credit, no card required. That's enough to try GPT Image 2 against your real workload before adding a payment method.
What is GPT Image 2 best at?
Flexible image sizes and high-fidelity inputs, plus serves both generation and edit endpoints and default recommendation for new image workloads. See the About section for the full picture from the vendor's own release notes.
How much does GPT Image 2 cost?
GPT Image 2 costs $5 per million input tokens and $30 per million output tokens on Synthorai. That is the provider's list price, with no platform markup.
How do I generate images with the GPT Image 2 API?
POST to /v1/images/generations on Synthorai with model="gpt-image-2". It follows the OpenAI images API shape, so no vendor SDK is needed.
How do I get access to GPT Image 2?
Point your existing OpenAI SDK at base_url="https://synthorai.io/v1", set model="gpt-image-2", and you're done. One API key covers every model on the gateway.