LLM ReferenceLLM Reference
OpenAI API

Using GPT Image 1.5 on OpenAI API

Implementation guide · GPT Image · OpenAI

Serverless

Quick Start

  1. 1
    Create an account at OpenAI API and generate an API key.
  2. 2
    Use the OpenAI API SDK or REST API to call gpt-image-1.5 — see the documentation for request format.
  3. 3
    You'll be billed $0.034 per 1024x1024 medium image. See full pricing.

Code Examples

Install
pip install openai
API key
OPENAI_API_KEY
Model ID
gpt-image-1.5

Use the model slug directly, e.g. "gpt-4o" or "gpt-4.1-mini".

import os
from openai import OpenAI

client = OpenAI()  # reads OPENAI_API_KEY from env
response = client.chat.completions.create(
    model="gpt-image-1.5",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

About OpenAI API

OpenAI's AI platform offers a comprehensive suite of advanced technologies designed to revolutionize various applications across industries. At its core, the platform features powerful natural language processing capabilities for generating human-like text, image generation through models like DALL-E, and automatic speech recognition with Whisper. These functionalities are complemented by robust predictive analytics tools that enable businesses to forecast user behavior and automate customer interactions through sophisticated chatbots. The platform's APIs facilitate seamless integration, allowing users to develop custom solutions that leverage machine learning for analyzing large datasets, automating repetitive tasks, and enhancing decision-making processes. One of the platform's key strengths lies in its flexibility and customization options. Users can fine-tune models to better align with their specific needs, ensuring that AI outputs are tailored to individual organizational requirements. This adaptability, combined with the platform's advanced security features such as data encryption and multi-factor authentication, makes it a powerful tool for businesses looking to innovate rapidly and maintain a competitive edge. By automating knowledge-based tasks and providing personalized recommendations and insights, the platform significantly enhances operational efficiency and customer experience, enabling organizations to scale operations effectively and foster customer loyalty .

OpenAI is a leading AI research and deployment company dedicated to developing safe and beneficial artificial general intelligence (AGI) for humanity. Their AI platform encompasses a range of cutting-edge technologies and models, including: 1. Large language models like GPT (Generative Pre-trained Transformer) series, which power applications such as ChatGPT for natural language processing and generation. 2. DALL-E, an AI system for creating and editing images from text descriptions. 3. Whisper, an automatic speech recognition system capable of transcribing and translating multiple languages. 4. Codex, which translates natural language to code and powers GitHub Copilot. 5. GPT-4, their most advanced language model, capable of understanding and generating human-like text across a wide range of topics and tasks. OpenAI's platform focuses on continual advancement in machine learning, natural language processing, computer vision, and robotics. They prioritize safety and ethics in AI development, aiming to ensure that AGI benefits all of humanity. The company offers APIs and tools for developers to integrate their AI technologies into various applications and services, fostering innovation across industries .

Pricing on OpenAI API

TypePrice
1024x1024 imageLow $0.009 / Medium $0.034 / High $0.133
Portrait / landscape imageLow $0.013 / Medium $0.050 / High $0.200

Capabilities

VisionMultimodalReasoningFunction CallingTool UseStructured OutputsCode Execution

About GPT Image 1.5

GPT Image 1.5 is OpenAI's improved image generation model, released December 16, 2025. Delivers 4× faster generation than GPT Image 1, improved text rendering, precise logo and face preservation, and better instruction following. Approximately 20% cheaper than GPT Image 1 with per-image pricing at $0.009/$0.034/$0.133 for 1024×1024 (low/medium/high). Became the default for ChatGPT Images on release. Supports landscape (1536×1024) and portrait (1024×1536) orientations.

Model Specs

Released2025-12-16
Architectureautoregressive

Provider

OpenAI API
OpenAI API

OpenAI

San Francisco, California, United States